The Realer API uses the industry standard OAuth 2.0 to authenticate Realino-compliant control device requests.
The Realer API keys used to authenticate control device requests are client_id and client_secret, which must be provided via HTTP Basic Authentication. You can view and manage your control devices API keys in the Realer Dashboard when you are signed in as user. If you do not have control device API keys, you can get ones.
Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
curl "https://www.therealer.com/control_devices/sessions.realino" \
-X POST \
-H 'Content-Type: application/json' \
-H 'Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=='
Sign in a registered control device to the Realer.
Base64 encoding of client_id and client_secret (API keys) joined by a single colon ":" of the control device that needs to be authenticated.
Type: String
Example: Basic QWxhZGRpbjpPcGVuU2VzYW1l
Code | Description |
---|---|
200 |
OK (Success) Example value (application/json)
From the success authentication response, the authenticated device receives data about itself as registered on Realer, including all available commands and sensors.
This data is leveraged locally by the control device to interact programmatically with Realer, such as for getting control commands and sending control feeds.
In particular, always check that subscription_status is active after authentication, otherwise subsequent requests will fail.
|
401 |
Unauthorized (Client Error) Example value (application/json)
|
422 |
Unprocessable Entity (Client Error) Example value (application/json)
|