webhooks/ifttt: Update text to conform to doc style guide.

This commit is contained in:
Eeshan Garg
2018-03-10 18:36:19 -03:30
committed by Rishi Gupta
parent 1a3ae8a376
commit 0a3961502f
4 changed files with 14 additions and 34 deletions

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

View File

@@ -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.
![](/static/images/integrations/ifttt/001.png)
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:
![](/static/images/integrations/ifttt/002.png)
{!congrats.md!}
![](/static/images/integrations/ifttt/003.png)
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**.