Get Device Information

Getting device information.

To get device information from the Devices collection in the database, send a GET request with device ID to the following endpoint:

https://api.appery.io/rest/push/reg/<deviceId>

This service can be used for retrieving information about the device stored in the Devices . 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.

The deviceID can be found in the predefined Devices collection of the Appery.io database.

📘

Note

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:

https://api.appery.io/rest/push/reg/356062053530044%3B9ec5fd0c3ade6681

Parameters

The endpoint supports the following parameters:

Parameter

Description

deviceId

Unique device identifier. Required.

X-Appery-App-Id

Unique identifier of the Appery.io application. Required.

Error responses

The endpoint might respond with the following error messages:

HTTP Status

Code

Description

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

Example

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