public class WordPressProfileDefinition extends OAuth20ProfileDefinition<WordPressProfile,OAuth20Configuration>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AVATAR_URL |
static java.lang.String |
LINKS |
static java.lang.String |
PRIMARY_BLOG |
static java.lang.String |
PROFILE_URL |
DISPLAY_NAME, EMAIL, FAMILY_NAME, FIRST_NAME, GENDER, LOCALE, LOCATION, PICTURE_URLlogger, newProfile| Constructor and Description |
|---|
WordPressProfileDefinition() |
| Modifier and Type | Method and Description |
|---|---|
WordPressProfile |
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 PRIMARY_BLOG
public static final java.lang.String AVATAR_URL
public static final java.lang.String PROFILE_URL
public static final java.lang.String LINKS
public java.lang.String getProfileUrl(com.github.scribejava.core.model.OAuth2AccessToken accessToken,
OAuth20Configuration configuration)
OAuthProfileDefinitiongetProfileUrl in class OAuthProfileDefinition<WordPressProfile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>accessToken - only used when constructing dynamic urls from data in the tokenconfiguration - the current configurationpublic WordPressProfile extractUserProfile(java.lang.String body)
OAuthProfileDefinitionextractUserProfile in class OAuthProfileDefinition<WordPressProfile,com.github.scribejava.core.model.OAuth2AccessToken,OAuth20Configuration>body - the response bodyCopyright © 2018. All Rights Reserved.