@@ -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
144145Press "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
191192Send ` 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