public interface TwitterUserService
extends org.agorava.spi.UserProfileService
| Modifier and Type | Method and Description |
|---|---|
String |
getProfileId()
Retrieves the authenticated user's Twitter ID.
|
RateLimitStatus |
getRateLimitStatus()
Retrieves the rate limit status.
|
String |
getScreenName()
Retrieves the authenticated user's Twitter screen name
|
List<SuggestionCategory> |
getSuggestionCategories()
Retrieves a list of categories from which suggested users to follow may be found.
|
List<TwitterProfile> |
getSuggestions(String slug)
Retrieves a list of suggestions of users to follow for a given category.
|
TwitterProfile |
getUserProfile()
Retrieves the authenticated user's Twitter profile details.
|
TwitterProfile |
getUserProfile(long userId)
Retrieves a specific user's Twitter profile details.
|
TwitterProfile |
getUserProfile(String screenName)
Retrieves a specific user's Twitter profile details.
|
byte[] |
getUserProfileImage(String screenName)
Retrieves the user's profile image.
|
byte[] |
getUserProfileImage(String screenName,
ImageSize size)
Retrieves the user's profile image.
|
List<TwitterProfile> |
getUsers(String... userIds)
Retrieves a list of Twitter profiles for the given list of user IDs.
|
List<TwitterProfile> |
getUsersByName(String... screenNames)
Retrieves a list of Twitter profiles for the given list of screen names.
|
List<TwitterProfile> |
searchForUsers(String query)
Searches for up to 20 users that match a given query.
|
List<TwitterProfile> |
searchForUsers(String query,
int page,
int pageSize)
Searches for users that match a given query.
|
String getProfileId()
AgoravaException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.String getScreenName()
AgoravaException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.TwitterProfile getUserProfile()
getUserProfile in interface org.agorava.spi.UserProfileServiceTwitterProfile object representing the user's profile.AgoravaException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.TwitterProfile getUserProfile(String screenName)
screenName - the screen name for the user whose details are to be retrieved.TwitterProfile object representing the user's profile.AgoravaException - if there is an error while communicating with Twitter.TwitterProfile getUserProfile(long userId)
userId - the user ID for the user whose details are to be retrieved.TwitterProfile object representing the user's profile.AgoravaException - if there is an error while communicating with Twitter.byte[] getUserProfileImage(String screenName)
screenName - the screen name of the userAgoravaException - if there is an error while communicating with Twitter.byte[] getUserProfileImage(String screenName, ImageSize size)
screenName - the screen name of the usersize - the size of the imageAgoravaException - if there is an error while communicating with Twitter.List<TwitterProfile> getUsers(String... userIds)
AgoravaException - if there is an error while communicating with Twitter.List<TwitterProfile> searchForUsers(String query)
AgoravaException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.List<TwitterProfile> searchForUsers(String query, int page, int pageSize)
page - the page of search results to returnpageSize - the number of TwitterProfiles per page. Maximum of 20 per page.AgoravaException - if there is an error while communicating with Twitter.MissingAuthorizationException - if TwitterTemplate was not created with OAuth credentials.List<SuggestionCategory> getSuggestionCategories()
AgoravaException - if there is an error while communicating with Twitter.List<TwitterProfile> getSuggestions(String slug)
slug - the category's slugAgoravaException - if there is an error while communicating with Twitter.RateLimitStatus getRateLimitStatus()
List<TwitterProfile> getUsersByName(String... screenNames)
AgoravaException - if there is an error while communicating with Twitter.Copyright © 2013. All Rights Reserved.