https://github.com/matchai/bird-box
  
  
    🐦💬 Update a gist to contain your latest tweet 
    https://github.com/matchai/bird-box
  
pinned-gist
        Last synced: 7 months ago 
        JSON representation
    
🐦💬 Update a gist to contain your latest tweet
- Host: GitHub
 - URL: https://github.com/matchai/bird-box
 - Owner: matchai
 - License: isc
 - Created: 2019-03-15T17:24:36.000Z (over 6 years ago)
 - Default Branch: master
 - Last Pushed: 2022-12-08T17:30:27.000Z (almost 3 years ago)
 - Last Synced: 2024-05-01T16:07:06.515Z (over 1 year ago)
 - Topics: pinned-gist
 - Language: JavaScript
 - Homepage:
 - Size: 96.7 KB
 - Stars: 182
 - Watchers: 4
 - Forks: 38
 - Open Issues: 8
 - 
            Metadata Files:
            
- Readme: README.md
 - License: LICENSE
 
 
Awesome Lists containing this project
- awesome-pinned-gists - bird-box - Update a pinned gist to contain the latest tweets of a Twitter user. (External Services)
 - stars - bird-box
 - stars - bird-box
 
README
          
  
  
bird-box
  Update a pinned gist to contain the latest tweets of a user
---
> 📌✨ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists
## Setup
### Prep work
1. Create a new public GitHub Gist (https://gist.github.com/)
1. Create an access token with the `gist` scope and copy it. (https://github.com/settings/tokens/new)
1. Create a new Twitter app (https://developer.twitter.com/en/apps/create)
1. 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
1. Edit the [environment variables](https://github.com/matchai/bird-box/blob/bcc05c5376710b231c9a81c102df6e51efcc6fc7/.github/workflows/schedule.yml#L13-L19) in `.github/workflows/schedule.yml`:
   - **TWITTER_USER:** The user handle of the twitter account.
   - **GIST_ID:** The ID portion from your gist url: `https://gist.github.com/matchai/`**`6d5f84419863089a167387da62dd7081`**.
1. Go to the repo **Settings > Secrets**
1. Add the following environment variables:
   - **GH_TOKEN:** The GitHub access token generated above.
   - **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.