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_URL
logger, 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.
|
getProfileVerb
convertAndAdd, convertAndAdd, convertAndAdd, convertAndAdd, getConverters, getPrimaryAttributes, getSecondaryAttributes, newProfile, primary, secondary, setProfileFactory
public 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)
OAuthProfileDefinition
getProfileUrl
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
OAuthProfileDefinition
extractUserProfile
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.