{"action":"created","comment":{"url":"https://api.github.com/repos/slackhq/node-slack-client/pulls/comments/23883795","id":23883795,"diff_hunk":"@@ -86,6 +86,19 @@ class Channel\n     m = new Message @_client, {text: text}\n     @sendMessage m\n \n+  postMessage: (data) ->\n+    params = data\n+    params.channel = @id\n+    if data.attachments\n+      params.attachments = JSON.stringify(data.attachments)\n+\n+    @_client.logger.debug data\n+    @_client.logger.debug params\n+    @_client._apiCall \"chat.postMessage\", params, @_onPostMessage\n+\n+  _onPostMessage: (data) =>","path":"src/channel.coffee","position":14,"original_position":14,"commit_id":"9c815511c31e0f157c85bda612a1b73a50bebc0a","original_commit_id":"9c815511c31e0f157c85bda612a1b73a50bebc0a","user":{"login":"evansolomon","id":407310,"avatar_url":"https://avatars.githubusercontent.com/u/407310?v=3","gravatar_id":"","url":"https://api.github.com/users/evansolomon","html_url":"https://github.com/evansolomon","followers_url":"https://api.github.com/users/evansolomon/followers","following_url":"https://api.github.com/users/evansolomon/following{/other_user}","gists_url":"https://api.github.com/users/evansolomon/gists{/gist_id}","starred_url":"https://api.github.com/users/evansolomon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evansolomon/subscriptions","organizations_url":"https://api.github.com/users/evansolomon/orgs","repos_url":"https://api.github.com/users/evansolomon/repos","events_url":"https://api.github.com/users/evansolomon/events{/privacy}","received_events_url":"https://api.github.com/users/evansolomon/received_events","type":"User","site_admin":false},"body":"Yea you definitely didn't start it here.  Not a big deal, just something I noticed.","created_at":"2015-01-31T00:57:21Z","updated_at":"2015-01-31T00:57:21Z","html_url":"https://github.com/slackhq/node-slack-client/pull/15#discussion_r23883795","pull_request_url":"https://api.github.com/repos/slackhq/node-slack-client/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/slackhq/node-slack-client/pulls/comments/23883795"},"html":{"href":"https://github.com/slackhq/node-slack-client/pull/15#discussion_r23883795"},"pull_request":{"href":"https://api.github.com/repos/slackhq/node-slack-client/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/slackhq/node-slack-client/pulls/15","id":28400454,"html_url":"https://github.com/slackhq/node-slack-client/pull/15","diff_url":"https://github.com/slackhq/node-slack-client/pull/15.diff","patch_url":"https://github.com/slackhq/node-slack-client/pull/15.patch","issue_url":"https://api.github.com/repos/slackhq/node-slack-client/issues/15","number":15,"state":"open","locked":false,"title":"Add support for chat.postMessage API method","user":{"login":"paulhammond","id":3799,"avatar_url":"https://avatars.githubusercontent.com/u/3799?v=3","gravatar_id":"","url":"https://api.github.com/users/paulhammond","html_url":"https://github.com/paulhammond","followers_url":"https://api.github.com/users/paulhammond/followers","following_url":"https://api.github.com/users/paulhammond/following{/other_user}","gists_url":"https://api.github.com/users/paulhammond/gists{/gist_id}","starred_url":"https://api.github.com/users/paulhammond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulhammond/subscriptions","organizations_url":"https://api.github.com/users/paulhammond/orgs","repos_url":"https://api.github.com/users/paulhammond/repos","events_url":"https://api.github.com/users/paulhammond/events{/privacy}","received_events_url":"https://api.github.com/users/paulhammond/received_events","type":"User","site_admin":false},"body":"This pull request adds support for the [chat.postMessage](https://api.slack.com/methods/chat.postMessage) API method","created_at":"2015-01-30T22:56:53Z","updated_at":"2015-01-31T00:57:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"43aebe35e8e1d17fef2a9680747029d8c0ce38cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/slackhq/node-slack-client/pulls/15/commits","review_comments_url":"https://api.github.com/repos/slackhq/node-slack-client/pulls/15/comments","review_comment_url":"https://api.github.com/repos/slackhq/node-slack-client/pulls/comments/{number}","comments_url":"https://api.github.com/repos/slackhq/node-slack-client/issues/15/comments","statuses_url":"https://api.github.com/repos/slackhq/node-slack-client/statuses/9c815511c31e0f157c85bda612a1b73a50bebc0a","head":{"label":"paulhammond:chat.postMessage","ref":"chat.postMessage","sha":"9c815511c31e0f157c85bda612a1b73a50bebc0a","user":{"login":"paulhammond","id":3799,"avatar_url":"https://avatars.githubusercontent.com/u/3799?v=3","gravatar_id":"","url":"https://api.github.com/users/paulhammond","html_url":"https://github.com/paulhammond","followers_url":"https://api.github.com/users/paulhammond/followers","following_url":"https://api.github.com/users/paulhammond/following{/other_user}","gists_url":"https://api.github.com/users/paulhammond/gists{/gist_id}","starred_url":"https://api.github.com/users/paulhammond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulhammond/subscriptions","organizations_url":"https://api.github.com/users/paulhammond/orgs","repos_url":"https://api.github.com/users/paulhammond/repos","events_url":"https://api.github.com/users/paulhammond/events{/privacy}","received_events_url":"https://api.github.com/users/paulhammond/received_events","type":"User","site_admin":false},"repo":{"id":30094417,"name":"node-slack-client","full_name":"paulhammond/node-slack-client","owner":{"login":"paulhammond","id":3799,"avatar_url":"https://avatars.githubusercontent.com/u/3799?v=3","gravatar_id":"","url":"https://api.github.com/users/paulhammond","html_url":"https://github.com/paulhammond","followers_url":"https://api.github.com/users/paulhammond/followers","following_url":"https://api.github.com/users/paulhammond/following{/other_user}","gists_url":"https://api.github.com/users/paulhammond/gists{/gist_id}","starred_url":"https://api.github.com/users/paulhammond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulhammond/subscriptions","organizations_url":"https://api.github.com/users/paulhammond/orgs","repos_url":"https://api.github.com/users/paulhammond/repos","events_url":"https://api.github.com/users/paulhammond/events{/privacy}","received_events_url":"https://api.github.com/users/paulhammond/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulhammond/node-slack-client","description":"Slack client library for node.js, written in Coffeescript","fork":true,"url":"https://api.github.com/repos/paulhammond/node-slack-client","forks_url":"https://api.github.com/repos/paulhammond/node-slack-client/forks","keys_url":"https://api.github.com/repos/paulhammond/node-slack-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulhammond/node-slack-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulhammond/node-slack-client/teams","hooks_url":"https://api.github.com/repos/paulhammond/node-slack-client/hooks","issue_events_url":"https://api.github.com/repos/paulhammond/node-slack-client/issues/events{/number}","events_url":"https://api.github.com/repos/paulhammond/node-slack-client/events","assignees_url":"https://api.github.com/repos/paulhammond/node-slack-client/assignees{/user}","branches_url":"https://api.github.com/repos/paulhammond/node-slack-client/branches{/branch}","tags_url":"https://api.github.com/repos/paulhammond/node-slack-client/tags","blobs_url":"https://api.github.com/repos/paulhammond/node-slack-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulhammond/node-slack-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulhammond/node-slack-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulhammond/node-slack-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulhammond/node-slack-client/statuses/{sha}","languages_url":"https://api.github.com/repos/paulhammond/node-slack-client/languages","stargazers_url":"https://api.github.com/repos/paulhammond/node-slack-client/stargazers","contributors_url":"https://api.github.com/repos/paulhammond/node-slack-client/contributors","subscribers_url":"https://api.github.com/repos/paulhammond/node-slack-client/subscribers","subscription_url":"https://api.github.com/repos/paulhammond/node-slack-client/subscription","commits_url":"https://api.github.com/repos/paulhammond/node-slack-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulhammond/node-slack-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulhammond/node-slack-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulhammond/node-slack-client/issues/comments/{number}","contents_url":"https://api.github.com/repos/paulhammond/node-slack-client/contents/{+path}","compare_url":"https://api.github.com/repos/paulhammond/node-slack-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulhammond/node-slack-client/merges","archive_url":"https://api.github.com/repos/paulhammond/node-slack-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulhammond/node-slack-client/downloads","issues_url":"https://api.github.com/repos/paulhammond/node-slack-client/issues{/number}","pulls_url":"https://api.github.com/repos/paulhammond/node-slack-client/pulls{/number}","milestones_url":"https://api.github.com/repos/paulhammond/node-slack-client/milestones{/number}","notifications_url":"https://api.github.com/repos/paulhammond/node-slack-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulhammond/node-slack-client/labels{/name}","releases_url":"https://api.github.com/repos/paulhammond/node-slack-client/releases{/id}","created_at":"2015-01-30T22:55:13Z","updated_at":"2015-01-30T22:55:13Z","pushed_at":"2015-01-30T22:56:17Z","git_url":"git://github.com/paulhammond/node-slack-client.git","ssh_url":"git@github.com:paulhammond/node-slack-client.git","clone_url":"https://github.com/paulhammond/node-slack-client.git","svn_url":"https://github.com/paulhammond/node-slack-client","homepage":null,"size":339,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"slackhq:master","ref":"master","sha":"92ec0503d571f8ce98b9876f5a027f535ff1c9ef","user":{"login":"slackhq","id":6911160,"avatar_url":"https://avatars.githubusercontent.com/u/6911160?v=3","gravatar_id":"","url":"https://api.github.com/users/slackhq","html_url":"https://github.com/slackhq","followers_url":"https://api.github.com/users/slackhq/followers","following_url":"https://api.github.com/users/slackhq/following{/other_user}","gists_url":"https://api.github.com/users/slackhq/gists{/gist_id}","starred_url":"https://api.github.com/users/slackhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackhq/subscriptions","organizations_url":"https://api.github.com/users/slackhq/orgs","repos_url":"https://api.github.com/users/slackhq/repos","events_url":"https://api.github.com/users/slackhq/events{/privacy}","received_events_url":"https://api.github.com/users/slackhq/received_events","type":"Organization","site_admin":false},"repo":{"id":18117991,"name":"node-slack-client","full_name":"slackhq/node-slack-client","owner":{"login":"slackhq","id":6911160,"avatar_url":"https://avatars.githubusercontent.com/u/6911160?v=3","gravatar_id":"","url":"https://api.github.com/users/slackhq","html_url":"https://github.com/slackhq","followers_url":"https://api.github.com/users/slackhq/followers","following_url":"https://api.github.com/users/slackhq/following{/other_user}","gists_url":"https://api.github.com/users/slackhq/gists{/gist_id}","starred_url":"https://api.github.com/users/slackhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackhq/subscriptions","organizations_url":"https://api.github.com/users/slackhq/orgs","repos_url":"https://api.github.com/users/slackhq/repos","events_url":"https://api.github.com/users/slackhq/events{/privacy}","received_events_url":"https://api.github.com/users/slackhq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/slackhq/node-slack-client","description":"Slack client library for node.js, written in Coffeescript","fork":false,"url":"https://api.github.com/repos/slackhq/node-slack-client","forks_url":"https://api.github.com/repos/slackhq/node-slack-client/forks","keys_url":"https://api.github.com/repos/slackhq/node-slack-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slackhq/node-slack-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slackhq/node-slack-client/teams","hooks_url":"https://api.github.com/repos/slackhq/node-slack-client/hooks","issue_events_url":"https://api.github.com/repos/slackhq/node-slack-client/issues/events{/number}","events_url":"https://api.github.com/repos/slackhq/node-slack-client/events","assignees_url":"https://api.github.com/repos/slackhq/node-slack-client/assignees{/user}","branches_url":"https://api.github.com/repos/slackhq/node-slack-client/branches{/branch}","tags_url":"https://api.github.com/repos/slackhq/node-slack-client/tags","blobs_url":"https://api.github.com/repos/slackhq/node-slack-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slackhq/node-slack-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slackhq/node-slack-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/slackhq/node-slack-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slackhq/node-slack-client/statuses/{sha}","languages_url":"https://api.github.com/repos/slackhq/node-slack-client/languages","stargazers_url":"https://api.github.com/repos/slackhq/node-slack-client/stargazers","contributors_url":"https://api.github.com/repos/slackhq/node-slack-client/contributors","subscribers_url":"https://api.github.com/repos/slackhq/node-slack-client/subscribers","subscription_url":"https://api.github.com/repos/slackhq/node-slack-client/subscription","commits_url":"https://api.github.com/repos/slackhq/node-slack-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/slackhq/node-slack-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/slackhq/node-slack-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/slackhq/node-slack-client/issues/comments/{number}","contents_url":"https://api.github.com/repos/slackhq/node-slack-client/contents/{+path}","compare_url":"https://api.github.com/repos/slackhq/node-slack-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slackhq/node-slack-client/merges","archive_url":"https://api.github.com/repos/slackhq/node-slack-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slackhq/node-slack-client/downloads","issues_url":"https://api.github.com/repos/slackhq/node-slack-client/issues{/number}","pulls_url":"https://api.github.com/repos/slackhq/node-slack-client/pulls{/number}","milestones_url":"https://api.github.com/repos/slackhq/node-slack-client/milestones{/number}","notifications_url":"https://api.github.com/repos/slackhq/node-slack-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slackhq/node-slack-client/labels{/name}","releases_url":"https://api.github.com/repos/slackhq/node-slack-client/releases{/id}","created_at":"2014-03-25T21:56:50Z","updated_at":"2015-01-31T00:55:25Z","pushed_at":"2015-01-31T00:55:25Z","git_url":"git://github.com/slackhq/node-slack-client.git","ssh_url":"git@github.com:slackhq/node-slack-client.git","clone_url":"https://github.com/slackhq/node-slack-client.git","svn_url":"https://github.com/slackhq/node-slack-client","homepage":null,"size":339,"stargazers_count":38,"watchers_count":38,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":7,"forks":24,"open_issues":7,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/slackhq/node-slack-client/pulls/15"},"html":{"href":"https://github.com/slackhq/node-slack-client/pull/15"},"issue":{"href":"https://api.github.com/repos/slackhq/node-slack-client/issues/15"},"comments":{"href":"https://api.github.com/repos/slackhq/node-slack-client/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/slackhq/node-slack-client/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/slackhq/node-slack-client/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/slackhq/node-slack-client/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/slackhq/node-slack-client/statuses/9c815511c31e0f157c85bda612a1b73a50bebc0a"}}}}