Created
March 2, 2016 17:20
-
-
Save dphiffer/ac88021340f004097bfc to your computer and use it in GitHub Desktop.
How do I GitHub API?
This file contains hidden or 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 -X POST \ | |
| -H "User-Agent: curl" \ | |
| -H "Content-Type: application/json" \ | |
| -H "Authorization: token XXXXXX" \ | |
| "https://api.github.com/gists" -d ' | |
| { | |
| "description": "Testing gist API", | |
| "public": false, | |
| "files": { | |
| "file1.txt": { | |
| "content": "Hello, testing one two." | |
| } | |
| } | |
| } | |
| ' |
This file contains hidden or 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
| <html> | |
| <head><title>405 Not Allowed</title></head> | |
| <body bgcolor="white"> | |
| <center><h1>405 Not Allowed</h1></center> | |
| <hr><center>nginx</center> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment