Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.