View on GitHub

ickstream-docs

Public documentation about the ickStream Music Platform

Registers a completely new device which have a hardwareId

When calling this method, the authentication must be done with a device registration token which have been previously retrieved using the createDeviceRegistrationToken method instead of using a user access token.

This method must be called by each individual device, one device is not allowed to call this method to register another device.

The whole device registration process is described on the page: Device registration process

Request:

{
    "jsonrpc": 2.0,
    "id": < A unique number used to correlate requests with responses, see JSON-RPC specification for more information >,
    "method": "addDevice",
    "params": {
        "address": <Optional, current IP-address of the new device>,
        "hardwareId": <Unique hardware identity of the new device, maximum 100 characters>
        "applicationId": <The unique key for the application that implements this device >
    }
}

Response:

{
    "jsonrpc": 2.0,
    "id": < The request identity >,
    "result": {
        "id": < The unique identity for this device which should be used in any further communication >,
        "accessToken": < The device access token which should be used in any further communication >,
        "name": < The new user friendly name of the device >,
        "model": < Model identification for this device >,
        "address": < Optional,current local IP-address of this device >,
        "publicAddress": < current public IP-address of this device, only available if address is specified >
                "userId": < The ickStream user identity which the device belongs to >
    }
}

Some important things to note:

Category:Cloud Core Protocol