Skip to content
Damien edited this page May 26, 2016 · 3 revisions
let uber: Provider = .Uber(
    clientID: "***",
    clientSecret: "***",
    redirectURL: "foo://callback"
)
Token
{
    "access_token": "EE1IDxytP04tJ767GbjH7ED9PpGmYvL",
    "token_type": "Bearer",
    "expires_in": 2592000,
    "refresh_token": "Zx8fJ8qdSRRseIVlsGgtgQ4wnZBehr",
    "scope": "profile history"
}
Scopes
Scope Description Type

profile

</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p>Access the basic profile information on a user's Uber account including their first name, email address, and profile picture.</p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p>General</p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --></tr><!-- end ngRepeat: (r, row) in getNumber(data.rows) track by $index --><tr ng-repeat="(r, row) in getNumber(data.rows) track by $index" class="ng-scope">
  <!-- ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p><code>history</code></p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p>Pull trip data including times, product type, and city information of a user's historical pickups and drop-offs.</p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p>General</p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --></tr><!-- end ngRepeat: (r, row) in getNumber(data.rows) track by $index --><tr ng-repeat="(r, row) in getNumber(data.rows) track by $index" class="ng-scope">
  <!-- ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p><code>history_lite</code></p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p>Same as history but without city information.</p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p>General</p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --></tr><!-- end ngRepeat: (r, row) in getNumber(data.rows) track by $index --><tr ng-repeat="(r, row) in getNumber(data.rows) track by $index" class="ng-scope">
  <!-- ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p><code>places</code></p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p>Save and retrieve user's favorite places (home and work).</p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p>General</p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --></tr><!-- end ngRepeat: (r, row) in getNumber(data.rows) track by $index --><tr ng-repeat="(r, row) in getNumber(data.rows) track by $index" class="ng-scope">
  <!-- ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p><code>request</code></p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p>Make requests for Uber rides on behalf of users.</p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p>Privileged</p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --></tr><!-- end ngRepeat: (r, row) in getNumber(data.rows) track by $index --><tr ng-repeat="(r, row) in getNumber(data.rows) track by $index" class="ng-scope">
  <!-- ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p><code>request_receipt</code></p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p>Get receipt details for requests made by application.</p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p>Privileged</p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --></tr><!-- end ngRepeat: (r, row) in getNumber(data.rows) track by $index --><tr ng-repeat="(r, row) in getNumber(data.rows) track by $index" class="ng-scope">
  <!-- ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p><code>all_trips</code></p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p>Get details of the trip that the user is currently taking, regardless of how it was requested (via the Uber app or a third-party application).</p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --><td ng-repeat="(c, col) in getNumber(data.cols) track by $index" class="ng-scope">
    <div marked="data.data[r + '-' + c]" class="ng-isolate-scope"><p>Privileged</p>
</td><!-- end ngRepeat: (c, col) in getNumber(data.cols) track by $index --></tr><!-- end ngRepeat: (r, row) in getNumber(data.rows) track by $index -->
Authorization Request Parameters
Parameter Description
response_type OAuth 2.0 response type. code is the only acceptable input at this time.
client_id The client ID of your application.
scope (optional) Space delimited list of grant scopes you would like to have permission to access on behalf of the user. If none are provided the default is the set selected in your application's dashboard. It is invalid to provide no scopes and have none selected in the dashboard.
state (optional) State which will be passed back to you to prevent tampering.
redirect_uri (optional) The URI we will redirect back to after an authorization by the resource owner. The base of the URI must match the redirect_uri used during the registration of your application. If none is provided the default is the first redirect URI provided in the application's dashboard.
Token Request Parameters
curl -F 'client_secret=YOUR_CLIENT_SECRET' \
    -F 'client_id=YOUR_CLIENT_ID' \
    -F 'grant_type=authorization_code' \
    -F 'redirect_uri=YOUR_REDIRECT_URI' \
    -F 'code=AUTHORIZATION_CODE_FROM_STEP_2' \
    https://login.uber.com/oauth/v2/token
Clone this wiki locally