Class TwitterConsumerStorage
java.lang.Object
io.meeds.twitter.gamification.storage.TwitterConsumerStorage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckTwitterTokenStatus(String bearerToken) getMentionEvents(TwitterAccount twitterAccount, long lastMentionTweetId, String bearerToken) retrieveTweetLikers(String tweetLink, String bearerToken) retrieveTweetRetweeters(String tweetLink, String bearerToken) retrieveTwitterAccount(long twitterRemoteId, String bearerToken) retrieveTwitterAccount(String twitterUsername, String bearerToken)
-
Field Details
-
TWITTER_API_URL
- See Also:
-
BEARER
- See Also:
-
AUTHORIZATION
- See Also:
-
TWITTER_CONNECTION_ERROR
- See Also:
-
TWITTER_RETRIEVE_ACCOUNT_ERROR
- See Also:
-
TWITTER_RETRIEVE_ACCOUNT_MENTIONS_ERROR
- See Also:
-
TWITTER_RETRIEVE_TWEET_LIKERS_ERROR
- See Also:
-
TWITTER_RETRIEVE_TWEET_RETWEETERS_ERROR
- See Also:
-
USERNAME
- See Also:
-
USERS
- See Also:
-
-
Constructor Details
-
TwitterConsumerStorage
public TwitterConsumerStorage()
-
-
Method Details
-
retrieveTwitterAccount
public RemoteTwitterAccount retrieveTwitterAccount(String twitterUsername, String bearerToken) throws org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
retrieveTwitterAccount
@Cacheable("gamification.twitter.remoteAccount") public RemoteTwitterAccount retrieveTwitterAccount(long twitterRemoteId, String bearerToken) -
getMentionEvents
public List<TwitterTrigger> getMentionEvents(TwitterAccount twitterAccount, long lastMentionTweetId, String bearerToken) -
retrieveTweetLikers
-
retrieveTweetRetweeters
-
checkTwitterTokenStatus
-