Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit6254d43

Browse files
committed
Merge 'upstream/master' into internal/master
2 parentsee83ab1 +e1cbee2 commit6254d43

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

‎content/v3.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ are not websites.
219219
###OAuth2 Key/Secret
220220

221221
<preclass="terminal">
222-
$ curl https://api.github.com/users/whatever?client_id=xxxx&client_secret=yyyy
222+
$ curl'https://api.github.com/users/whatever?client_id=xxxx&client_secret=yyyy'
223223
</pre>
224224

225225
This should only be used in server to server scenarios. Don't leak your
@@ -289,7 +289,7 @@ Note that for technical reasons not all endpoints respect the `?per_page` parame
289289
see[events](http://developer.github.com/v3/activity/events/) for example.
290290

291291
<preclass="terminal">
292-
$ curl https://api.github.com/user/repos?page=2&per_page=100
292+
$ curl'https://api.github.com/user/repos?page=2&per_page=100'
293293
</pre>
294294

295295
Note that page numbering is 1-based and that omitting the`?page`
@@ -382,7 +382,7 @@ associated with your OAuth application, you can send over your client ID and
382382
secret in the query string.
383383

384384
<preclass="terminal">
385-
$ curl -i https://api.github.com/users/whatever?client_id=xxxxxxxxxxxxxx&client_secret=yyyyyyyyyyyyyyyyyyyyy
385+
$ curl -i'https://api.github.com/users/whatever?client_id=xxxx&client_secret=yyyy'
386386

387387
HTTP/1.1 200 OK
388388
Date: Mon, 01 Jul 2013 17:27:06 GMT

‎content/v3/oauth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ the error:
245245
&state=xyz
246246

247247
There's nothing you can do here as users are free to choose not to use
248-
your application. More oftenthat not, users will just close the window
248+
your application. More oftenthan not, users will just close the window
249249
or press back in their browser, so it is likely that you'll never see
250250
this error.
251251

‎content/v3/repos/hooks.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,20 @@ This will trigger a [ping event][ping-event-url] to be sent to the hook.
131131

132132
<%= headers 204 %>
133133

134+
##Receiving Webhooks
135+
136+
In order for GitHub to send Webhook payloads to your service, your server needs to be accessible from the Internet. We also highly suggest using SSL so that we can send encrypted payloads over HTTPS.
137+
138+
###Webhook Headers
139+
140+
GitHub will send along a few HTTP headers to differentiate between event types and payload identifiers.
141+
142+
Name | Description
143+
-----|-----------|
144+
`X-GitHub-Event` | The[event type](#events) that was triggered.
145+
`X-GitHub-Delivery` | A[guid][guid] to identify the payload and event being sent.
146+
`X-GitHub-Signature` | The value of this header is computed as the HMAC hex digest of the body, using the`secret` config option as the key.
147+
134148
##PubSubHubbub
135149

136150
GitHub can also serve as a[PubSubHubbub][pubsub] hub for all repositories.
@@ -191,10 +205,11 @@ Name | Type | Description
191205
``hub.secret``|`string` | A shared secret key that generates a SHA1 HMAC of the outgoing body content. You can verify a push came from GitHub by comparing the raw request body with the contents of the`X-Hub-Signature` header. You can see[our Ruby implementation][ruby-secret], or[the PubSubHubbub documentation][pshb-secret] for more details.
192206

193207

208+
[guid]:http://en.wikipedia.org/wiki/Globally_unique_identifier
194209
[pubsub]:http://code.google.com/p/pubsubhubbub/
195210
[post-receive]:http://help.github.com/post-receive-hooks/
196211
[ruby-secret]:https://github.com/github/github-services/blob/14f4da01ce29bc6a02427a9fbf37b08b141e81d9/lib/services/web.rb#L47-L50
197212
[hub-signature]:https://github.com/github/github-services/blob/f3bb3dd780feb6318c42b2db064ed6d481b70a1f/lib/service/http_helper.rb#L77
198213
[pshb-secret]:http://pubsubhubbub.googlecode.com/svn/trunk/pubsubhubbub-core-0.3.html#authednotify
199214
[events-url]:/webhooks/#events
200-
[ping-event-url]:/webhooks/#ping-event
215+
[ping-event-url]:/webhooks/#ping-event

‎lib/resources.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ def text_html(response, status, head = {})
389389
"open_issues"=>4,
390390
"closed_issues"=>8,
391391
"created_at"=>"2011-04-10T20:09:31Z",
392+
"updated_at"=>"2014-03-03T18:58:10Z",
392393
"due_on"=>nil
393394
}
394395

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp