Authenticating API Requests
How to use your access token
Once you have a token, simply provide it as an Authorization:Bearer header in your requests, as shown below.
$ curl \
-s https://api.edrv.io \
-H 'Authorization:Bearer <access_token>' \
-H 'Accept:application/json'
var request = require('request');
var headers = {
'Authorization': 'Bearer <access_token>',
'Accept': 'application/json'
};
var options = {
url: 'curl',
headers: headers
};
Alternatively, helper functions are provided in some of our SDKs to authorize via Access Tokens. This means you don't need to specify the header explicitly - it's all done under the hood. (SDKs coming soon)
Updated almost 2 years ago