You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This SDK helps your Java App make HTTP requests to the Uber Rides API.
3
3
4
4
## Setup
5
5
6
6
### Installing
7
7
8
8
#### Before you begin
9
-
Register your app in the [Uber developer dashboard](https://developer.uber.com/dashboard). Notice that the app gets a client ID, secret, and server token required for authenticating with the API.
9
+
Register your app in the [Uber developer dashboard](https://developer.uber.com/dashboard). Notice that the app gets a client ID, secret, and server token required for authenticating with the API.
10
10
11
11
Note: Using Android? Be sure to checkout the [Uber Android SDK](github.com/uber/rides-android-sdk) in addition, which has native authentication mechanisms.
12
12
@@ -44,7 +44,7 @@ ServerTokenSession session = new ServerTokenSession(config));
44
44
```
45
45
#### Create a session using the OAuth 2 flow
46
46
In an OAuth session, the app first asks the user to authorize and then exchanges the authorization code for an access token from Uber.
47
-
Note: Make sure the redirect URI matches the callback URI in the developer dashboard for the app.
47
+
Note: Make sure the redirect URI matches the callback URI in the developer dashboard for the app.
48
48
49
49
**Step 1**. Create an OAuth2Credentials object with your client ID, client secret, scopes, and a redirect callback URI to capture the user’s authorization code.
50
50
```java
@@ -54,13 +54,13 @@ SessionConfiguration config = new SessionConfiguration.Builder()
0 commit comments