...
Info |
---|
The API is already implemented by the JavaScript library, you can see some methods in: |
Authentication
Check: Get API Key guide
1. Get AuthToken using APIKEY encoded in Base64
curl -X GET -H "Authorization: Basic ZzXhuRkrYc5sTrXRzsZw== XXXXXXXXXXXX" http://localhost:8181/api/auth
...
curl -vs -X GET -H "Authorization: Bearer XXXXXXXXX XXXXXXXXXX" http://localhost:8181/api/devices
Authentication (
...
1. Get AuthToken from Google
Not covered
Only API KEY)
Although not recommended for security reasons, it is possible to make calls by directly passing the API KEY
2. Now you can call REST endpoint using AccessTokenApiKey
curl -vs -X GET -H "Authorization: Google ApiKey XXXXXXXXX" http://localhost:8181/api/devices
OAuth
Authorization URL: https://cloud.opendevice.io/oauth2/authorize
Token URL: https://cloud.opendevice.io/oauth2/token