{"action":"created","issue":{"url":"https://api.github.com/repos/os/slacker/issues/30","labels_url":"https://api.github.com/repos/os/slacker/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/os/slacker/issues/30/comments","events_url":"https://api.github.com/repos/os/slacker/issues/30/events","html_url":"https://github.com/os/slacker/issues/30","id":67477944,"number":30,"title":"Attachments not working.","user":{"login":"Panoplos","id":2549985,"avatar_url":"https://avatars.githubusercontent.com/u/2549985?v=3","gravatar_id":"","url":"https://api.github.com/users/Panoplos","html_url":"https://github.com/Panoplos","followers_url":"https://api.github.com/users/Panoplos/followers","following_url":"https://api.github.com/users/Panoplos/following{/other_user}","gists_url":"https://api.github.com/users/Panoplos/gists{/gist_id}","starred_url":"https://api.github.com/users/Panoplos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Panoplos/subscriptions","organizations_url":"https://api.github.com/users/Panoplos/orgs","repos_url":"https://api.github.com/users/Panoplos/repos","events_url":"https://api.github.com/users/Panoplos/events{/privacy}","received_events_url":"https://api.github.com/users/Panoplos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-10T00:20:04Z","updated_at":"2015-04-14T01:00:15Z","closed_at":null,"body":"I am trying to post the following via `slacker`:\r\n\r\n```python\r\n    attachment = {\r\n        \"attachments\": [\r\n            {\r\n                \"fallback\": \"Fallback text\",\r\n                \"title\": \"Title\",\r\n                \"fields\": [\r\n                    {\r\n                        \"value\": \"*some field data*\",\r\n                        \"short\": True\r\n                    },\r\n                    {\r\n                        \"value\": \"*some more data*\",\r\n                        \"short\": True\r\n                    }\r\n                ],\r\n                \"mrkdwn_in\": [\"fields\"],\r\n                \"color\": \"good\"\r\n            }\r\n        ]\r\n    }\r\n    slacker.chat.post_message(\r\n        SLACK_CHANNEL,\r\n        \"Testing Attachments\",\r\n        SLACK_USER,\r\n        attachments=attachment,\r\n        icon_url=SLACK_ICON_URL\r\n    )\r\n```\r\n\r\nWhere I have set the constants to my settings, but you should be able to test this yourself.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2549985/7079836/598cf806-df64-11e4-856f-480538f8710e.png)\r\n\r\nNote, if I use `json.dumps(attachment)`, the result is:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2549985/7079854/98d48812-df64-11e4-830b-b30542165433.png)\r\n\r\nWhich contains empty attachments."},"comment":{"url":"https://api.github.com/repos/os/slacker/issues/comments/92549529","html_url":"https://github.com/os/slacker/issues/30#issuecomment-92549529","issue_url":"https://api.github.com/repos/os/slacker/issues/30","id":92549529,"user":{"login":"Jonovono","id":775808,"avatar_url":"https://avatars.githubusercontent.com/u/775808?v=3","gravatar_id":"","url":"https://api.github.com/users/Jonovono","html_url":"https://github.com/Jonovono","followers_url":"https://api.github.com/users/Jonovono/followers","following_url":"https://api.github.com/users/Jonovono/following{/other_user}","gists_url":"https://api.github.com/users/Jonovono/gists{/gist_id}","starred_url":"https://api.github.com/users/Jonovono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jonovono/subscriptions","organizations_url":"https://api.github.com/users/Jonovono/orgs","repos_url":"https://api.github.com/users/Jonovono/repos","events_url":"https://api.github.com/users/Jonovono/events{/privacy}","received_events_url":"https://api.github.com/users/Jonovono/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T01:00:15Z","updated_at":"2015-04-14T01:00:15Z","body":"Ya json.dumps worked for me. I might submit a PR tomorrow. Feel like this should be handled. "}}