Skip to content

Instantly share code, notes, and snippets.

/log Secret

Created December 12, 2016 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/cde67ba439fa50be1191a78877ca6e70 to your computer and use it in GitHub Desktop.
Save anonymous/cde67ba439fa50be1191a78877ca6e70 to your computer and use it in GitHub Desktop.
log
curl -X POST -d '{"description": "Anon", "public": true, "files": { "foo": { "content": "bar" } } }' 'https://api.github.com/gists
>
kbs-macbook:test kbs$ curl -X POST -d '{"description": "Anon", "public": true, "files": { "foo": { "content": "bar" } } }' 'https://api.github.com/gists'
{
"url": "https://api.github.com/gists/b8be31a340cb6a5c5a26296dbec992ec",
"forks_url": "https://api.github.com/gists/b8be31a340cb6a5c5a26296dbec992ec/forks",
"commits_url": "https://api.github.com/gists/b8be31a340cb6a5c5a26296dbec992ec/commits",
"id": "b8be31a340cb6a5c5a26296dbec992ec",
"git_pull_url": "https://gist.github.com/b8be31a340cb6a5c5a26296dbec992ec.git",
"git_push_url": "https://gist.github.com/b8be31a340cb6a5c5a26296dbec992ec.git",
"html_url": "https://gist.github.com/b8be31a340cb6a5c5a26296dbec992ec",
"files": {
"foo": {
"filename": "foo",
"type": "text/plain",
"language": null,
"raw_url": "https://gist.githubusercontent.com/anonymous/b8be31a340cb6a5c5a26296dbec992ec/raw/ba0e162e1c47469e3fe4b393a8bf8c569f302116/foo",
"size": 3,
"truncated": false,
"content": "bar"
}
},
"public": true,
"created_at": "2016-12-12T16:41:54Z",
"updated_at": "2016-12-12T16:41:54Z",
"description": "Anon",
"comments": 0,
"user": null,
"comments_url": "https://api.github.com/gists/b8be31a340cb6a5c5a26296dbec992ec/comments",
"forks": [
],
"history": [
{
"user": {
"login": "invalid-email-address",
"id": 148100,
"avatar_url": "https://avatars.githubusercontent.com/u/148100?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/invalid-email-address",
"html_url": "https://github.com/invalid-email-address",
"followers_url": "https://api.github.com/users/invalid-email-address/followers",
"following_url": "https://api.github.com/users/invalid-email-address/following{/other_user}",
"gists_url": "https://api.github.com/users/invalid-email-address/gists{/gist_id}",
"starred_url": "https://api.github.com/users/invalid-email-address/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/invalid-email-address/subscriptions",
"organizations_url": "https://api.github.com/users/invalid-email-address/orgs",
"repos_url": "https://api.github.com/users/invalid-email-address/repos",
"events_url": "https://api.github.com/users/invalid-email-address/events{/privacy}",
"received_events_url": "https://api.github.com/users/invalid-email-address/received_events",
"type": "User",
"site_admin": false
},
"version": "9a139a94fca79ed4808a710dc319ba80a6391e2e",
"committed_at": "2016-12-12T16:41:54Z",
"change_status": {
"total": 1,
"additions": 1,
"deletions": 0
},
"url": "https://api.github.com/gists/b8be31a340cb6a5c5a26296dbec992ec/9a139a94fca79ed4808a710dc319ba80a6391e2e"
}
],
"truncated": false
}
k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment