The Realer API uses the industry standard OAuth 2.0 to authenticate Realino-compliant control device requests.
The Realer API keys used to authenticate requests are client_id and client_secret. You can view and manage your control devices API keys in the Realer Dashboard once you are signed in as user. If you do not have control device API keys, you can request 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' \
-d '{"client_id":"123456789012345","client_secret":"7Fjfp0ZBr1KtDRbnfVdmIw3"}'
Sign in a registered control device to the Realer.
Client ID of control device that needs to be authenticated. You can request one here.
Type: Integer
Example: 123456789012345
Secret key of control device that needs to be authenticated. You can request one here
Type: String
Example: b11db7f6c816568eb3b156df3aeaa5
Example value (application/json)
{
"client_id": 123456789012345,
"client_secret": "b11db7f6c816568eb3b156df3aeaa5"
}
Code | Description |
---|---|
200 |
OK (Success) Example value (application/json)
From the success 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.
|
400 |
Bad Request (Client Error) Example value (application/json)
|
401 |
Unauthorized (Client Error) Example value (application/json)
|
422 |
Unprocessable Entity (Client Error) Example value (application/json)
|