Skip to content

Commit 7f3087f

Browse files
authored
Merge pull request #53 from AdaGold/mw/wave04-update-json-postman-screenshot
Wave 04 - update json postman screenshot to use JSON Request Body
2 parents 9708747 + b13d9ee commit 7f3087f

File tree

7 files changed

+5
-4
lines changed

7 files changed

+5
-4
lines changed
-99.7 KB
Binary file not shown.
634 KB
Loading
332 KB
Loading
671 KB
Loading
-123 KB
Binary file not shown.
-113 KB
Binary file not shown.

ada-project-docs/wave_04.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,17 @@ Open Postman and make a request that mimics the API call to Slack that we just t
130130

131131
- Change the method to `POST`
132132
- Use this as the request URL: `https://slack.com/api/chat.postMessage`
133-
- In "Params," fill in the following values:
133+
- In "Body", select "raw" then change the content-type from "Text" to JSON.
134+
- After, fill in the following key/value pairs:
134135
- `channel`: `task-notifications`
135136
- `text`: Fill in a nice message
136137

137-
![](assets/postman_test_query_params.png)
138+
![](assets/postman_request_body.png)
138139

139140
- In "Headers," add this new key-value pair:
140141
- `Authorization`: `"Bearer xoxb-150..."`, where `xoxb-150...` is your full Slackbot token
141142

142-
![](assets/postman_test_headers.png)
143+
![](assets/postman_headers.png)
143144

144145
Press "Send" and see the Slack message come through!
145146

@@ -190,6 +191,6 @@ Test and verify that your API sends an API call to the Slack web API by using Po
190191

191192
Send `PATCH` requests to `localhost:5000/tasks/<book_id>/mark_complete` (use the ID of any existing task), and check if Slack messages were sent.
192193

193-
![](assets/postman_feature.png)
194+
![](assets/postman_patch.png)
194195

195196
![](assets/slack_notification_feature.png)

0 commit comments

Comments
 (0)