A Go cli tool that streams tweets from Twitter to Webex Teams via adaptivecards.
Here's why:
- To demonstrate concurrency in Go
- Explore community Go libraries
- Explore the Twitter API and Webex Teams API
- Go installed (https://golang.org/doc/install)
- A Webex Teams Bot Access Token (https://developer.webex.com)
- Twitter Developer Account + Project with Read Only permissions (https://developer.twitter.com)
Secrets are passed into the cli application through environment variables. The following environment variables are required to run this application.
# Twitter environment variables
TWITTER_CONSUMER_KEY
TWITTER_CONSUMER_SECRET
TWITTER_ACCESS_TOKEN
TWITTER_ACCESS_SECRET
# Webex Teams environment variables
WEBEXTEAMS_TOKEN- Clone the repo
git clone https://github.com/patrickcisco/twitter-man- Build from source
go build -o twitter-man main.go- Run the
twitter-manbinary
./twitter-man --helptwitter-man --help
A cli application that streams tweets from Twitter
Usage:
twitter-man [command]
Available Commands:
help Help about any command
stream Begin streaming twitter tweets
Flags:
--config string config file (default is $HOME/.twitter-man.yaml)
-h, --help help for twitter-man
--log string log level (default "info")
Use "twitter-man [command] --help" for more information about a command.
twitter-man stream --tag "#ciscolive" --tag "#ciscodevnet" --to_person_email "nobody@cisco.com"
- Fork the Project
- Create your Feature Branch
- Commit your Changes
- Push to the Branch
- Open a Pull Request
