@@ -45,7 +45,7 @@ The event objects returned from the Events API endpoints have the same structure
|
||||
This example shows the format of the [WatchEvent](#watchevent) response when using the [Events API](/rest/reference/activity#events).
|
||||
|
||||
```
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
Link: <https://api.github.com/resource?page=2>; rel="next",
|
||||
<https://api.github.com/resource?page=5>; rel="last"
|
||||
```
|
||||
|
||||
@@ -62,7 +62,6 @@ $ curl -i https://api.github.com/users/defunkt
|
||||
> Server: GitHub.com
|
||||
> Date: Sun, 11 Nov 2012 18:43:28 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Status: 200 OK
|
||||
> ETag: "bfd85cbf23ac0b0c8a29bee02e7117c6"
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 57
|
||||
|
||||
@@ -39,7 +39,6 @@ $ curl -I {% data variables.product.api_url_pre %}/users/octocat/orgs
|
||||
> Server: nginx
|
||||
> Date: Fri, 12 Oct 2012 23:33:14 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Status: 200 OK
|
||||
> ETag: "a00049ba79152d03380c34652f2cb612"
|
||||
> X-GitHub-Media-Type: github.v3
|
||||
> X-RateLimit-Limit: 5000
|
||||
@@ -376,7 +375,6 @@ The returned HTTP headers of any API request show your current rate limit status
|
||||
$ curl -I {% data variables.product.api_url_pre %}/users/octocat
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 56
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -400,7 +398,6 @@ If you exceed the rate limit, an error response returns:
|
||||
```shell
|
||||
> HTTP/1.1 403 Forbidden
|
||||
> Date: Tue, 20 Aug 2013 14:50:41 GMT
|
||||
> Status: 403 Forbidden
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 0
|
||||
> X-RateLimit-Reset: 1377013266
|
||||
@@ -421,7 +418,6 @@ If your OAuth application needs to make unauthenticated calls with a higher rate
|
||||
$ curl -u my_client_id:my_client_secret {% data variables.product.api_url_pre %}/user/repos
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4966
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -510,7 +506,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 200 OK
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -521,7 +516,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user -H 'If-None-Match: "644b
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -531,7 +525,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user -H "If-Modified-Since: T
|
||||
> HTTP/1.1 304 Not Modified
|
||||
> Cache-Control: private, max-age=60
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
|
||||
@@ -56,7 +56,7 @@ To get a feed in Atom format, you must specify the `application/atom+xml` type i
|
||||
#### Response
|
||||
|
||||
```shell
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
```
|
||||
|
||||
```xml
|
||||
|
||||
@@ -45,7 +45,7 @@ The event objects returned from the Events API endpoints have the same structure
|
||||
This example shows the format of the [WatchEvent](#watchevent) response when using the [Events API](/rest/reference/activity#events).
|
||||
|
||||
```
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
Link: <https://api.github.com/resource?page=2>; rel="next",
|
||||
<https://api.github.com/resource?page=5>; rel="last"
|
||||
```
|
||||
|
||||
@@ -57,7 +57,6 @@ $ curl -i https://api.github.com/users/defunkt
|
||||
> Server: GitHub.com
|
||||
> Date: Sun, 11 Nov 2012 18:43:28 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Status: 200 OK
|
||||
> ETag: "bfd85cbf23ac0b0c8a29bee02e7117c6"
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 57
|
||||
|
||||
@@ -38,7 +38,6 @@ $ curl -I {% data variables.product.api_url_pre %}/users/octocat/orgs
|
||||
> Server: nginx
|
||||
> Date: Fri, 12 Oct 2012 23:33:14 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Status: 200 OK
|
||||
> ETag: "a00049ba79152d03380c34652f2cb612"
|
||||
> X-GitHub-Media-Type: github.v3
|
||||
> X-RateLimit-Limit: 5000
|
||||
@@ -331,7 +330,6 @@ The returned HTTP headers of any API request show your current rate limit status
|
||||
$ curl -I {% data variables.product.api_url_pre %}/users/octocat
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 56
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -355,7 +353,6 @@ If you exceed the rate limit, an error response returns:
|
||||
```shell
|
||||
> HTTP/1.1 403 Forbidden
|
||||
> Date: Tue, 20 Aug 2013 14:50:41 GMT
|
||||
> Status: 403 Forbidden
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 0
|
||||
> X-RateLimit-Reset: 1377013266
|
||||
@@ -376,7 +373,6 @@ If your OAuth application needs to make unauthenticated calls with a higher rate
|
||||
$ curl -u my_client_id:my_client_secret {% data variables.product.api_url_pre %}/user/repos
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4966
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -458,7 +454,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 200 OK
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -469,7 +464,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user -H 'If-None-Match: "644b
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -479,7 +473,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user -H "If-Modified-Since: T
|
||||
> HTTP/1.1 304 Not Modified
|
||||
> Cache-Control: private, max-age=60
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
|
||||
@@ -56,7 +56,7 @@ To get a feed in Atom format, you must specify the `application/atom+xml` type i
|
||||
#### Response
|
||||
|
||||
```shell
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
```
|
||||
|
||||
```xml
|
||||
|
||||
@@ -45,7 +45,7 @@ Los objetos de los eventos que se devuelven de las terminales de la API de Event
|
||||
Este ejemplo te muestra el formato de la respuesta de [WatchEvent](#watchevent) cuando utilizas la [API de Eventos](/rest/reference/activity#events).
|
||||
|
||||
```
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
Link: <https://api.github.com/resource?page=2>; rel="next",
|
||||
<https://api.github.com/resource?page=5>; rel="last"
|
||||
```
|
||||
|
||||
@@ -57,7 +57,6 @@ $ curl -i https://api.github.com/users/defunkt
|
||||
> Server: GitHub.com
|
||||
> Date: Sun, 11 Nov 2012 18:43:28 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Status: 200 OK
|
||||
> ETag: "bfd85cbf23ac0b0c8a29bee02e7117c6"
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 57
|
||||
|
||||
@@ -38,7 +38,6 @@ $ curl -I {% data variables.product.api_url_pre %}/users/octocat/orgs
|
||||
> Server: nginx
|
||||
> Date: Fri, 12 Oct 2012 23:33:14 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Status: 200 OK
|
||||
> ETag: "a00049ba79152d03380c34652f2cb612"
|
||||
> X-GitHub-Media-Type: github.v3
|
||||
> X-RateLimit-Limit: 5000
|
||||
@@ -331,7 +330,6 @@ Los encabezados HTTP recuperados para cualquier solicitud de la API muestran tu
|
||||
$ curl -I {% data variables.product.api_url_pre %}/users/octocat
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 56
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -355,7 +353,6 @@ Si excedes el límite de tasa, se regresará una respuesta de error:
|
||||
```shell
|
||||
> HTTP/1.1 403 Forbidden
|
||||
> Date: Tue, 20 Aug 2013 14:50:41 GMT
|
||||
> Status: 403 Forbidden
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 0
|
||||
> X-RateLimit-Reset: 1377013266
|
||||
@@ -376,7 +373,6 @@ Si tu aplicación de OAuth necesita hacer llamados no autenticados con un límit
|
||||
$ curl -u my_client_id:my_client_secret {% data variables.product.api_url_pre %}/user/repos
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4966
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -458,7 +454,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 200 OK
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -469,7 +464,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user -H 'If-None-Match: "644b
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -479,7 +473,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user -H "If-Modified-Since: T
|
||||
> HTTP/1.1 304 Not Modified
|
||||
> Cache-Control: private, max-age=60
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
|
||||
@@ -56,7 +56,7 @@ Para obtener un canal en formato de Atom, debes especificar el tipo `application
|
||||
#### Respuesta
|
||||
|
||||
```shell
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
```
|
||||
|
||||
```xml
|
||||
|
||||
@@ -43,7 +43,7 @@ Los objetos de los eventos que se devuelven de las terminales de la API de Event
|
||||
Este ejemplo te muestra el formato de la respuesta de [WatchEvent](#watchevent) cuando utilizas la [API de Eventos](/v3/activity/events).
|
||||
|
||||
```
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
Link: <https://api.github.com/resource?page=2>; rel="next",
|
||||
<https://api.github.com/resource?page=5>; rel="last"
|
||||
```
|
||||
|
||||
@@ -56,7 +56,6 @@ $ curl -i {% data variables.product.api_url_pre %}/users/defunkt
|
||||
> Date: Sun, 11 Nov 2012 18:43:28 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Connection: keep-alive
|
||||
> Status: 200 OK
|
||||
> ETag: "bfd85cbf23ac0b0c8a29bee02e7117c6"
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 57
|
||||
|
||||
@@ -37,7 +37,6 @@ $ curl -i {% data variables.product.api_url_pre %}/users/octocat/orgs
|
||||
> Date: Fri, 12 Oct 2012 23:33:14 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Connection: keep-alive
|
||||
> Status: 200 OK
|
||||
> ETag: "a00049ba79152d03380c34652f2cb612"
|
||||
> X-GitHub-Media-Type: github.v3
|
||||
> X-RateLimit-Limit: 5000
|
||||
@@ -329,7 +328,6 @@ Los encabezados HTTP recuperados para cualquier solicitud de la API muestran tu
|
||||
$ curl -i {% data variables.product.api_url_pre %}/users/octocat
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 56
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -353,7 +351,6 @@ Si excedes el límite de tasa, se regresará una respuesta de error:
|
||||
```shell
|
||||
> HTTP/1.1 403 Forbidden
|
||||
> Date: Tue, 20 Aug 2013 14:50:41 GMT
|
||||
> Status: 403 Forbidden
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 0
|
||||
> X-RateLimit-Reset: 1377013266
|
||||
@@ -374,7 +371,6 @@ Si tu aplicación de OAuth necesita hacer llamados no autenticados con un límit
|
||||
$ curl -u my_client_id:my_client_secret {% data variables.product.api_url_pre %}/user/repos
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4966
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -456,7 +452,6 @@ $ curl -i {% data variables.product.api_url_pre %}/user
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 200 OK
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -467,7 +462,6 @@ $ curl -i {% data variables.product.api_url_pre %}/user -H 'If-None-Match: "644b
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -477,7 +471,6 @@ $ curl -i {% data variables.product.api_url_pre %}/user -H "If-Modified-Since: T
|
||||
> HTTP/1.1 304 Not Modified
|
||||
> Cache-Control: private, max-age=60
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
|
||||
@@ -55,7 +55,7 @@ Para obtener un canal en formato de Atom, debes especificar el tipo `application
|
||||
#### Respuesta
|
||||
|
||||
```shell
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
```
|
||||
|
||||
```xml
|
||||
|
||||
@@ -45,7 +45,7 @@ Events APIエンドポイントから返されるイベントオブジェクト
|
||||
この例は、[Events API](/rest/reference/activity#events)を使用する際の[WatchEvent](#watchevent)のレスポンスの形式を示しています。
|
||||
|
||||
```
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
Link: <https://api.github.com/resource?page=2>; rel="next",
|
||||
<https://api.github.com/resource?page=5>; rel="last"
|
||||
```
|
||||
|
||||
@@ -57,7 +57,6 @@ $ curl -i https://api.github.com/users/defunkt
|
||||
> Server: GitHub.com
|
||||
> Date: Sun, 11 Nov 2012 18:43:28 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Status: 200 OK
|
||||
> ETag: "bfd85cbf23ac0b0c8a29bee02e7117c6"
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 57
|
||||
|
||||
@@ -38,7 +38,6 @@ $ curl -I {% data variables.product.api_url_pre %}/users/octocat/orgs
|
||||
> Server: nginx
|
||||
> Date: Fri, 12 Oct 2012 23:33:14 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Status: 200 OK
|
||||
> ETag: "a00049ba79152d03380c34652f2cb612"
|
||||
> X-GitHub-Media-Type: github.v3
|
||||
> X-RateLimit-Limit: 5000
|
||||
@@ -330,7 +329,6 @@ API リクエストの返された HTTP ヘッダは、現在のレート制限
|
||||
$ curl -I {% data variables.product.api_url_pre %}/users/octocat
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 56
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -354,7 +352,6 @@ new Date(1372700873 * 1000)
|
||||
```shell
|
||||
> HTTP/1.1 403 Forbidden
|
||||
> Date: Tue, 20 Aug 2013 14:50:41 GMT
|
||||
> Status: 403 Forbidden
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 0
|
||||
> X-RateLimit-Reset: 1377013266
|
||||
@@ -375,7 +372,6 @@ OAuth アプリケーションが認証されていない呼び出しをより
|
||||
$ curl -u my_client_id:my_client_secret {% data variables.product.api_url_pre %}/user/repos
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4966
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -457,7 +453,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 200 OK
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -468,7 +463,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user -H 'If-None-Match: "644b
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -478,7 +472,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user -H "If-Modified-Since: T
|
||||
> HTTP/1.1 304 Not Modified
|
||||
> Cache-Control: private, max-age=60
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
|
||||
@@ -56,7 +56,7 @@ Atom 形式のフィードを取得するには、`Accept` ヘッダで `applica
|
||||
#### レスポンス
|
||||
|
||||
```shell
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
```
|
||||
|
||||
```xml
|
||||
|
||||
@@ -45,7 +45,7 @@ The event objects returned from the Events API endpoints have the same structure
|
||||
This example shows the format of the [WatchEvent](#watchevent) response when using the [Events API](/rest/reference/activity#events).
|
||||
|
||||
```
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
Link: <https://api.github.com/resource?page=2>; rel="next",
|
||||
<https://api.github.com/resource?page=5>; rel="last"
|
||||
```
|
||||
|
||||
@@ -57,7 +57,6 @@ $ curl -i https://api.github.com/users/defunkt
|
||||
> Server: GitHub.com
|
||||
> Date: Sun, 11 Nov 2012 18:43:28 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Status: 200 OK
|
||||
> ETag: "bfd85cbf23ac0b0c8a29bee02e7117c6"
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 57
|
||||
|
||||
@@ -38,7 +38,6 @@ $ curl -I {% data variables.product.api_url_pre %}/users/octocat/orgs
|
||||
> Server: nginx
|
||||
> Date: Fri, 12 Oct 2012 23:33:14 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Status: 200 OK
|
||||
> ETag: "a00049ba79152d03380c34652f2cb612"
|
||||
> X-GitHub-Media-Type: github.v3
|
||||
> X-RateLimit-Limit: 5000
|
||||
@@ -331,7 +330,6 @@ The returned HTTP headers of any API request show your current rate limit status
|
||||
$ curl -I {% data variables.product.api_url_pre %}/users/octocat
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 56
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -355,7 +353,6 @@ If you exceed the rate limit, an error response returns:
|
||||
```shell
|
||||
> HTTP/1.1 403 Forbidden
|
||||
> Date: Tue, 20 Aug 2013 14:50:41 GMT
|
||||
> Status: 403 Forbidden
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 0
|
||||
> X-RateLimit-Reset: 1377013266
|
||||
@@ -376,7 +373,6 @@ If your OAuth application needs to make unauthenticated calls with a higher rate
|
||||
$ curl -u my_client_id:my_client_secret {% data variables.product.api_url_pre %}/user/repos
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4966
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -458,7 +454,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 200 OK
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -469,7 +464,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user -H 'If-None-Match: "644b
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -479,7 +473,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user -H "If-Modified-Since: T
|
||||
> HTTP/1.1 304 Not Modified
|
||||
> Cache-Control: private, max-age=60
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
|
||||
@@ -56,7 +56,7 @@ To get a feed in Atom format, you must specify the `application/atom+xml` type i
|
||||
#### 응답
|
||||
|
||||
```shell
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
```
|
||||
|
||||
```xml
|
||||
|
||||
@@ -45,7 +45,7 @@ Os objetos de evento retornados dos pontos de extremidade da API de eventos têm
|
||||
Este exemplo mostra o formato da resposta do [WatchEvent](#watchevent) ao usar a [API de eventos](/rest/reference/activity#events).
|
||||
|
||||
```
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
Link: <https://api.github.com/resource?page=2>; rel="next",
|
||||
<https://api.github.com/resource?page=5>; rel="last"
|
||||
```
|
||||
|
||||
@@ -57,7 +57,6 @@ $ curl -i https://api.github.com/users/defunkt
|
||||
> Server: GitHub.com
|
||||
> Date: Sun, 11 Nov 2012 18:43:28 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Status: 200 OK
|
||||
> ETag: "bfd85cbf23ac0b0c8a29bee02e7117c6"
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 57
|
||||
|
||||
@@ -38,7 +38,6 @@ $ curl -I {% data variables.product.api_url_pre %}/users/octocat/orgs
|
||||
> Server: nginx
|
||||
> Date: Fri, 12 Oct 2012 23:33:14 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Status: 200 OK
|
||||
> ETag: "a00049ba79152d03380c34652f2cb612"
|
||||
> X-GitHub-Media-Type: github.v3
|
||||
> X-RateLimit-Limit: 5000
|
||||
@@ -337,7 +336,6 @@ Os cabeçalhos HTTP retornados de qualquer solicitação de API mostram o seu st
|
||||
$ curl -I {% data variables.product.api_url_pre %}/users/octocat
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 56
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -361,7 +359,6 @@ Se você exceder o limite de taxa, uma resposta do erro retorna:
|
||||
```shell
|
||||
> HTTP/1.1 403 Forbidden
|
||||
> Date: Tue, 20 Aug 2013 14:50:41 GMT
|
||||
> Status: 403 Forbidden
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 0
|
||||
> X-RateLimit-Reset: 1377013266
|
||||
@@ -382,7 +379,6 @@ Se o seu aplicativo OAuth precisar fazer chamadas não autenticadas com um limit
|
||||
$ curl -u my_client_id:my_client_secret {% data variables.product.api_url_pre %}/user/repos
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4966
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -464,7 +460,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 200 OK
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -475,7 +470,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user -H 'If-None-Match: "644b
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -485,7 +479,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user -H "If-Modified-Since: T
|
||||
> HTTP/1.1 304 Not Modified
|
||||
> Cache-Control: private, max-age=60
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
|
||||
@@ -56,7 +56,7 @@ Para obter um feed no formato Atom você deve especificar o tipo `application/at
|
||||
#### Resposta
|
||||
|
||||
```shell
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
```
|
||||
|
||||
```xml
|
||||
|
||||
@@ -45,7 +45,7 @@ The event objects returned from the Events API endpoints have the same structure
|
||||
This example shows the format of the [WatchEvent](#watchevent) response when using the [Events API](/rest/reference/activity#events).
|
||||
|
||||
```
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
Link: <https://api.github.com/resource?page=2>; rel="next",
|
||||
<https://api.github.com/resource?page=5>; rel="last"
|
||||
```
|
||||
|
||||
@@ -57,7 +57,6 @@ $ curl -i https://api.github.com/users/defunkt
|
||||
> Server: GitHub.com
|
||||
> Date: Sun, 11 Nov 2012 18:43:28 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Status: 200 OK
|
||||
> ETag: "bfd85cbf23ac0b0c8a29bee02e7117c6"
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 57
|
||||
|
||||
@@ -38,7 +38,6 @@ $ curl -I {% data variables.product.api_url_pre %}/users/octocat/orgs
|
||||
> Server: nginx
|
||||
> Date: Fri, 12 Oct 2012 23:33:14 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Status: 200 OK
|
||||
> ETag: "a00049ba79152d03380c34652f2cb612"
|
||||
> X-GitHub-Media-Type: github.v3
|
||||
> X-RateLimit-Limit: 5000
|
||||
@@ -331,7 +330,6 @@ The returned HTTP headers of any API request show your current rate limit status
|
||||
$ curl -I {% data variables.product.api_url_pre %}/users/octocat
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 56
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -355,7 +353,6 @@ If you exceed the rate limit, an error response returns:
|
||||
```shell
|
||||
> HTTP/1.1 403 Forbidden
|
||||
> Date: Tue, 20 Aug 2013 14:50:41 GMT
|
||||
> Status: 403 Forbidden
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 0
|
||||
> X-RateLimit-Reset: 1377013266
|
||||
@@ -376,7 +373,6 @@ If your OAuth application needs to make unauthenticated calls with a higher rate
|
||||
$ curl -u my_client_id:my_client_secret {% data variables.product.api_url_pre %}/user/repos
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4966
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -458,7 +454,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 200 OK
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -469,7 +464,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user -H 'If-None-Match: "644b
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -479,7 +473,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user -H "If-Modified-Since: T
|
||||
> HTTP/1.1 304 Not Modified
|
||||
> Cache-Control: private, max-age=60
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
|
||||
@@ -56,7 +56,7 @@ To get a feed in Atom format, you must specify the `application/atom+xml` type i
|
||||
#### Response
|
||||
|
||||
```shell
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
```
|
||||
|
||||
```xml
|
||||
|
||||
@@ -45,7 +45,7 @@ topics:
|
||||
此示例显示了使用[事件 API](/rest/reference/activity#events) 时 [WatchEvent](#watchevent) 响应的格式。
|
||||
|
||||
```
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
Link: <https://api.github.com/resource?page=2>; rel="next",
|
||||
<https://api.github.com/resource?page=5>; rel="last"
|
||||
```
|
||||
|
||||
@@ -57,7 +57,6 @@ $ curl -i https://api.github.com/users/defunkt
|
||||
> Server: GitHub.com
|
||||
> Date: Sun, 11 Nov 2012 18:43:28 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Status: 200 OK
|
||||
> ETag: "bfd85cbf23ac0b0c8a29bee02e7117c6"
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 57
|
||||
|
||||
@@ -37,7 +37,6 @@ $ curl -I {% data variables.product.api_url_pre %}/users/octocat/orgs
|
||||
> Server: nginx
|
||||
> Date: Fri, 12 Oct 2012 23:33:14 GMT
|
||||
> Content-Type: application/json; charset=utf-8
|
||||
> Status: 200 OK
|
||||
> ETag: "a00049ba79152d03380c34652f2cb612"
|
||||
> X-GitHub-Media-Type: github.v3
|
||||
> X-RateLimit-Limit: 5000
|
||||
@@ -372,7 +371,6 @@ The returned HTTP headers of any API request show your current rate limit status
|
||||
$ curl -I {% data variables.product.api_url_pre %}/users/octocat
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 56
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -396,7 +394,6 @@ If you exceed the rate limit, an error response returns:
|
||||
```shell
|
||||
> HTTP/1.1 403 Forbidden
|
||||
> Date: Tue, 20 Aug 2013 14:50:41 GMT
|
||||
> Status: 403 Forbidden
|
||||
> X-RateLimit-Limit: 60
|
||||
> X-RateLimit-Remaining: 0
|
||||
> X-RateLimit-Reset: 1377013266
|
||||
@@ -417,7 +414,6 @@ If your OAuth application needs to make unauthenticated calls with a higher rate
|
||||
$ curl -u my_client_id:my_client_secret {% data variables.product.api_url_pre %}/user/repos
|
||||
> HTTP/1.1 200 OK
|
||||
> Date: Mon, 01 Jul 2013 17:27:06 GMT
|
||||
> Status: 200 OK
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4966
|
||||
> X-RateLimit-Reset: 1372700873
|
||||
@@ -506,7 +502,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 200 OK
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -517,7 +512,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user -H 'If-None-Match: "644b
|
||||
> Cache-Control: private, max-age=60
|
||||
> ETag: "644b5b0155e6404a9cc4bd9d8b1ae730"
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
@@ -527,7 +521,6 @@ $ curl -I {% data variables.product.api_url_pre %}/user -H "If-Modified-Since: T
|
||||
> HTTP/1.1 304 Not Modified
|
||||
> Cache-Control: private, max-age=60
|
||||
> Last-Modified: Thu, 05 Jul 2012 15:31:30 GMT
|
||||
> Status: 304 Not Modified
|
||||
> Vary: Accept, Authorization, Cookie
|
||||
> X-RateLimit-Limit: 5000
|
||||
> X-RateLimit-Remaining: 4996
|
||||
|
||||
@@ -56,7 +56,7 @@ $ -H 'If-None-Match: "a18c3bded88eb5dbb5c849a489412bf3"'
|
||||
#### 响应
|
||||
|
||||
```shell
|
||||
Status: 200 OK
|
||||
HTTP/1.1 200 OK
|
||||
```
|
||||
|
||||
```xml
|
||||
|
||||
Reference in New Issue
Block a user