ReadEntity
Method reads an existing entity on the server. It must have public read access.
Service | Operation |
---|---|
globalEntity | READ |
Method Parameters
Parameter | Description |
---|---|
entityId | The id of the entity to read. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
var entityId = "the-entity-id";
var globalEntityProxy = bridge.getGlobalEntityServiceProxy();
var postResult = globalEntityProxy.readEntity(entityId);
if (postResult.status == 200) {
// Success!
}
{
"service": "globalEntity",
"operation": "READ",
"data": {
"entityId": "the-entity-id"
}
}
JSON Response
{
"data": {
"gameId": "22198",
"entityIndexedId": null,
"timeToLive": 0,
"createdAt": 1498850247510,
"entityType": "address",
"entityId": "4b2f1cba-cc52-4d3c-8663-ff540ee48a38",
"acl": {
"other": 2
},
"ownerId": "khfskhfh-nfsfjjdl-shfdhdsfh-hjhdfhf",
"version": 2,
"expiresAt": 9223372036854776000,
"updatedAt": 1498850536733,
"_serverTime": 1637946319239
},
"status": 200
}