public class DropBoxProfileDefinition extends OAuth20ProfileDefinition<DropBoxProfile>
| Modifier and Type | Field and Description |
|---|---|
static String |
COUNTRY |
static String |
EMAIL_VERIFIED |
static String |
NORMAL |
static String |
QUOTA |
static String |
REFERRAL_LINK |
static 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(String body)
Extract the user profile from the response (JSON, XML...) of the profile url.
|
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, getConverters, getPrimaryAttributes, getSecondaryAttributes, newProfile, primary, secondary, setProfileFactorypublic static final String REFERRAL_LINK
public static final String COUNTRY
public static final String SHARED
public static final String QUOTA
public static final String NORMAL
public static final String EMAIL_VERIFIED
public 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(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 © 2017. All rights reserved.