Created
February 27, 2013 13:24
-
-
Save coderbyheart/5047866 to your computer and use it in GitHub Desktop.
CURL transcript of creating a GitHub API access token
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
$ curl -v -d '{"scopes":["repo"],"note":"Composer on nanshe","note_url":"https:\/\/getcomposer.org\/"}' -H "Content-Type: application/json" -H "Authorization: Basic *****" -H "User-Agent: Composer/source (Linux; 3.7.9-2-ARCH; PHP 5.4.12)" -H "Accept-Encoding: gzip" -X POST https://api.github.com/authorizations | |
* About to connect() to api.github.com port 443 (#0) | |
* Trying 207.97.227.243... | |
* Connected to api.github.com (207.97.227.243) port 443 (#0) | |
* successfully set certificate verify locations: | |
* CAfile: /etc/ssl/certs/ca-certificates.crt | |
CApath: none | |
* SSLv3, TLS handshake, Client hello (1): | |
* SSLv3, TLS handshake, Server hello (2): | |
* SSLv3, TLS handshake, CERT (11): | |
* SSLv3, TLS handshake, Server finished (14): | |
* SSLv3, TLS handshake, Client key exchange (16): | |
* SSLv3, TLS change cipher, Client hello (1): | |
* SSLv3, TLS handshake, Finished (20): | |
* SSLv3, TLS change cipher, Client hello (1): | |
* SSLv3, TLS handshake, Finished (20): | |
* SSL connection using RC4-SHA | |
* Server certificate: | |
* subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=*.github.com | |
* start date: 2012-04-30 00:00:00 GMT | |
* expire date: 2014-07-09 12:00:00 GMT | |
* subjectAltName: api.github.com matched | |
* issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert High Assurance CA-3 | |
* SSL certificate verify ok. | |
> POST /authorizations HTTP/1.1 | |
> Host: api.github.com | |
> Accept: */* | |
> Content-Type: application/json | |
> Authorization: Basic ***** | |
> User-Agent: Composer/source (Linux; 3.7.9-2-ARCH; PHP 5.4.12) | |
> Accept-Encoding: gzip | |
> Content-Length: 88 | |
> | |
* upload completely sent off: 88 out of 88 bytes | |
< HTTP/1.1 201 Created | |
< Server: GitHub.com | |
< Date: Wed, 27 Feb 2013 13:21:53 GMT | |
< Content-Type: application/json; charset=utf-8 | |
< Connection: keep-alive | |
< Status: 201 Created | |
< X-RateLimit-Limit: 5000 | |
< X-RateLimit-Remaining: 4981 | |
< Location: https://api.github.com/authorizations/1787344 | |
< X-GitHub-Media-Type: github.beta | |
< X-Content-Type-Options: nosniff | |
< Content-Length: 350 | |
< ETag: "466f083887f49279439eff573a553aa4" | |
< Cache-Control: max-age=0, private, must-revalidate | |
< | |
* Connection #0 to host api.github.com left intact | |
{"id":1787344,"url":"https://api.github.com/authorizations/1787344","app":{"name":"Composer on nanshe (API)","url":"https://getcomposer.org/"},"token":"******","note":"Composer on nanshe","note_url":"https://getcomposer.org/","created_at":"2013-02-27T13:21:53Z","updated_at":"2013-02-27T13:21:53Z","scopes":["repo"]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment