{"action":"created","issue":{"url":"https://api.github.com/repos/BenTheElder/slack-rs/issues/7","labels_url":"https://api.github.com/repos/BenTheElder/slack-rs/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/BenTheElder/slack-rs/issues/7/comments","events_url":"https://api.github.com/repos/BenTheElder/slack-rs/issues/7/events","html_url":"https://github.com/BenTheElder/slack-rs/issues/7","id":108558629,"number":7,"title":"Support chat.PostMessage","user":{"login":"BenTheElder","id":917931,"avatar_url":"https://avatars.githubusercontent.com/u/917931?v=3","gravatar_id":"","url":"https://api.github.com/users/BenTheElder","html_url":"https://github.com/BenTheElder","followers_url":"https://api.github.com/users/BenTheElder/followers","following_url":"https://api.github.com/users/BenTheElder/following{/other_user}","gists_url":"https://api.github.com/users/BenTheElder/gists{/gist_id}","starred_url":"https://api.github.com/users/BenTheElder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenTheElder/subscriptions","organizations_url":"https://api.github.com/users/BenTheElder/orgs","repos_url":"https://api.github.com/users/BenTheElder/repos","events_url":"https://api.github.com/users/BenTheElder/events{/privacy}","received_events_url":"https://api.github.com/users/BenTheElder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-27T20:23:22Z","updated_at":"2015-09-27T20:28:08Z","closed_at":null,"body":"https://api.slack.com/methods/chat.postMessage\r\n\r\nSee previous discussion at: https://github.com/BenTheElder/slack-rs/pull/6\r\n\r\nWe need to support the chat.PostMessage api for more complex actions.\r\n\r\nAs a result we may also want to store the token in the `RtmClient` structure so that we do not need to repeatedly pass it around (which would change the api a bit, `new` for `RtmClient` would have to take a token, and login would no longer need one, alternatively the user _could_ manage the token themself at the cost of a somewhat less convenient api."},"comment":{"url":"https://api.github.com/repos/BenTheElder/slack-rs/issues/comments/143592650","html_url":"https://github.com/BenTheElder/slack-rs/issues/7#issuecomment-143592650","issue_url":"https://api.github.com/repos/BenTheElder/slack-rs/issues/7","id":143592650,"user":{"login":"BenTheElder","id":917931,"avatar_url":"https://avatars.githubusercontent.com/u/917931?v=3","gravatar_id":"","url":"https://api.github.com/users/BenTheElder","html_url":"https://github.com/BenTheElder","followers_url":"https://api.github.com/users/BenTheElder/followers","following_url":"https://api.github.com/users/BenTheElder/following{/other_user}","gists_url":"https://api.github.com/users/BenTheElder/gists{/gist_id}","starred_url":"https://api.github.com/users/BenTheElder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenTheElder/subscriptions","organizations_url":"https://api.github.com/users/BenTheElder/orgs","repos_url":"https://api.github.com/users/BenTheElder/repos","events_url":"https://api.github.com/users/BenTheElder/events{/privacy}","received_events_url":"https://api.github.com/users/BenTheElder/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T20:28:08Z","updated_at":"2015-09-27T20:28:08Z","body":"/cc @Farthen @jwilm, as my primary known users, do you have any feedback on this?\r\n\r\nThe main point of consideration is handling of the token.\r\n\r\nThe other change necessary will be making mapping names to id's of channels, groups, etc more convenient which I will do by building a map on login and providing an api for accessing.\r\n\r\nOther than that, I plan to add some variant on a new `RtmClient.postMessage` call, probably with some wrappers for various actions."}}