I am making a Spring Social Twitter application using Spring Boot. I have already configured a Twitter
object using the consumerId
, consumerKey
, accessToken
, and accessTokenSecret
.
My question is how can I use Spring Social Twitter to monitor the configured Twitter account and invoke a method whenever any user mentions my Twitter account. The method should be invoked with the Tweet
object or the tweet ID.
For example, let's indicate that my account is @MyAccount
. Now let's imagine that @SomeOtherAccount
tweets at (or mentions) @MyAccount
. Since another user tweeted at my account, a method should be invoked with the respective tweet data from @SomeOtherAccount
.