{"push_id":656564499,"size":2,"distinct_size":1,"ref":"refs/heads/master","head":"7484e1c8e89ab0d280179419d04a8f25f72442af","before":"8a6397b7911e8e82d0fbbccc7ae0c6190b32f2f4","commits":[{"sha":"0e8b73d236d0704312a5f5843fe5f754c0952f2b","author":{"email":"c76192c53ab8d052393c34f078ba6e6345ba5a1b@gmail.com","name":"Andrew"},"message":"Added ability to send 'attachment'\n\nAllows for sending attachments to a channel following guidlines at https://api.slack.com/docs/attachments.\r\n\r\nInteract with it in a similar way to sending a message:\r\n\r\nmessage = '''[\r\n        {\r\n            \"fallback\": \"Required plain-text summary of the attachment.\",\r\n\r\n            \"color\": \"#36a64f\",\r\n\r\n            \"pretext\": \"Optional text that appears above the attachment block\",\r\n\r\n            \"author_name\": \"Bobby Tables\",\r\n            \"author_link\": \"http://flickr.com/bobby/\",\r\n            \"author_icon\": \"http://flickr.com/icons/bobby.jpg\",\r\n\r\n            \"title\": \"Slack API Documentation\",\r\n            \"title_link\": \"https://api.slack.com/\",\r\n\r\n            \"text\": \"Optional text that appears within the attachment\",\r\n\r\n            \"fields\": [\r\n                {\r\n                    \"title\": \"Priority\",\r\n                    \"value\": \"High\",\r\n                    \"short\": false\r\n                }\r\n            ],\r\n\r\n            \"image_url\": \"http://my-website.com/path/to/image.jpg\"\r\n        }\r\n    ]'''\r\n\r\ndef post_attachment(recipient, message):\r\n   client = SlackClient('TOKEN')\r\n   client.chat_post_attachment(recipient, message, username='BotName', icon_emoji=\":cop:\")\r\n\r\npost_attachment('#Channel',message)","distinct":false,"url":"https://api.github.com/repos/aneisch/pyslack/commits/0e8b73d236d0704312a5f5843fe5f754c0952f2b"},{"sha":"7484e1c8e89ab0d280179419d04a8f25f72442af","author":{"email":"c76192c53ab8d052393c34f078ba6e6345ba5a1b@gmail.com","name":"Andrew"},"message":"Merge pull request #1 from aneisch/patch-1\n\nAdded ability to send 'attachment'","distinct":true,"url":"https://api.github.com/repos/aneisch/pyslack/commits/7484e1c8e89ab0d280179419d04a8f25f72442af"}]}