{"action":"created","comment":{"url":"https://api.github.com/repos/tbruyelle/hipchat-go/pulls/comments/78392821","id":78392821,"diff_hunk":"@@ -0,0 +1,51 @@\n+package main\n+\n+import (\n+\t\"flag\"\n+\t\"fmt\"\n+\n+\t\"github.com/tbruyelle/hipchat-go/hipchat\"\n+)\n+\n+var (\n+\ttoken = flag.String(\"token\", \"\", \"The HipChat AuthToken\")\n+)\n+\n+func main() {\n+\tflag.Parse()\n+\tif *token == \"\" {\n+\t\tflag.PrintDefaults()\n+\t\treturn\n+\t}\n+\tc := hipchat.NewClient(*token)\n+\tstartIndex := 0\n+\tmaxResults := 5\n+\tvar allRooms []hipchat.Room\n+\n+\tfor {\n+\t\topt := &hipchat.RoomsListOptions{\n+\t\t\tListOptions:     hipchat.ListOptions{StartIndex: startIndex, MaxResults: maxResults},\n+\t\t\tIncludePrivate:  true,\n+\t\t\tIncludeArchived: true}\n+\n+\t\trooms, resp, err := c.Room.List(opt)\n+\n+\t\tif err != nil {","path":"examples/hipshow/main.go","position":33,"original_position":33,"commit_id":"f8db42c69e236ccc2151d36091a32c299b3f2bf2","original_commit_id":"f8db42c69e236ccc2151d36091a32c299b3f2bf2","user":{"login":"afinkenstadt","id":5892856,"avatar_url":"https://avatars.githubusercontent.com/u/5892856?v=3","gravatar_id":"","url":"https://api.github.com/users/afinkenstadt","html_url":"https://github.com/afinkenstadt","followers_url":"https://api.github.com/users/afinkenstadt/followers","following_url":"https://api.github.com/users/afinkenstadt/following{/other_user}","gists_url":"https://api.github.com/users/afinkenstadt/gists{/gist_id}","starred_url":"https://api.github.com/users/afinkenstadt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afinkenstadt/subscriptions","organizations_url":"https://api.github.com/users/afinkenstadt/orgs","repos_url":"https://api.github.com/users/afinkenstadt/repos","events_url":"https://api.github.com/users/afinkenstadt/events{/privacy}","received_events_url":"https://api.github.com/users/afinkenstadt/received_events","type":"User","site_admin":false},"body":"How is API rate limiting handled?  ","created_at":"2016-09-12T15:18:20Z","updated_at":"2016-09-12T15:18:20Z","html_url":"https://github.com/tbruyelle/hipchat-go/pull/43#discussion_r78392821","pull_request_url":"https://api.github.com/repos/tbruyelle/hipchat-go/pulls/43","_links":{"self":{"href":"https://api.github.com/repos/tbruyelle/hipchat-go/pulls/comments/78392821"},"html":{"href":"https://github.com/tbruyelle/hipchat-go/pull/43#discussion_r78392821"},"pull_request":{"href":"https://api.github.com/repos/tbruyelle/hipchat-go/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/tbruyelle/hipchat-go/pulls/43","id":84770659,"html_url":"https://github.com/tbruyelle/hipchat-go/pull/43","diff_url":"https://github.com/tbruyelle/hipchat-go/pull/43.diff","patch_url":"https://github.com/tbruyelle/hipchat-go/pull/43.patch","issue_url":"https://api.github.com/repos/tbruyelle/hipchat-go/issues/43","number":43,"state":"open","locked":false,"title":"Add support for pagination when getting the list of rooms","user":{"login":"rberrelleza","id":475313,"avatar_url":"https://avatars.githubusercontent.com/u/475313?v=3","gravatar_id":"","url":"https://api.github.com/users/rberrelleza","html_url":"https://github.com/rberrelleza","followers_url":"https://api.github.com/users/rberrelleza/followers","following_url":"https://api.github.com/users/rberrelleza/following{/other_user}","gists_url":"https://api.github.com/users/rberrelleza/gists{/gist_id}","starred_url":"https://api.github.com/users/rberrelleza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rberrelleza/subscriptions","organizations_url":"https://api.github.com/users/rberrelleza/orgs","repos_url":"https://api.github.com/users/rberrelleza/repos","events_url":"https://api.github.com/users/rberrelleza/events{/privacy}","received_events_url":"https://api.github.com/users/rberrelleza/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-10T22:58:57Z","updated_at":"2016-09-12T15:18:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b695205e18d7c491985a48e2733e5b0dc3697f67","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tbruyelle/hipchat-go/pulls/43/commits","review_comments_url":"https://api.github.com/repos/tbruyelle/hipchat-go/pulls/43/comments","review_comment_url":"https://api.github.com/repos/tbruyelle/hipchat-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tbruyelle/hipchat-go/issues/43/comments","statuses_url":"https://api.github.com/repos/tbruyelle/hipchat-go/statuses/f8db42c69e236ccc2151d36091a32c299b3f2bf2","head":{"label":"rberrelleza:room-list-options","ref":"room-list-options","sha":"f8db42c69e236ccc2151d36091a32c299b3f2bf2","user":{"login":"rberrelleza","id":475313,"avatar_url":"https://avatars.githubusercontent.com/u/475313?v=3","gravatar_id":"","url":"https://api.github.com/users/rberrelleza","html_url":"https://github.com/rberrelleza","followers_url":"https://api.github.com/users/rberrelleza/followers","following_url":"https://api.github.com/users/rberrelleza/following{/other_user}","gists_url":"https://api.github.com/users/rberrelleza/gists{/gist_id}","starred_url":"https://api.github.com/users/rberrelleza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rberrelleza/subscriptions","organizations_url":"https://api.github.com/users/rberrelleza/orgs","repos_url":"https://api.github.com/users/rberrelleza/repos","events_url":"https://api.github.com/users/rberrelleza/events{/privacy}","received_events_url":"https://api.github.com/users/rberrelleza/received_events","type":"User","site_admin":false},"repo":{"id":52751882,"name":"hipchat-go","full_name":"rberrelleza/hipchat-go","owner":{"login":"rberrelleza","id":475313,"avatar_url":"https://avatars.githubusercontent.com/u/475313?v=3","gravatar_id":"","url":"https://api.github.com/users/rberrelleza","html_url":"https://github.com/rberrelleza","followers_url":"https://api.github.com/users/rberrelleza/followers","following_url":"https://api.github.com/users/rberrelleza/following{/other_user}","gists_url":"https://api.github.com/users/rberrelleza/gists{/gist_id}","starred_url":"https://api.github.com/users/rberrelleza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rberrelleza/subscriptions","organizations_url":"https://api.github.com/users/rberrelleza/orgs","repos_url":"https://api.github.com/users/rberrelleza/repos","events_url":"https://api.github.com/users/rberrelleza/events{/privacy}","received_events_url":"https://api.github.com/users/rberrelleza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rberrelleza/hipchat-go","description":"Go client library for the HipChat API v2","fork":true,"url":"https://api.github.com/repos/rberrelleza/hipchat-go","forks_url":"https://api.github.com/repos/rberrelleza/hipchat-go/forks","keys_url":"https://api.github.com/repos/rberrelleza/hipchat-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rberrelleza/hipchat-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rberrelleza/hipchat-go/teams","hooks_url":"https://api.github.com/repos/rberrelleza/hipchat-go/hooks","issue_events_url":"https://api.github.com/repos/rberrelleza/hipchat-go/issues/events{/number}","events_url":"https://api.github.com/repos/rberrelleza/hipchat-go/events","assignees_url":"https://api.github.com/repos/rberrelleza/hipchat-go/assignees{/user}","branches_url":"https://api.github.com/repos/rberrelleza/hipchat-go/branches{/branch}","tags_url":"https://api.github.com/repos/rberrelleza/hipchat-go/tags","blobs_url":"https://api.github.com/repos/rberrelleza/hipchat-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rberrelleza/hipchat-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rberrelleza/hipchat-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/rberrelleza/hipchat-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rberrelleza/hipchat-go/statuses/{sha}","languages_url":"https://api.github.com/repos/rberrelleza/hipchat-go/languages","stargazers_url":"https://api.github.com/repos/rberrelleza/hipchat-go/stargazers","contributors_url":"https://api.github.com/repos/rberrelleza/hipchat-go/contributors","subscribers_url":"https://api.github.com/repos/rberrelleza/hipchat-go/subscribers","subscription_url":"https://api.github.com/repos/rberrelleza/hipchat-go/subscription","commits_url":"https://api.github.com/repos/rberrelleza/hipchat-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/rberrelleza/hipchat-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/rberrelleza/hipchat-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/rberrelleza/hipchat-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/rberrelleza/hipchat-go/contents/{+path}","compare_url":"https://api.github.com/repos/rberrelleza/hipchat-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rberrelleza/hipchat-go/merges","archive_url":"https://api.github.com/repos/rberrelleza/hipchat-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rberrelleza/hipchat-go/downloads","issues_url":"https://api.github.com/repos/rberrelleza/hipchat-go/issues{/number}","pulls_url":"https://api.github.com/repos/rberrelleza/hipchat-go/pulls{/number}","milestones_url":"https://api.github.com/repos/rberrelleza/hipchat-go/milestones{/number}","notifications_url":"https://api.github.com/repos/rberrelleza/hipchat-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rberrelleza/hipchat-go/labels{/name}","releases_url":"https://api.github.com/repos/rberrelleza/hipchat-go/releases{/id}","deployments_url":"https://api.github.com/repos/rberrelleza/hipchat-go/deployments","created_at":"2016-02-29T00:12:42Z","updated_at":"2016-02-29T00:12:42Z","pushed_at":"2016-09-10T22:58:35Z","git_url":"git://github.com/rberrelleza/hipchat-go.git","ssh_url":"git@github.com:rberrelleza/hipchat-go.git","clone_url":"https://github.com/rberrelleza/hipchat-go.git","svn_url":"https://github.com/rberrelleza/hipchat-go","homepage":null,"size":1859,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"tbruyelle:master","ref":"master","sha":"e0b82c91a2f89d94f3149b80dc4861489563dfcf","user":{"login":"tbruyelle","id":92280,"avatar_url":"https://avatars.githubusercontent.com/u/92280?v=3","gravatar_id":"","url":"https://api.github.com/users/tbruyelle","html_url":"https://github.com/tbruyelle","followers_url":"https://api.github.com/users/tbruyelle/followers","following_url":"https://api.github.com/users/tbruyelle/following{/other_user}","gists_url":"https://api.github.com/users/tbruyelle/gists{/gist_id}","starred_url":"https://api.github.com/users/tbruyelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbruyelle/subscriptions","organizations_url":"https://api.github.com/users/tbruyelle/orgs","repos_url":"https://api.github.com/users/tbruyelle/repos","events_url":"https://api.github.com/users/tbruyelle/events{/privacy}","received_events_url":"https://api.github.com/users/tbruyelle/received_events","type":"User","site_admin":false},"repo":{"id":24943022,"name":"hipchat-go","full_name":"tbruyelle/hipchat-go","owner":{"login":"tbruyelle","id":92280,"avatar_url":"https://avatars.githubusercontent.com/u/92280?v=3","gravatar_id":"","url":"https://api.github.com/users/tbruyelle","html_url":"https://github.com/tbruyelle","followers_url":"https://api.github.com/users/tbruyelle/followers","following_url":"https://api.github.com/users/tbruyelle/following{/other_user}","gists_url":"https://api.github.com/users/tbruyelle/gists{/gist_id}","starred_url":"https://api.github.com/users/tbruyelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbruyelle/subscriptions","organizations_url":"https://api.github.com/users/tbruyelle/orgs","repos_url":"https://api.github.com/users/tbruyelle/repos","events_url":"https://api.github.com/users/tbruyelle/events{/privacy}","received_events_url":"https://api.github.com/users/tbruyelle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tbruyelle/hipchat-go","description":"Go client library for the HipChat API v2","fork":false,"url":"https://api.github.com/repos/tbruyelle/hipchat-go","forks_url":"https://api.github.com/repos/tbruyelle/hipchat-go/forks","keys_url":"https://api.github.com/repos/tbruyelle/hipchat-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tbruyelle/hipchat-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tbruyelle/hipchat-go/teams","hooks_url":"https://api.github.com/repos/tbruyelle/hipchat-go/hooks","issue_events_url":"https://api.github.com/repos/tbruyelle/hipchat-go/issues/events{/number}","events_url":"https://api.github.com/repos/tbruyelle/hipchat-go/events","assignees_url":"https://api.github.com/repos/tbruyelle/hipchat-go/assignees{/user}","branches_url":"https://api.github.com/repos/tbruyelle/hipchat-go/branches{/branch}","tags_url":"https://api.github.com/repos/tbruyelle/hipchat-go/tags","blobs_url":"https://api.github.com/repos/tbruyelle/hipchat-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tbruyelle/hipchat-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tbruyelle/hipchat-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/tbruyelle/hipchat-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tbruyelle/hipchat-go/statuses/{sha}","languages_url":"https://api.github.com/repos/tbruyelle/hipchat-go/languages","stargazers_url":"https://api.github.com/repos/tbruyelle/hipchat-go/stargazers","contributors_url":"https://api.github.com/repos/tbruyelle/hipchat-go/contributors","subscribers_url":"https://api.github.com/repos/tbruyelle/hipchat-go/subscribers","subscription_url":"https://api.github.com/repos/tbruyelle/hipchat-go/subscription","commits_url":"https://api.github.com/repos/tbruyelle/hipchat-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/tbruyelle/hipchat-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/tbruyelle/hipchat-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/tbruyelle/hipchat-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/tbruyelle/hipchat-go/contents/{+path}","compare_url":"https://api.github.com/repos/tbruyelle/hipchat-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tbruyelle/hipchat-go/merges","archive_url":"https://api.github.com/repos/tbruyelle/hipchat-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tbruyelle/hipchat-go/downloads","issues_url":"https://api.github.com/repos/tbruyelle/hipchat-go/issues{/number}","pulls_url":"https://api.github.com/repos/tbruyelle/hipchat-go/pulls{/number}","milestones_url":"https://api.github.com/repos/tbruyelle/hipchat-go/milestones{/number}","notifications_url":"https://api.github.com/repos/tbruyelle/hipchat-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tbruyelle/hipchat-go/labels{/name}","releases_url":"https://api.github.com/repos/tbruyelle/hipchat-go/releases{/id}","deployments_url":"https://api.github.com/repos/tbruyelle/hipchat-go/deployments","created_at":"2014-10-08T13:54:50Z","updated_at":"2016-09-12T06:56:57Z","pushed_at":"2016-09-10T22:58:58Z","git_url":"git://github.com/tbruyelle/hipchat-go.git","ssh_url":"git@github.com:tbruyelle/hipchat-go.git","clone_url":"https://github.com/tbruyelle/hipchat-go.git","svn_url":"https://github.com/tbruyelle/hipchat-go","homepage":null,"size":1872,"stargazers_count":91,"watchers_count":91,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":3,"forks":40,"open_issues":3,"watchers":91,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tbruyelle/hipchat-go/pulls/43"},"html":{"href":"https://github.com/tbruyelle/hipchat-go/pull/43"},"issue":{"href":"https://api.github.com/repos/tbruyelle/hipchat-go/issues/43"},"comments":{"href":"https://api.github.com/repos/tbruyelle/hipchat-go/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/tbruyelle/hipchat-go/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/tbruyelle/hipchat-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tbruyelle/hipchat-go/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/tbruyelle/hipchat-go/statuses/f8db42c69e236ccc2151d36091a32c299b3f2bf2"}}}}
{"actor":{"display_login":"afinkenstadt"}}