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