-
Notifications
You must be signed in to change notification settings - Fork 165
API Documentation
- Login
Request :
curl --request POST \ --url https://sinric.com/api/v1/login \ --header 'cache-control: no-cache' \ --header 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \ --form email=<email> \ --form password=<password>
Parameters : = sinric login email = sinric password
Response :
{ "success": true, "message": "OK", "token": "xxxxxxxxx", "refreshToken": "xxxxxxxxx", "account": { "firstname": "Aruna", "lastname": "Tennakoon", "apikey": "xxxxxxxx", "email": "[email protected]", "admin": false } }
- Get all devices
curl --request GET \
--url https://sinric.com/api/v1/devices \
--header 'authorization: Bearer <token>' \
--header 'cache-control: no-cache' \
--header 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
Parameters: < token > from login response
Response:
{
"success": true,
"message": "OK",
"devices": [
{ ...}
]
}
- Sending a command to a device
TODO