List devices
Get all users devices.
GET /me/devices
Required scope:
- devices:r
Parameters
page optional integer
|
Page to display, used for pagination. Minimum:>= 0 Default value: 0 |
per_page optional integer
|
Number of resource objects to return. Minimum:>= 10 Maximum: =< 500 Default value: 200 |
* denotes required field/parameter.
Request
$ curl https://api.toshl.com/me/devices \ -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl"
Response
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"id": "42",
"type": "ios",
"name": "iPhone 5S",
"version": "2.0.1",
"synced": "2012-09-04T13:55:15Z",
"update": false
}
]