Interface TwitterConsumerService
- All Known Implementing Classes:
TwitterConsumerServiceImpl
public interface TwitterConsumerService
-
Method Summary
Modifier and TypeMethodDescriptioncheckTwitterTokenStatus(String bearerToken) Check Twitter token statusgetMentionEvents(TwitterAccount twitterAccount, long lastMentionTweetId, String bearerToken) Retrieve available tweets in which the account identified by its identifier was mentionedretrieveTweetLikers(String tweetLink, String bearerToken) Retrieve the list of tweet likers.retrieveTweetRetweeters(String tweetLink, String bearerToken) Retrieve the list of tweet retweeters.retrieveTwitterAccount(long twitterRemoteId, String bearerToken) Retrieve available Twitter account info.retrieveTwitterAccount(String twitterUsername, String bearerToken) Retrieve available Twitter account info.
-
Method Details
-
retrieveTwitterAccount
RemoteTwitterAccount retrieveTwitterAccount(String twitterUsername, String bearerToken) throws org.exoplatform.commons.exception.ObjectNotFoundException Retrieve available Twitter account info.- Parameters:
twitterUsername- Twitter account usernamebearerToken- Twitter bearer token- Returns:
RemoteTwitterAccount- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException- when the Twitter account identified by its technical name is not found
-
retrieveTwitterAccount
Retrieve available Twitter account info.- Parameters:
twitterRemoteId- Twitter account remote IdbearerToken- Twitter bearer token- Returns:
RemoteTwitterAccount
-
retrieveTweetLikers
-
retrieveTweetRetweeters
-
checkTwitterTokenStatus
Check Twitter token status- Parameters:
bearerToken- Twitter bearer token- Returns:
TokenStatus
-
getMentionEvents
List<TwitterTrigger> getMentionEvents(TwitterAccount twitterAccount, long lastMentionTweetId, String bearerToken) Retrieve available tweets in which the account identified by its identifier was mentioned- Parameters:
twitterAccount-TwitterAccountTwitter accountlastMentionTweetId- last mention tweet IdbearerToken- Twitter bearer token
-