To get device information from the Devices collection in the database, send a GET request with device ID to the following endpoint:
This service can be used for retrieving information about the device stored in the Devices collection. The response of this service is JSON, which contains all predefined and user-defined fields of the Devices collection. This service can be handy when you need to get the deviceID, check its timeZone, or for any other operation involving device info.
In the Devices collection of the Appery.io Database, the deviceID field contains a semicolon. (For libraries 3.0 (JQM) and higher the semicolon is not used.) Replace it with %3B to properly send the request, as shown here:
356062053530044;9ec5fd0c3ade6681 = 356062053530044%3B9ec5fd0c3ade6681
The URL with the device ID at the end looks like:
The endpoint supports the following parameters:
|deviceId||Unique device identifier. Required.|
|X-Appery-App-Id||Unique identifier of the Appery.io application. Required.|
The endpoint might respond with the following error messages:
|400||PNDG002||The application ID isn’t specified|
|404||PNDG006||Device ID: not found|
|400||PNDG006||Project GUID: not found|
|400||PNDG960||Specified brand is not valid|
This examples shows getting information about a specific device registration.
curl -X GET -H "Content-Type: application/json" -H "X-Appery-App-Id: e51f973c-aad9-4102-9f39-349c25264277" https://api.appery.io/rest/push/reg/356062053530044%3B9ec5fd0c3ade6681