Skip to content

Instantly share code, notes, and snippets.

@tr3buchet
Created January 8, 2013 08:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tr3buchet/4482201 to your computer and use it in GitHub Desktop.
Save tr3buchet/4482201 to your computer and use it in GitHub Desktop.
curl for a github oauth token (sanitized)
[trey|d3v ~/git/gister]% curl -u 'your_user_name' -d '{"scopes":["gist"],"note":"gister script test"}' https://api.github.com/authorizations
{
"created_at": "2012-01-08T03:19:47Z",
"app": {
"url": "http://developer.github.com/v3/oauth/#oauth-authorizations-api",
"name": "gister script test (API)"
},
"note": "gister script test",
"url": "https://api.github.com/authorizations/102557",
"token": "34v098n3gv09n8345983458g493fm2fm245n03v",
"updated_at": "2012-01-08T03:19:47Z",
"scopes": [
"gist"
],
"note_url": null,
"id": 102557
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment