public final class DbxAuthFinish extends Object
| Modifier and Type | Field and Description |
|---|---|
static JsonReader<String> |
AccessTokenReader |
static JsonReader<String> |
BearerTokenTypeReader |
static JsonReader<DbxAuthFinish> |
Reader
For JSON parsing.
|
| Constructor and Description |
|---|
DbxAuthFinish(String accessToken,
String userId,
String urlState) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken()
Returns an access token that can be used to make Dropbox API calls.
|
String |
getUrlState()
Returns the state data you passed in to
DbxWebAuth.start(java.lang.String). |
String |
getUserId()
Returns the Dropbox user ID of the user who just approved your app for access to their
Dropbox account.
|
public static final JsonReader<DbxAuthFinish> Reader
public static final JsonReader<String> BearerTokenTypeReader
public static final JsonReader<String> AccessTokenReader
public DbxAuthFinish(String accessToken, String userId, String urlState)
accessToken - OAuth access tokenuserId - Dropbox user ID of user that approved access to this appurlState - State data passed in to DbxWebAuth.start(java.lang.String) or null if no state
was passedpublic String getAccessToken()
DbxClientV2 constructor.public String getUserId()
public String getUrlState()
DbxWebAuth.start(java.lang.String). If you didn't pass
anything in, or you used DbxWebAuthNoRedirect, this will be null.DbxWebAuth.start(java.lang.String), or null if no state was
passed