public class DropBoxProfileDefinition extends OAuth20ProfileDefinition<DropBoxProfile,OAuth20Configuration>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COUNTRY |
static java.lang.String |
EMAIL_VERIFIED |
static java.lang.String |
REFERRAL_LINK |
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.
|
com.github.scribejava.core.model.Verb |
getProfileVerb()
Get HTTP Method to request profile.
|
convertAndAdd, convertAndAdd, getConverters, getPrimaryAttributes, getProfileId, getSecondaryAttributes, newProfile, primary, secondary, setProfileFactory, setProfileIdpublic static final java.lang.String REFERRAL_LINK
public static final java.lang.String COUNTRY
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 com.github.scribejava.core.model.Verb getProfileVerb()
OAuthProfileDefinitiongetProfileVerb in class OAuthProfileDefinition<DropBoxProfile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>public DropBoxProfile extractUserProfile(java.lang.String body)
OAuthProfileDefinitionextractUserProfile in class OAuthProfileDefinition<DropBoxProfile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>body - the response bodyCopyright © 2018. All Rights Reserved.