Last active
December 15, 2015 17:39
-
-
Save brendannee/5298158 to your computer and use it in GitHub Desktop.
Get a Twitter oAuth token: https://dev.twitter.com/docs/auth/application-only-auth
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
echo -n '<CONSUMER KEY>:<CONSUMER SECRET>' | openssl base64 | |
wget --header="Authorization: Basic <BASE64 ENCODED KEY AND SECRET>" --header="Content-Type: application/x-www-form-urlencoded;charset=UTF-8" --post-data="grant_type=client_credentials" https://api.twitter.com/oauth2/token |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment