api:iptv:app:device_list
Table of Contents
API : IPTV : App : Device list
Introduction
This request is used by the iOS/Android apps and web clients to list the devices the customer has registered.
Request
| URL | https://api.telecomx.dk/iptv/app/device | ||
|---|---|---|---|
| Method | GET | ||
| Query | token | String | Session token. |
Query examples
https://api.telecomx.dk/iptv/app/device?token=12345678901234567890ABCD
Response
An array of JSON objects.
| JSON object | ||
|---|---|---|
| _id | Id | Id of the device. |
| type | String | Type of device: STB, IOS, APPLETV, ANDROID, ANDROIDTV or WEB. |
| name | String | Name of device - e.g. 'Living room' or 'Johns iPhone'. |
| deviceId | String | STB: MAC address of the STB. IOS/ANDROID/ANDROIDTV/APPLETV/WEB: Id generated by the device, used to recognize the device on subsequent logins if device had been logged out. |
| enabled | Boolean | True if device is enabled. |
| deleted | Date | If the device has been deleted, but cannot be deleted due to a DRM license binding period, then this holds the date the device is deleted and the license will expire. |
| created | Date | Date when the device was logged on for the first time. |
| lastComm | Date | Date when the device was last used. |
| model | String | The model of the device - e.g. 'MAG250' or 'iPhone 6S'. |
Note that properties holding no value may be omitted from the object.
Example - normal
[ { _id: '12345678901234567890ABCD', type: 'IOS', name: 'Johns iPhone', deviceId: '197ahsd8173ggkjasd', enabled: true, deleted: null, created: '2016-01-01T00:00:00.000Z', lastComm: '2016-01-02T12:34:56.000Z', model: 'iPhone 6S' }, { ... } ]
Errors
| Error code | Message | Description |
|---|---|---|
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/iptv/app/device_list.txt · Last modified: 2022/11/03 08:35 by Joakim Andersen