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.

Commit6adb64c

Browse files
committed
Merge pull request#497 from github/rename-webhook-payload-version-to-content-type
Update wording around "Payload version" in favor of "Content type" in Webhooks docs
2 parentsaeb8e0b +5f973bb commit6adb64c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

‎content/webhooks/creating/index.md‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,16 @@ This is the server endpoint that will receive the webhook payload.
3737
Since we're developing locally for our tutorial, let's set it to`http://localhost:4567/payload`.
3838
We'll explain why in the[Configuring Your Server](/webhooks/configuring/) docs.
3939

40-
##Payload version
40+
##Content Type
4141

42-
Webhooks can deliver various[media types](/v3/media/) as defined by the GitHub API.
43-
Choose the one that best fits your needs. For this tutorial, the default format is fine.
42+
Webhooks can be delivered using different content types:
43+
44+
- The`application/json` content type will deliver the JSON payload directly as the body of the POST.
45+
- The`application/x-www-form-urlencoded` content type will send the JSON payload as a form parameter
46+
called "payload".
47+
48+
Choose the one that best fits your needs. For this tutorial, the default content type of
49+
`application/json` is fine.
4450

4551
##Events
4652

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp