GetDevice

GET

Get Device

Returns a list of valid Device types.

 

To get a list of the types of devices available, every request must pass in the access_token value in the header. For more information on how to generate your access_token, please refer to this section.

 

 

Request

Method URL
GET https://blinke-stage.apigee.net/io/devices

 

 

Request Headers

Name Description Mandatory
Authorization Bearer access_token Yes
Content-Type application/json Yes

 

 

Response

Result of the successful request contains following information:

Name Description
array An array of device information

 

devices[]
struct
A single device information

 

uuid
string
Unique identifier of each device type.
type
string
The item type. The value is "device".
name
string
A system device name.
created
long
The number represents date/time when the device is created. Date time in ISO 8601 format.
modified
long
The number represents date/time when was the last time the device was modified. Date time in ISO 8601 format.
category
string
Device category. The value can be "phone" or "tablet".
displayName
string
Device display name.
userAgent
string
Device userAgent.
metadata
string
Device metadata

 

 

Response (Example)

HTTP Code Response
200
[
    {
        "uuid": "8f6e244e-b70c-11e7-9839-0ab8741a129c",
        "type": "device",
        "name": "amazon-kindle-fire-hdx-7",
        "created": 1508665023194,
        "modified": 1508665023194,
        "category": "tablet",
        "displayName": "Amazon Kindle Fire HDX 7",
        "metadata": {
            "path": "/devices/8f6e244e-b70c-11e7-9839-0ab8741a129c",
            "size": 705,
            "collections": {
                "receipts": "/devices/8f6e244e-b70c-11e7-9839-0ab8741a129c/receipts",
                "users": "/devices/8f6e244e-b70c-11e7-9839-0ab8741a129c/users"
            }
        },
        "userAgent": "Mozilla/5.0 (Linux; Android 4.4.3; KFTHWI Build/KTU84M) ....."
    },
    {
        "uuid": "8f6857e2-b70c-11e7-9839-0ab8741a129c",
        "type": "device",
        "name": "lg-g-pad-7.0",
        "created": 1508665023156,
        "modified": 1508665023156,
        "category": "tablet",
        "displayName": "LG G Pad 7.0",
        "metadata": {
            "path": "/devices/8f6857e2-b70c-11e7-9839-0ab8741a129c",
            "size": 685,
            "collections": {
                "receipts": "/devices/8f6857e2-b70c-11e7-9839-0ab8741a129c/receipts",
                "users": "/devices/8f6857e2-b70c-11e7-9839-0ab8741a129c/users"
            }
        },
        "userAgent": "Mozilla/5.0 (Linux; Android 5.0.2; LG-V410/V41020c Build/LRX22G) ....."
    },
    {
        "uuid": "8f3b7b2e-b70c-11e7-9839-0ab8741a129c",
        "type": "device",
        "name": "microsoft-lumia-950",
        "created": 1508665022862,
        "modified": 1508665022862,
        "category": "phone",
        "displayName": "Microsoft Lumia 950",
        "metadata": {
            "path": "/devices/8f3b7b2e-b70c-11e7-9839-0ab8741a129c",
            "size": 710,
            "collections": {
                "receipts": "/devices/8f3b7b2e-b70c-11e7-9839-0ab8741a129c/receipts",
                "users": "/devices/8f3b7b2e-b70c-11e7-9839-0ab8741a129c/users"
            }
        },
        "userAgent": "Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 950) ....."
    }
]
401
{
    "fault": {
        "faultstring": "Invalid Access Token",
        "detail": {
            "errorcode": "keymanagement.service.invalid_access_token"
        }
    }
}

Resource URL

https://blinke-stage.apigee.net /io/devices

Header Parameters


Name Values Description
Content-Type
(required)

application/json

Authorization
(required)

Bearer access_token

Request Body

HTTP Basic

OAuth 2.0

API Key

Reset

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Resource Summary

Security

Working...