Skip to main content
Version: 5.7.0

ReadEntity

Method reads an existing entity from the server.

ServiceOperation
globalEntityREAD

Method Parameters

ParameterDescription
entityIdThe id of the entity

Usage

http://localhost:3000
string entityId = "a-entity-id";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.GlobalEntityService.ReadEntity(entityId, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"entityId": "14281c38-abf6-4ca2-8436-b2bdwas8d5a9a",
"ownerId": "784cc6c6-4569-4d75-bd10-62dwa8ae0218",
"entityType": "test",
"entityIndexedId" : "indexTest",
"version": 1,
"data": {
"testData": 1234
},
"acl": {
"other": 1
},
"expiresAt": 1449861422588,
"timeToLive": 34567,
"createdAt": 1449861388021,
"updatedAt": 1449861388021,
"_serverTime": 1637946319239
}
}