{"action":"closed","number":2918,"pull_request":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/2918","id":66772863,"html_url":"https://github.com/RocketChat/Rocket.Chat/pull/2918","diff_url":"https://github.com/RocketChat/Rocket.Chat/pull/2918.diff","patch_url":"https://github.com/RocketChat/Rocket.Chat/pull/2918.patch","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/2918","number":2918,"state":"closed","locked":false,"title":"Add REST API method to list online users in a room","user":{"login":"wtsarchive","id":12297757,"avatar_url":"https://avatars.githubusercontent.com/u/12297757?v=3","gravatar_id":"","url":"https://api.github.com/users/wtsarchive","html_url":"https://github.com/wtsarchive","followers_url":"https://api.github.com/users/wtsarchive/followers","following_url":"https://api.github.com/users/wtsarchive/following{/other_user}","gists_url":"https://api.github.com/users/wtsarchive/gists{/gist_id}","starred_url":"https://api.github.com/users/wtsarchive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wtsarchive/subscriptions","organizations_url":"https://api.github.com/users/wtsarchive/orgs","repos_url":"https://api.github.com/users/wtsarchive/repos","events_url":"https://api.github.com/users/wtsarchive/events{/privacy}","received_events_url":"https://api.github.com/users/wtsarchive/received_events","type":"User","site_admin":false},"body":"<!-- INSTRUCTION: Keep the line below to notify all core developers about this new PR -->\r\n@RocketChat/core \r\n\r\nAdds a REST API method for listing online users in a room. Useful to show room activity on external sites. Example:\r\n\r\n```\r\ncurl http://localhost:3000/api/rooms/GENERAL/online\r\n\r\n{\r\n   \"status\": \"success\",\r\n   \"online\": [\r\n      \"test\",\r\n      \"admin\"\r\n   ]\r\n}\r\n```","created_at":"2016-04-17T16:19:21Z","updated_at":"2016-04-20T20:25:12Z","closed_at":"2016-04-20T20:25:12Z","merged_at":"2016-04-20T20:25:12Z","merge_commit_sha":"5ac497b54e095946266a5dff8706d54849c4f226","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/2918/commits","review_comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/2918/comments","review_comment_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/2918/comments","statuses_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/5ac497b54e095946266a5dff8706d54849c4f226","head":{"label":"wtsarchive:develop","ref":"develop","sha":"5ac497b54e095946266a5dff8706d54849c4f226","user":{"login":"wtsarchive","id":12297757,"avatar_url":"https://avatars.githubusercontent.com/u/12297757?v=3","gravatar_id":"","url":"https://api.github.com/users/wtsarchive","html_url":"https://github.com/wtsarchive","followers_url":"https://api.github.com/users/wtsarchive/followers","following_url":"https://api.github.com/users/wtsarchive/following{/other_user}","gists_url":"https://api.github.com/users/wtsarchive/gists{/gist_id}","starred_url":"https://api.github.com/users/wtsarchive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wtsarchive/subscriptions","organizations_url":"https://api.github.com/users/wtsarchive/orgs","repos_url":"https://api.github.com/users/wtsarchive/repos","events_url":"https://api.github.com/users/wtsarchive/events{/privacy}","received_events_url":"https://api.github.com/users/wtsarchive/received_events","type":"User","site_admin":false},"repo":{"id":47257259,"name":"Rocket.Chat","full_name":"wtsarchive/Rocket.Chat","owner":{"login":"wtsarchive","id":12297757,"avatar_url":"https://avatars.githubusercontent.com/u/12297757?v=3","gravatar_id":"","url":"https://api.github.com/users/wtsarchive","html_url":"https://github.com/wtsarchive","followers_url":"https://api.github.com/users/wtsarchive/followers","following_url":"https://api.github.com/users/wtsarchive/following{/other_user}","gists_url":"https://api.github.com/users/wtsarchive/gists{/gist_id}","starred_url":"https://api.github.com/users/wtsarchive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wtsarchive/subscriptions","organizations_url":"https://api.github.com/users/wtsarchive/orgs","repos_url":"https://api.github.com/users/wtsarchive/repos","events_url":"https://api.github.com/users/wtsarchive/events{/privacy}","received_events_url":"https://api.github.com/users/wtsarchive/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wtsarchive/Rocket.Chat","description":"Have your own Slack like online chat, built with Meteor.","fork":true,"url":"https://api.github.com/repos/wtsarchive/Rocket.Chat","forks_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/forks","keys_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/teams","hooks_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/hooks","issue_events_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/issues/events{/number}","events_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/events","assignees_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/assignees{/user}","branches_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/branches{/branch}","tags_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/tags","blobs_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/statuses/{sha}","languages_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/languages","stargazers_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/stargazers","contributors_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/contributors","subscribers_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/subscribers","subscription_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/subscription","commits_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/contents/{+path}","compare_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/merges","archive_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/downloads","issues_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/issues{/number}","pulls_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/pulls{/number}","milestones_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/milestones{/number}","notifications_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/labels{/name}","releases_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/releases{/id}","deployments_url":"https://api.github.com/repos/wtsarchive/Rocket.Chat/deployments","created_at":"2015-12-02T11:39:41Z","updated_at":"2016-04-17T16:17:01Z","pushed_at":"2016-04-20T18:28:30Z","git_url":"git://github.com/wtsarchive/Rocket.Chat.git","ssh_url":"git@github.com:wtsarchive/Rocket.Chat.git","clone_url":"https://github.com/wtsarchive/Rocket.Chat.git","svn_url":"https://github.com/wtsarchive/Rocket.Chat","homepage":"https://rocket.chat/","size":33369,"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":"develop"}},"base":{"label":"RocketChat:develop","ref":"develop","sha":"7d3e848df1357776c59c8b996daa17b34298fe99","user":{"login":"RocketChat","id":12508788,"avatar_url":"https://avatars.githubusercontent.com/u/12508788?v=3","gravatar_id":"","url":"https://api.github.com/users/RocketChat","html_url":"https://github.com/RocketChat","followers_url":"https://api.github.com/users/RocketChat/followers","following_url":"https://api.github.com/users/RocketChat/following{/other_user}","gists_url":"https://api.github.com/users/RocketChat/gists{/gist_id}","starred_url":"https://api.github.com/users/RocketChat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RocketChat/subscriptions","organizations_url":"https://api.github.com/users/RocketChat/orgs","repos_url":"https://api.github.com/users/RocketChat/repos","events_url":"https://api.github.com/users/RocketChat/events{/privacy}","received_events_url":"https://api.github.com/users/RocketChat/received_events","type":"Organization","site_admin":false},"repo":{"id":35866694,"name":"Rocket.Chat","full_name":"RocketChat/Rocket.Chat","owner":{"login":"RocketChat","id":12508788,"avatar_url":"https://avatars.githubusercontent.com/u/12508788?v=3","gravatar_id":"","url":"https://api.github.com/users/RocketChat","html_url":"https://github.com/RocketChat","followers_url":"https://api.github.com/users/RocketChat/followers","following_url":"https://api.github.com/users/RocketChat/following{/other_user}","gists_url":"https://api.github.com/users/RocketChat/gists{/gist_id}","starred_url":"https://api.github.com/users/RocketChat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RocketChat/subscriptions","organizations_url":"https://api.github.com/users/RocketChat/orgs","repos_url":"https://api.github.com/users/RocketChat/repos","events_url":"https://api.github.com/users/RocketChat/events{/privacy}","received_events_url":"https://api.github.com/users/RocketChat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RocketChat/Rocket.Chat","description":"Have your own Slack like online chat, built with Meteor.","fork":false,"url":"https://api.github.com/repos/RocketChat/Rocket.Chat","forks_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/forks","keys_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/teams","hooks_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/hooks","issue_events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/events{/number}","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/events","assignees_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/assignees{/user}","branches_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/branches{/branch}","tags_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/tags","blobs_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/{sha}","languages_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/languages","stargazers_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/stargazers","contributors_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/contributors","subscribers_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/subscribers","subscription_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/subscription","commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/contents/{+path}","compare_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/merges","archive_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/downloads","issues_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues{/number}","pulls_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls{/number}","milestones_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/milestones{/number}","notifications_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels{/name}","releases_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/releases{/id}","deployments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/deployments","created_at":"2015-05-19T07:36:09Z","updated_at":"2016-04-20T19:40:16Z","pushed_at":"2016-04-20T20:25:10Z","git_url":"git://github.com/RocketChat/Rocket.Chat.git","ssh_url":"git@github.com:RocketChat/Rocket.Chat.git","clone_url":"https://github.com/RocketChat/Rocket.Chat.git","svn_url":"https://github.com/RocketChat/Rocket.Chat","homepage":"https://rocket.chat/","size":47087,"stargazers_count":6891,"watchers_count":6891,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1358,"mirror_url":null,"open_issues_count":683,"forks":1358,"open_issues":683,"watchers":6891,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/2918"},"html":{"href":"https://github.com/RocketChat/Rocket.Chat/pull/2918"},"issue":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/2918"},"comments":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/2918/comments"},"review_comments":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/2918/comments"},"review_comment":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/2918/commits"},"statuses":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/5ac497b54e095946266a5dff8706d54849c4f226"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"sampaiodiego","id":8591547,"avatar_url":"https://avatars.githubusercontent.com/u/8591547?v=3","gravatar_id":"","url":"https://api.github.com/users/sampaiodiego","html_url":"https://github.com/sampaiodiego","followers_url":"https://api.github.com/users/sampaiodiego/followers","following_url":"https://api.github.com/users/sampaiodiego/following{/other_user}","gists_url":"https://api.github.com/users/sampaiodiego/gists{/gist_id}","starred_url":"https://api.github.com/users/sampaiodiego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sampaiodiego/subscriptions","organizations_url":"https://api.github.com/users/sampaiodiego/orgs","repos_url":"https://api.github.com/users/sampaiodiego/repos","events_url":"https://api.github.com/users/sampaiodiego/events{/privacy}","received_events_url":"https://api.github.com/users/sampaiodiego/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":1,"additions":13,"deletions":0,"changed_files":1}}