Skip to main content
Version: 5.7.0

GetEntitiesByType

Method returns all user entities that match the given type.

ServiceOperation
entityREAD_BY_TYPE

Method Parameters

ParameterDescription
entityTypeThe entity type to search for

Usage

http://localhost:3000
string entityType = "someEntityType";
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.EntityService.GetEntitiesByType(entityType, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"entities": [
{
"entityId": "96f77c80-4257-45ee-aed7-f1c6dd1ac44c",
"entityType": "address",
"version": 1,
"data": {
"street": "1309 Carling"
},
"acl": {
"other": 0
},
"createdAt": 1453926510649,
"updatedAt": 1453926510649
}
],
"_serverTime": 1637946319239
}
}