Realtime Cloud Storage

getRoles

Retrieves the details of a set of roles (see listRoles to get all existing roles names).

Sample

curl 'https://storage-backend-prd-useast1.realtime.co/getRoles' -H 'Content-Type: application/json; charset=UTF-8' -d '{"applicationKey":"[YOUR_APP_KEY]", "privateKey":"[YOUR_PVT_KEY]", "roles": ["DeveloperRole","ManagerRole"]}'

Parameters

String applicationKey

Public key of the application's license.

String privateKey

Private key of the application's license. For administration use only.

Array roles

List of the roles names to get

GetRolesResponse callback

Function called when the operation completes.

Response

GetRolesResponse(data, error)

Response of the getRoles operation.

Role[] data

The retrieved role.

Error error

The attribute that holds the results of the operation if an error occurred.