From 7e7bc02d8fd80d7b2e38aeb62e805a6bcf8859d9 Mon Sep 17 00:00:00 2001 From: ryadav88 <ryadav88@gmail.com> Date: Mon, 28 Mar 2016 15:25:55 -0700 Subject: [PATCH] image-urls --- index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 0644c76..fb246a4 100644 --- a/index.js +++ b/index.js @@ -34,8 +34,12 @@ app.post('/post', function(req, res){ var body = { response_type: "in_channel", - image_url: icon_url, - text: "Temperature: " + first_url + "\n" + "Condition: " + weatherC + "attachments": [ + { + "text": "Temperature: " + first_url + "\n" + "Condition: " + weatherC, + "image_url": icon_url, + } + ] }; res.send(body); -- GitLab