Last active
September 8, 2015 19:19
-
-
Save cevaris/f10a94dc83cb091d5f6b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X "GET" "https://api.twitter.com/1.1/search/tweets.json?q=chicken" \ | |
-H "Authorization: Bearer MY_BEARER_TOKEN" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONSUMER_KEY=YOUR_CONSUMER_KEY | |
CONSUMER_SECRET=YOUR_CONSUMER_SECRET | |
BASIC_AUTH=$(echo -n "$CONSUMER_KEY:$CONSUMER_SECRET" | base64) | |
curl -X "POST" "https://api.twitter.com/oauth2/token" \ | |
-H "Authorization: Basic $BASIC_AUTH" \ | |
--data-urlencode "grant_type=client_credentials" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment