Skip to content

patrickcisco/twitter-man

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

About The Project

example usage

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

Built With

Getting Started

Prerequisites

Installation

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
  1. Clone the repo
git clone https://github.com/patrickcisco/twitter-man
  1. Build from source
go build -o twitter-man main.go
  1. Run the twitter-man binary
./twitter-man --help

Usage

twitter-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"

Contributing

  1. Fork the Project
  2. Create your Feature Branch
  3. Commit your Changes
  4. Push to the Branch
  5. Open a Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages