1. Generate Access Token
POST https://login.uber.com/oauth/v2/token
This API call generates an access token in order to verify access.
Retrieve your clientid and clientsecret from your developer dashboard. The scopes available are located https://developer.uber.com/docs/health/guides/authentication#overview and can be selected for your app from the developer dashboard.
Request Body
[{"name"=>"client_id", "value"=>"{{client_id}}", "datatype"=>"string"}, {"name"=>"client_secret", "value"=>"{{client_secret}}", "datatype"=>"string"}, {"name"=>"grant_type", "value"=>"client_credentials", "datatype"=>"string"}, {"name"=>"scope", "value"=>"health", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
User-Agent | string |
RESPONSES
status: OK
{"access_token":"Redacted","token_type":"Bearer","expires_in":2592000,"scope":"health"}