Devices
There is a max of 3 devices that can be registered per user_id
In order to provide flexibility to various types of clients we chose to add some convinience functionality to a device named default
The main goal is to be able to query https://api.box-ee.com/api/v1/device
without providing a device_id.
This can be achieved in two ways. You can
- manually add a device named default
curl -H "X-Boxee-Auth: your-session-token" -H "Content-Type: application/json" -d '{"device_name": "default", "device_type": "main"}' https://api.box-ee.com/api/v1/device | jq
{
"device_id": "ba4759df-4787-4110-a744-1530da326a6d",
"device_name": "default",
"device_type": "main",
"msg": "created",
"status_code": 202
}
- Use the box-ee CLI to add the default device
./bin/boxee device add
{"device_id":"8f279cff-a686-4c36-a106-0e05347a3e68","device_name":"default","device_type":"main","msg":"created","status_code":202}