34

GitHub - matchai/bird-box: ?? Update a gist to contain your latest tweet

 5 years ago
source link: https://github.com/matchai/bird-box
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

54479268-752bb580-47f1-11e9-9d01-edd8b574aa92.png

bird-box

Update a pinned gist to contain the latest tweets of a user


Setup

Prep work

  1. Create a new public GitHub Gist (https://gist.github.com/)
  2. Create a token with the gist scope and copy it. (https://github.com/settings/tokens/new)
  3. Create a new Twitter app (https://developer.twitter.com/en/apps/create)
  4. On the App page for your newly created app, generate an "Access token & access token secret" and copy all keys and tokens.

Project setup

  1. Fork this repo
  2. Log into CircleCI with your GitHub (https://circleci.com/vcs-authorize/)
  3. Click on "Add Projects" on the sidebar
  4. Set up a project with the newly created fork
  5. Go to Project Settings > Environment Variables
  6. Add the following environment variables:
  • GIST_ID: The ID portion from your gist url https://gist.github.com/matchai/6d5f84419863089a167387da62dd7081.
  • GITHUB_TOKEN: The GitHub token generated above.
  • TWITTER_USER: The user handle of the twitter account.
  • TWITTER_CONSUMER_KEY: Your Twitter consumer API key.
  • TWITTER_CONSUMER_SECRET: Your Twitter consumer secret.
  • TWITTER_ACCESS_TOKEN_KEY: Your Twitter access token key.
  • TWITTER_ACCESS_TOKEN_SECRET: Your Twitter access token secret.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK