public class DropBoxProfileDefinition extends OAuth20ProfileDefinition<DropBoxProfile>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COUNTRY |
static java.lang.String |
EMAIL_VERIFIED |
static java.lang.String |
NORMAL |
static java.lang.String |
QUOTA |
static java.lang.String |
REFERRAL_LINK |
static java.lang.String |
SHARED |
DISPLAY_NAME, EMAIL, FAMILY_NAME, FIRST_NAME, GENDER, LOCALE, LOCATION, PICTURE_URL, PROFILE_URLlogger, newProfile| Constructor and Description |
|---|
DropBoxProfileDefinition() |
| Modifier and Type | Method and Description |
|---|---|
DropBoxProfile |
extractUserProfile(java.lang.String body)
Extract the user profile from the response (JSON, XML...) of the profile url.
|
java.lang.String |
getProfileUrl(com.github.scribejava.core.model.OAuth2AccessToken token,
OAuth20Configuration configuration)
Retrieve the url of the profile of the authenticated user for the provider.
|
getProfileVerbconvertAndAdd, convertAndAdd, convertAndAdd, convertAndAdd, getConverters, getPrimaryAttributes, getSecondaryAttributes, newProfile, primary, secondary, setProfileFactorypublic static final java.lang.String REFERRAL_LINK
public static final java.lang.String COUNTRY
public static final java.lang.String SHARED
public static final java.lang.String QUOTA
public static final java.lang.String NORMAL
public static final java.lang.String EMAIL_VERIFIED
public java.lang.String getProfileUrl(com.github.scribejava.core.model.OAuth2AccessToken token,
OAuth20Configuration configuration)
OAuthProfileDefinitiongetProfileUrl in class OAuthProfileDefinition<DropBoxProfile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>token - only used when constructing dynamic urls from data in the tokenconfiguration - the current configurationpublic DropBoxProfile extractUserProfile(java.lang.String body) throws HttpAction
OAuthProfileDefinitionextractUserProfile in class OAuthProfileDefinition<DropBoxProfile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>body - the response bodyHttpAction - whether an extra HTTP action is requiredCopyright © 2018. All Rights Reserved.