Skip to content

Instantly share code, notes, and snippets.

@georgebearden
Last active November 30, 2015 01:43
Show Gist options
  • Select an option

  • Save georgebearden/a88214f1b172b236b23b to your computer and use it in GitHub Desktop.

Select an option

Save georgebearden/a88214f1b172b236b23b to your computer and use it in GitHub Desktop.
  1. 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 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment