In certain cases, you might want to get the list of devices that had been subscribed to the system, you can use this API to get the subscribed devices list.
Submit the request to the following URL together with required URL parameters
https://centrecbiz.com/get_subscribed_device.php
//URL Parameters
rest_api_key=your-api-key
category=category-name
user=user-unique-id
- your-api-key: Get your unique API key in your account dashboard (My Account) after subscribing our Web to App package. You need to keep your subscription active in order to use the API key.
- category-name (Optional): Put in the category name if you wish to filter the results by category name.
- user-unique-id (Optional): Put in user’s unique ID if you wish to filter the results by user.
Sample Return Results
{"code":"1","msg":"Success!","data":[{"user":"123","category":"user","device_uuid":"aaa","device_token":"bbb"},{"user":"456","category":"vendor","device_uuid":"ccc","device_token":"ddd"}]}
- code: 1 indicates request success while 0 indicates request failed.
- msg: Specify success or the reason of failure.
- data: The returned device list, each includes details such as user, category, device_uuid, device_token.