Skip to content

Instantly share code, notes, and snippets.

@schacon
Created April 9, 2012 15:38
Show Gist options
  • Select an option

  • Save schacon/2344308 to your computer and use it in GitHub Desktop.

Select an option

Save schacon/2344308 to your computer and use it in GitHub Desktop.
shell command to get a GitHub OAuth token
# sh get_token.sh user pass
curl -s -d '{"scopes":["repo"],"note":"admin script"}' -u "$1:$2" -XPOST https://api.github.com/authorizations | grep token
@xVnGx
Copy link
Copy Markdown

xVnGx commented Apr 10, 2012

Why not use Curlish?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment