public
Created

  • Download Gist
gistfile1.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
$ curl -i -H "Authorization: token my_token" https://api.github.com/orgs/everydayhero/repos
HTTP/1.1 200 OK
Server: nginx/1.0.4
Date: Sun, 30 Oct 2011 01:02:50 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Status: 200 OK
X-RateLimit-Limit: 5000
ETag: "55fef90d58683e3270408d09eae6ee71"
X-OAuth-Scopes:
X-RateLimit-Remaining: 4987
Content-Length: 25409
X-Accepted-OAuth-Scopes: repo
 
[
{
"homepage": "",
"svn_url": "https://svn.github.com/everydayhero/command_centre",
"language": "Ruby",
"git_url": "git://github.com/everydayhero/command_centre.git",
"forks": 0,
"pushed_at": "2011-10-28T06:46:33Z",
"fork": false,
"updated_at": "2011-10-28T06:46:33Z",
"html_url": "https://github.com/everydayhero/command_centre",
"watchers": 2,
"url": "https://api.github.com/repos/everydayhero/command_centre",
"private": true,
"description": "",
"size": 716,
"master_branch": null,
"owner": {
"url": "https://api.github.com/users/everydayhero",
"avatar_url": "https://secure.gravatar.com/avatar/bc142b8357dfd4123df0da774aed40c3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png",
"id": 558383,
"gravatar_id": "bc142b8357dfd4123df0da774aed40c3",
"login": "everydayhero"
},
"name": "command_centre",
"ssh_url": "git@github.com:everydayhero/command_centre.git",
"created_at": "2011-01-12T01:36:39Z",
"id": 1243896,
"clone_url": "https://github.com/everydayhero/command_centre.git",
"open_issues": 2
},
{
"homepage": "",
"svn_url": "https://svn.github.com/everydayhero/donation_timeline",
"language": "JavaScript",
"git_url": "git://github.com/everydayhero/donation_timeline.git",
"forks": 1,
"pushed_at": "2011-10-28T02:00:16Z",
"fork": false,
"updated_at": "2011-10-28T02:00:19Z",
"html_url": "https://github.com/everydayhero/donation_timeline",
"watchers": 1,
"url": "https://api.github.com/repos/everydayhero/donation_timeline",
"private": false,
"description": "",
"size": 152,
"master_branch": null,
"owner": {
"url": "https://api.github.com/users/everydayhero",
"avatar_url": "https://secure.gravatar.com/avatar/bc142b8357dfd4123df0da774aed40c3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png",
"id": 558383,
"gravatar_id": "bc142b8357dfd4123df0da774aed40c3",
"login": "everydayhero"
},
"name": "donation_timeline",
"ssh_url": "git@github.com:everydayhero/donation_timeline.git",
"created_at": "2011-10-28T01:59:57Z",
"id": 2662568,
"clone_url": "https://github.com/everydayhero/donation_timeline.git",
"open_issues": 0
}
]
 
 
$ curl -i -H "Authorization: token my_token" https://api.github.com/repos/everydayhero/donation_timeline
HTTP/1.1 200 OK
Server: nginx/1.0.4
Date: Sun, 30 Oct 2011 01:04:32 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Status: 200 OK
X-RateLimit-Limit: 5000
ETag: "573eb23ad7470ddd272a930059d559c2"
X-OAuth-Scopes:
X-RateLimit-Remaining: 4986
Content-Length: 1606
X-Accepted-OAuth-Scopes: repo, public_repo
 
{
"has_downloads": true,
"homepage": "",
"language": "JavaScript",
"has_wiki": true,
"svn_url": "https://svn.github.com/everydayhero/donation_timeline",
"forks": 1,
"fork": false,
"updated_at": "2011-10-28T02:00:19Z",
"integrate_branch": null,
"html_url": "https://github.com/everydayhero/donation_timeline",
"git_url": "git://github.com/everydayhero/donation_timeline.git",
"watchers": 1,
"url": "https://api.github.com/repos/everydayhero/donation_timeline",
"has_issues": true,
"private": false,
"description": "",
"size": 152,
"mirror_url": null,
"master_branch": null,
"pushed_at": "2011-10-28T02:00:16Z",
"owner": {
"avatar_url": "https://secure.gravatar.com/avatar/bc142b8357dfd4123df0da774aed40c3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png",
"url": "https://api.github.com/users/everydayhero",
"login": "everydayhero",
"id": 558383,
"gravatar_id": "bc142b8357dfd4123df0da774aed40c3"
},
"name": "donation_timeline",
"organization": {
"avatar_url": "https://secure.gravatar.com/avatar/bc142b8357dfd4123df0da774aed40c3?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png",
"url": "https://api.github.com/users/everydayhero",
"login": "everydayhero",
"id": 558383,
"gravatar_id": "bc142b8357dfd4123df0da774aed40c3"
},
"ssh_url": "git@github.com:everydayhero/donation_timeline.git",
"open_issues": 0,
"created_at": "2011-10-28T01:59:57Z",
"id": 2662568,
"clone_url": "https://github.com/everydayhero/donation_timeline.git"
}
 
 
$ curl -i -H "Authorization: token my_token" https://api.github.com/repos/everydayhero/command_centre
HTTP/1.1 404 Not Found
Server: nginx/1.0.4
Date: Sun, 30 Oct 2011 01:05:02 GMT
Content-Type: application/json; charset=utf-8
Connection: keep-alive
Status: 404 Not Found
X-RateLimit-Limit: 5000
ETag: "31b00b4920d3470b70611b10e0ba62a7"
X-OAuth-Scopes:
X-RateLimit-Remaining: 4985
Content-Length: 29
X-Accepted-OAuth-Scopes: repo
 
{
"message": "Not Found"
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.