-
-
Save hemanth22/afa3d46de945967a7fa9775a2102db3c to your computer and use it in GitHub Desktop.
Creating a GIST Token (Shell script)
This file contains 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
#!/bin/bash | |
#Usage ./gistToken.sh USERNAME (don't forget to chmod+x it) | |
#Inspired in http://www.lornajane.net/posts/2012/github-api-access-tokens-via-curl | |
curl -v -u $1 -X POST https://api.github.com/authorizations --data "{\"scopes\":[\"gist\"]}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment