This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

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
View code on GitHub
  • Owner

  • Contributors

    +1Github contributor
  • Categories

  • Products

    Webex
  • Programming Languages

    Go
  • License

    Apache License 2.0

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.