- Request a github oauth token
curl -v -X POST \
-H "Authorization: token YOUR_OAUTH_TOKEN_REQUESTED_IN_STEP_1" \
-H "Content-Type: application/json" \
-d '{"description": "testcreategist", "public":false, "files":{"file1.txt":{"content":"some content..."}}}' \
https://api.github.com/gists