Skip to content

Commit 82c7e30

Browse files
committed
merge
2 parents e49ebdd + 3332c4d commit 82c7e30

File tree

3 files changed

+25
-11
lines changed

3 files changed

+25
-11
lines changed

content/v3.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff 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
3336
X-RateLimit-Limit: 5000
37+
ETag: "d41d8cd98f00b204e9800998ecf8427e"
38+
Location: http://developer.github.com
3439
X-RateLimit-Remaining: 4999
35-
Content-Length: 2
40+
Content-Length: 0
3641

37-
{}
3842
</pre>
3943

4044
Blank fields are included as `null` instead of being omitted.
@@ -126,7 +130,8 @@ relatively new and uncommon HTTP verb, so resource endpoints also accept
126130
POST requests.
127131

128132
PUT
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

131136
DELETE
132137
: Used for deleting resources.

content/v3/libraries.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff 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

lib/resources.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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({

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy