1. Generate Access Token
POST https://login.uber.com/oauth/v2/token
https://developer.uber.com/docs/guest-rides/guides/authentication
Ensure your environment has a
client_id
andclient_secret
environment variable.error
:invalid_scope
is faced when your application doesn't have the relavent scope granted.
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"=>"guests.trips", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"access_token":"Redacted","token_type":"Bearer","expires_in":2592000,"scope":"guests.trips"}