If you don’t have a REX account yet, please go to our registration page and create a new free account.
If you already have a REX account, please sign in with your credentials.
Once your registered for a new account, you should receive an activation email. Please confirm the account creation by clicking the link in the email. After account creation, you should already have the REX freemium license.
In order to access rexOS as a developer, you need to generate an API key. This can easily be done by getting into
Settings
.
From within Settings
you are able to generate a new token. Assign a name for the new token (e.g. tutorial
), and
press the checkbox to the right.
A new API token has been generated by rexOS. Please make sure to save the ID
and the Secret
.
The secret will not be visible afterwards. So please make sure to store it safely.
You are now ready to start with your first API call.
In order to test the connection to rexOS you can use any web client (e.g. curl for command line
or Insomnia for a graphical tool). Just replace the clientId
and clientSecret
with your
generated credentials, and execute the command on the command line.
$ curl 'https://rex.robotic-eyes.com/oauth/token' -i -u '<clientId>:<clientSecret>' -X POST \
-H 'Accept: application/json;charset=UTF-8' \
-H 'Content-Type: application/x-www-form-urlencoded; charset=ISO-8859-1' \
-d 'grant_type=client_credentials'
You should get a valid HTTP response with code 200
looking something like:
HTTP/2 200
content-type: application/json;charset=UTF-8
The response also contains a JSON payload which gives your the actual access token for sub-sequent calls.
{
"access_token":"<your_access_token",
"token_type":"bearer",
"expires_in":599,
"scope":"API",
"user_id":"<your_user_id>",
"user_name":"<your_user_name>",
"jti":"hidden"
}
Continue by installing the REXview mobile app Next