Created
January 8, 2013 08:31
-
-
Save tr3buchet/4482201 to your computer and use it in GitHub Desktop.
curl for a github oauth token (sanitized)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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