public class PayPalProfileDefinition extends OAuth20ProfileDefinition<PayPalProfile>
| Modifier and Type | Field and Description |
|---|---|
static String |
ADDRESS |
static String |
GIVEN_NAME |
static String |
LANGUAGE |
static String |
NAME |
static 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(String body)
Extract the user profile from the response (JSON, XML...) of the profile url.
|
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, getSecondaryAttributes, newProfile, primary, secondary, setProfileFactorypublic static final String ADDRESS
public static final String LANGUAGE
public static final String ZONEINFO
public static final String NAME
public static final String GIVEN_NAME
public 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(String body) throws HttpAction
OAuthProfileDefinitionextractUserProfile in class OAuthProfileDefinition<PayPalProfile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>body - the response bodyHttpAction - whether an extra HTTP action is requiredCopyright © 2017. All rights reserved.