public class PayPalProfileDefinition extends OAuth20ProfileDefinition<PayPalProfile,OAuth20Configuration>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADDRESS |
static java.lang.String |
GIVEN_NAME |
static java.lang.String |
LANGUAGE |
static java.lang.String |
NAME |
static java.lang.String |
ZONEINFO |
DISPLAY_NAME, EMAIL, FAMILY_NAME, FIRST_NAME, GENDER, LOCALE, LOCATION, PICTURE_URL, PROFILE_URLlogger, newProfile| Constructor and Description |
|---|
PayPalProfileDefinition() |
| Modifier and Type | Method and Description |
|---|---|
PayPalProfile |
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 accessToken,
OAuth20Configuration configuration)
Retrieve the url of the profile of the authenticated user for the provider.
|
getProfileVerbconvertAndAdd, convertAndAdd, getConverters, getPrimaryAttributes, getProfileId, getSecondaryAttributes, newProfile, primary, secondary, setProfileFactory, setProfileIdpublic static final java.lang.String ADDRESS
public static final java.lang.String LANGUAGE
public static final java.lang.String ZONEINFO
public static final java.lang.String NAME
public static final java.lang.String GIVEN_NAME
public java.lang.String getProfileUrl(com.github.scribejava.core.model.OAuth2AccessToken accessToken,
OAuth20Configuration configuration)
OAuthProfileDefinitiongetProfileUrl in class OAuthProfileDefinition<PayPalProfile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>accessToken - only used when constructing dynamic urls from data in the tokenconfiguration - the current configurationpublic PayPalProfile extractUserProfile(java.lang.String body)
OAuthProfileDefinitionextractUserProfile in class OAuthProfileDefinition<PayPalProfile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>body - the response bodyCopyright © 2018. All Rights Reserved.