mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
webhooks/ifttt: Update text to conform to doc style guide.
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 6.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 80 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB |
@@ -1,40 +1,20 @@
|
||||
Get notifications from every event supported by IFTTT.
|
||||
Get notifications from every event supported by IFTTT!
|
||||
|
||||
{!create-stream.md!}
|
||||
1. {!create-stream.md!}
|
||||
|
||||
{!create-bot-construct-url.md!}
|
||||
1. {!create-bot-construct-url-indented.md!}
|
||||
|
||||
Next, create an IFTTT recipe, picking the service you'd like
|
||||
to receive notifications from as `this`, and `Maker` as `that`.
|
||||
1. Next, create an IFTTT Applet and select the service you'd like
|
||||
to receive notifications from as `this`. Select **Webhooks** as
|
||||
`that`. Select the **Make a web request** action.
|
||||
|
||||

|
||||
1. Set **URL** to the URL constructed above. Set **Method** to `POST`,
|
||||
and set **Content Type** to `application/json`. Set **Body** to a
|
||||
JSON object with two parameters: `content` and `subject`, like so:
|
||||
|
||||
Choose the `Make a web request` action, and configure it as
|
||||
follows:
|
||||
`{"content": "message body", "subject": "message topic"}`
|
||||
|
||||
1. `URL` is the URL we created above
|
||||
|
||||
2. `method` is POST
|
||||
|
||||
3. `Content Type` is `application/json`
|
||||
|
||||
Finally, configure the request body. You need to construct a JSON
|
||||
object with two parameters: `content` and `subject`.
|
||||
|
||||
Example:
|
||||
|
||||
`{"content": "message content", "subject": "message subject"}`
|
||||
|
||||
You will most likely want to specify some IFTTT **Ingredients**
|
||||
(click the beaker to see the available options) to customize
|
||||
the subject and content of your messages; the below screenshot
|
||||
uses ingredients available if `this` is IFTTT's incoming email
|
||||
service.
|
||||
|
||||
Example configuration:
|
||||
|
||||

|
||||
|
||||
{!congrats.md!}
|
||||
|
||||

|
||||
You will most likely want to specify some IFTTT **Ingredients** to
|
||||
customize the subject and content of your messages. Click **Add ingredient**
|
||||
to see the available options and customize the `content` and `subject`
|
||||
parameters as necessary. Click **Create action**, and click **Finish**.
|
||||
|
||||
Reference in New Issue
Block a user