Sign inSign up

microservices/twitter

By microservices

•Updated about 7 years ago

Image
0

10K+

microservices/twitter repository overview

⁠Twitter OMG Microservice

Open Microservice Guide Build Status codecov

Do Twitter stuff in a microservice.

⁠Direct usage in Storyscript⁠:

⁠Follow
>>> twitter follow handle:'screenName' user:'userID' follow:'true'
⁠Unfollow
>>> twitter unfollow handle:'screenName' user:'userID'
⁠Followers
>>> twitter followers handle:'screenName' user:'userID' cursor:'2' count:'50'
⁠Retweet
>>> twitter retweet tweet:'tweetID'
⁠Tweet
>>> twitter tweet status:'status'

Curious to learn more⁠?

✨🍰✨

⁠Usage with OMG CLI⁠

⁠Follow
$ omg run follow -a handle=<SCREEN_NAME> -a user=<USER_ID> -a follow=<TRUE/FALSE> -e CONSUMER_KEY=<CONSUMER_KEY> -e CONSUMER_SECRET=<CONSUMER_SECRET> -e ACCESS_TOKEN=<ACCESS_TOKEN> -e ACCESS_TOKEN_SECRET=<ACCESS_TOKEN_SECRET>
⁠Unfollow
$ omg run unfollow -a handle=<SCREEN_NAME> -a user=<USER_ID> -e CONSUMER_KEY=<CONSUMER_KEY> -e CONSUMER_SECRET=<CONSUMER_SECRET> -e ACCESS_TOKEN=<ACCESS_TOKEN> -e ACCESS_TOKEN_SECRET=<ACCESS_TOKEN_SECRET>
⁠Followers
$ omg run followers -a handle=<SCREEN_NAME> -a user=<USER_ID> -a cursor=<RANGE_OF_PAGE> -a count=<MAX_USER_RANGE_PER_PAGE> -e CONSUMER_KEY=<CONSUMER_KEY> -e CONSUMER_SECRET=<CONSUMER_SECRET> -e ACCESS_TOKEN=<ACCESS_TOKEN> -e ACCESS_TOKEN_SECRET=<ACCESS_TOKEN_SECRET>
⁠Retweet
$ omg run retweet -a tweet=<TWEET_ID> -e CONSUMER_KEY=<CONSUMER_KEY> -e CONSUMER_SECRET=<CONSUMER_SECRET> -e ACCESS_TOKEN=<ACCESS_TOKEN> -e ACCESS_TOKEN_SECRET=<ACCESS_TOKEN_SECRET>
⁠Tweet
$ omg run tweet -a status=<STATUS> -e CONSUMER_KEY=<CONSUMER_KEY> -e CONSUMER_SECRET=<CONSUMER_SECRET> -e ACCESS_TOKEN=<ACCESS_TOKEN> -e ACCESS_TOKEN_SECRET=<ACCESS_TOKEN_SECRET>
⁠Stream
$ omg subscribe stream tweet -a track=<STRING/PHRASES_LIST_TO_TRACK> -e CONSUMER_KEY=<CONSUMER_KEY> -e CONSUMER_SECRET=<CONSUMER_SECRET> -e ACCESS_TOKEN=<ACCESS_TOKEN> -e ACCESS_TOKEN_SECRET=<ACCESS_TOKEN_SECRET>

Note: The OMG CLI requires Docker⁠ to be installed.

⁠License

MIT License⁠.

Tag summary

Content type

Image

Digest

Size

38.5 MB

Last updated

about 7 years ago

docker pull microservices/twitter