Skip to content
Snippets Groups Projects
Commit 7e7bc02d authored by ryadav88's avatar ryadav88
Browse files

image-urls

parent 5f3d6415
No related branches found
No related tags found
No related merge requests found
...@@ -34,8 +34,12 @@ app.post('/post', function(req, res){ ...@@ -34,8 +34,12 @@ app.post('/post', function(req, res){
var body = { var body = {
response_type: "in_channel", response_type: "in_channel",
image_url: icon_url, "attachments": [
text: "Temperature: " + first_url + "\n" + "Condition: " + weatherC {
"text": "Temperature: " + first_url + "\n" + "Condition: " + weatherC,
"image_url": icon_url,
}
]
}; };
res.send(body); res.send(body);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment