File tree Expand file tree Collapse file tree 3 files changed +25
-11
lines changed
Expand file tree Collapse file tree 3 files changed +25
-11
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,18 @@ domain. All data is sent and received as JSON.
2727<pre class =" terminal " >
2828$ curl -i https://api.github.com
2929
30- HTTP/1.1 200 OK
31- Content-Type: application/json
32- Status: 200 OK
30+ HTTP/1.1 302 Found
31+ Server: nginx/1.0.12
32+ Date: Mon, 20 Feb 2012 11:15:49 GMT
33+ Content-Type: text/html;charset=utf-8
34+ Connection: keep-alive
35+ Status: 302 Found
3336X-RateLimit-Limit: 5000
37+ ETag: "d41d8cd98f00b204e9800998ecf8427e"
38+ Location: http://developer.github.com
3439X-RateLimit-Remaining: 4999
35- Content-Length: 2
40+ Content-Length: 0
3641
37- {}
3842</pre >
3943
4044Blank fields are included as ` null ` instead of being omitted.
@@ -126,7 +130,8 @@ relatively new and uncommon HTTP verb, so resource endpoints also accept
126130POST requests.
127131
128132PUT
129- : Used for replacing resources or collections.
133+ : Used for replacing resources or collections. For PUT requests
134+ with no ` body ` attribute, be sure to set the ` Content-Length ` header to zero.
130135
131136DELETE
132137: Used for deleting resources.
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ Libraries for accessing the GitHub API from your favorite language.
1212
1313[ as3 ] : https://github.com/cbrammer/api-github-as3
1414
15+ ## Clojure
16+
17+ * [ Tentacles] [ tentacles ]
18+
19+ [ tentacles ] : https://github.com/Raynes/tentacles
20+
1521## CSharp
1622
1723* [ CSharp GitHub API] [ csharp ]
@@ -44,10 +50,11 @@ GitHub v3 API. Builds are available in [Maven Central](http://search.maven.org/
4450
4551## Perl
4652
47- The [ Pithub] [ pithub-github ] library for Perl provides an interface
48- to the entire GitHub v3 API. There are a lot of tests included and
49- it is also available on the [ CPAN] [ pithub-cpan ] .
53+ * [ Pithub] [ pithub-github ] ([ CPAN] [ pithub-cpan ] )
54+ * [ Net::Github] [ net-github-github ] ([ CPAN] [ net-github-cpan ] )
5055
56+ [ net-github-github ] : https://github.com/fayland/perl-net-github
57+ [ net-github-cpan ] : http://search.cpan.org/~fayland/Net-GitHub-0.30/lib/Net/GitHub.pm
5158[ pithub-github ] : https://github.com/plu/Pithub
5259[ pithub-cpan ] : http://metacpan.org/module/Pithub
5360
@@ -58,7 +65,6 @@ it is also available on the [CPAN][pithub-cpan].
5865* [ GitHub Kohana Module] [ kohana ]
5966
6067[ github-api ] : https://github.com/yiiext/github-api
61- [ php-github-api ] : https://github.com/ornicar/php-github-api
6268[ kohana ] : https://github.com/acoulton/github_v3_api
6369
6470## Python
Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ def json(key)
113113 "git_url" => "git://github.com/octocat/Hello-World.git" ,
114114 "ssh_url" => "git@github.com:octocat/Hello-World.git" ,
115115 "svn_url" => "https://svn.github.com/octocat/Hello-World" ,
116+ "mirror_url" => "git://git.example.com/octocat/Hello-World" ,
117+ "id" => 1296269 ,
116118 "owner" => USER ,
117119 "name" => "Hello-World" ,
118120 "description" => "This your first repo!" ,
@@ -126,7 +128,8 @@ def json(key)
126128 "master_branch" => 'master' ,
127129 "open_issues" => 0 ,
128130 "pushed_at" => "2011-01-26T19:06:43Z" ,
129- "created_at" => "2011-01-26T19:01:12Z"
131+ "created_at" => "2011-01-26T19:01:12Z" ,
132+ "updated_at" => "2011-01-26T19:14:43Z"
130133 }
131134
132135 FULL_REPO = REPO . merge ( {
You can’t perform that action at this time.
0 commit comments