Skip to content

Instantly share code, notes, and snippets.

@jocelyn
Forked from schacon/get_token.sh
Created April 10, 2012 14:31
Show Gist options
  • Select an option

  • Save jocelyn/2351771 to your computer and use it in GitHub Desktop.

Select an option

Save jocelyn/2351771 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment