Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 861 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 861 Bytes

mars-rover-twitter-bot

Mars Rover Photos Twitter bot

Installing it

$ go get github.com/odeke-em/mars-rover-twitter-bot
$ mars-rover-twitter-bot --help # For help
$ mars-rover-twitter-bot --offset-in-hours 72 # Start from 72 hours ago

Environment variables

Name Required Details
NASA_API_KEY false By default it is "DEMO_KEY". Go to https://api.nasa.gov/index.html#apply-for-an-api-key to get your API key
MARS_ROVER_TWITTER_CONSUMER_KEY true Your Twitter Consumer Key. Go to https://apps.twitter.com for one
MARS_ROVER_TWITTER_CONSUMER_SECRET true Your Twitter Consumer Secret. Go to https://apps.twitter.com for one
MARS_ROVER_TWITTER_ACCESS_TOKEN true Your Twitter Access Token. Go to https://apps.twitter.com for one
MARS_ROVER_TWITTER_ACCESS_SECRET true Your Twitter Access Key. Go to https://apps.twitter.com for one