Class TwitterProfileDefinition


  • public class TwitterProfileDefinition
    extends OAuthProfileDefinition
    This class is the Twitter profile definition.
    Since:
    1.1.0
    Author:
    Jerome Leleu
    • Constructor Detail

      • TwitterProfileDefinition

        public TwitterProfileDefinition()
      • TwitterProfileDefinition

        public TwitterProfileDefinition​(boolean includeEmail)
    • Method Detail

      • getProfileUrl

        public java.lang.String getProfileUrl​(com.github.scribejava.core.model.Token accessToken,
                                              OAuthConfiguration configuration)
        Description copied from class: OAuthProfileDefinition
        Retrieve the url of the profile of the authenticated user for the provider.
        Specified by:
        getProfileUrl in class OAuthProfileDefinition
        Parameters:
        accessToken - only used when constructing dynamic urls from data in the token
        configuration - the current configuration
        Returns:
        the url of the user profile given by the provider