Skip to content

Instantly share code, notes, and snippets.

@0xjjpa
Created November 17, 2012 21:47
Show Gist options
  • Select an option

  • Save 0xjjpa/4100532 to your computer and use it in GitHub Desktop.

Select an option

Save 0xjjpa/4100532 to your computer and use it in GitHub Desktop.
Creating a GIST Token (Shell script)
#!/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