GitHub PullRequestEvent at 2014-02-28 15:20:27
Repository: ruby-sdk
Actor: gshiftlabs-jsteel
Payload: {"action":"opened","number":22,"pull_request":{"url":"https://api.github.com/repos/constantcontact/ruby-sdk/pulls/22","id":13054884,"html_url":"https://github.com/constantcontact/ruby-sdk/pull/22","diff_url":"https://github.com/constantcontact/ruby-sdk/pull/22.diff","patch_url":"https://github.com/constantcontact/ruby-sdk/pull/22.patch","issue_url":"https://api.github.com/repos/constantcontact/ruby-sdk/issues/22","number":22,"state":"open","title":"Allow next params to be passed in next_link format","user":{"login":"gshiftlabs-jsteel","id":613659,"avatar_url":"https://avatars.githubusercontent.com/u/613659","gravatar_id":"7cf15bdacbd0b96a2f0f5549e885dca9","url":"https://api.github.com/users/gshiftlabs-jsteel","html_url":"https://github.com/gshiftlabs-jsteel","followers_url":"https://api.github.com/users/gshiftlabs-jsteel/followers","following_url":"https://api.github.com/users/gshiftlabs-jsteel/following{/other_user}","gists_url":"https://api.github.com/users/gshiftlabs-jsteel/gists{/gist_id}","starred_url":"https://api.github.com/users/gshiftlabs-jsteel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gshiftlabs-jsteel/subscriptions","organizations_url":"https://api.github.com/users/gshiftlabs-jsteel/orgs","repos_url":"https://api.github.com/users/gshiftlabs-jsteel/repos","events_url":"https://api.github.com/users/gshiftlabs-jsteel/events{/privacy}","received_events_url":"https://api.github.com/users/gshiftlabs-jsteel/received_events","type":"User","site_admin":false},"body":"The documentation for functions that accept a next parameter confused me a little:\r\n\r\nnext - the next link returned from a previous paginated call. May only be used by itself.\r\n\r\nI thought this meant I could pass in { :next => previous_result_set.next }. But I actually have to parse out the next id from the previous_result_set.next url. This commit makes it so you can do the above, making it much easier to paginate through results. ie:\r\n\r\napi = ConstantContact::Api.new(api_key)\r\nresults = api.get_contacts(access_token)\r\nresults2 = api.get_contacts(access_token, :next => results.next)","created_at":"2014-02-28T15:20:26Z","updated_at":"2014-02-28T15:20:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/constantcontact/ruby-sdk/pulls/22/commits","review_comments_url":"https://api.github.com/repos/constantcontact/ruby-sdk/pulls/22/comments","review_comment_url":"https://api.github.com/repos/constantcontact/ruby-sdk/pulls/comments/{number}","comments_url":"https://api.github.com/repos/constantcontact/ruby-sdk/issues/22/comments","statuses_url":"https://api.github.com/repos/constantcontact/ruby-sdk/statuses/960e83548de894434e5eb3a9e53c6125c0dc4bdb","head":{"label":"gshiftlabs-jsteel:master","ref":"master","sha":"960e83548de894434e5eb3a9e53c6125c0dc4bdb","user":{"login":"gshiftlabs-jsteel","id":613659,"avatar_url":"https://avatars.githubusercontent.com/u/613659","gravatar_id":"7cf15bdacbd0b96a2f0f5549e885dca9","url":"https://api.github.com/users/gshiftlabs-jsteel","html_url":"https://github.com/gshiftlabs-jsteel","followers_url":"https://api.github.com/users/gshiftlabs-jsteel/followers","following_url":"https://api.github.com/users/gshiftlabs-jsteel/following{/other_user}","gists_url":"https://api.github.com/users/gshiftlabs-jsteel/gists{/gist_id}","starred_url":"https://api.github.com/users/gshiftlabs-jsteel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gshiftlabs-jsteel/subscriptions","organizations_url":"https://api.github.com/users/gshiftlabs-jsteel/orgs","repos_url":"https://api.github.com/users/gshiftlabs-jsteel/repos","events_url":"https://api.github.com/users/gshiftlabs-jsteel/events{/privacy}","received_events_url":"https://api.github.com/users/gshiftlabs-jsteel/received_events","type":"User","site_admin":false},"repo":{"id":17288688,"name":"ruby-sdk","full_name":"gshiftlabs-jsteel/ruby-sdk","owner":{"login":"gshiftlabs-jsteel","id":613659,"avatar_url":"https://avatars.githubusercontent.com/u/613659","gravatar_id":"7cf15bdacbd0b96a2f0f5549e885dca9","url":"https://api.github.com/users/gshiftlabs-jsteel","html_url":"https://github.com/gshiftlabs-jsteel","followers_url":"https://api.github.com/users/gshiftlabs-jsteel/followers","following_url":"https://api.github.com/users/gshiftlabs-jsteel/following{/other_user}","gists_url":"https://api.github.com/users/gshiftlabs-jsteel/gists{/gist_id}","starred_url":"https://api.github.com/users/gshiftlabs-jsteel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gshiftlabs-jsteel/subscriptions","organizations_url":"https://api.github.com/users/gshiftlabs-jsteel/orgs","repos_url":"https://api.github.com/users/gshiftlabs-jsteel/repos","events_url":"https://api.github.com/users/gshiftlabs-jsteel/events{/privacy}","received_events_url":"https://api.github.com/users/gshiftlabs-jsteel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gshiftlabs-jsteel/ruby-sdk","description":"Constant Contact Ruby SDK for v2 API ","fork":true,"url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk","forks_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/forks","keys_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/teams","hooks_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/hooks","issue_events_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/events","assignees_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/tags","blobs_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/languages","stargazers_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/stargazers","contributors_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/contributors","subscribers_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/subscribers","subscription_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/subscription","commits_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/issues/comments/{number}","contents_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/merges","archive_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/downloads","issues_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/labels{/name}","releases_url":"https://api.github.com/repos/gshiftlabs-jsteel/ruby-sdk/releases{/id}","created_at":"2014-02-28T14:35:27Z","updated_at":"2014-02-28T15:20:26Z","pushed_at":"2014-02-28T15:05:27Z","git_url":"git://github.com/gshiftlabs-jsteel/ruby-sdk.git","ssh_url":"git@github.com:gshiftlabs-jsteel/ruby-sdk.git","clone_url":"https://github.com/gshiftlabs-jsteel/ruby-sdk.git","svn_url":"https://github.com/gshiftlabs-jsteel/ruby-sdk","homepage":"","size":1169,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master","master_branch":"master"}},"base":{"label":"constantcontact:master","ref":"master","sha":"407f40605310a8fbe9c6c2cf72832f4cff0c2dca","user":{"login":"constantcontact","id":632753,"avatar_url":"https://avatars.githubusercontent.com/u/632753","gravatar_id":"33ccd6cdd43948cca451deac8cdf8d40","url":"https://api.github.com/users/constantcontact","html_url":"https://github.com/constantcontact","followers_url":"https://api.github.com/users/constantcontact/followers","following_url":"https://api.github.com/users/constantcontact/following{/other_user}","gists_url":"https://api.github.com/users/constantcontact/gists{/gist_id}","starred_url":"https://api.github.com/users/constantcontact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/constantcontact/subscriptions","organizations_url":"https://api.github.com/users/constantcontact/orgs","repos_url":"https://api.github.com/users/constantcontact/repos","events_url":"https://api.github.com/users/constantcontact/events{/privacy}","received_events_url":"https://api.github.com/users/constantcontact/received_events","type":"Organization","site_admin":false},"repo":{"id":8608862,"name":"ruby-sdk","full_name":"constantcontact/ruby-sdk","owner":{"login":"constantcontact","id":632753,"avatar_url":"https://avatars.githubusercontent.com/u/632753","gravatar_id":"33ccd6cdd43948cca451deac8cdf8d40","url":"https://api.github.com/users/constantcontact","html_url":"https://github.com/constantcontact","followers_url":"https://api.github.com/users/constantcontact/followers","following_url":"https://api.github.com/users/constantcontact/following{/other_user}","gists_url":"https://api.github.com/users/constantcontact/gists{/gist_id}","starred_url":"https://api.github.com/users/constantcontact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/constantcontact/subscriptions","organizations_url":"https://api.github.com/users/constantcontact/orgs","repos_url":"https://api.github.com/users/constantcontact/repos","events_url":"https://api.github.com/users/constantcontact/events{/privacy}","received_events_url":"https://api.github.com/users/constantcontact/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/constantcontact/ruby-sdk","description":"Constant Contact Ruby SDK for v2 API ","fork":false,"url":"https://api.github.com/repos/constantcontact/ruby-sdk","forks_url":"https://api.github.com/repos/constantcontact/ruby-sdk/forks","keys_url":"https://api.github.com/repos/constantcontact/ruby-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/constantcontact/ruby-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/constantcontact/ruby-sdk/teams","hooks_url":"https://api.github.com/repos/constantcontact/ruby-sdk/hooks","issue_events_url":"https://api.github.com/repos/constantcontact/ruby-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/constantcontact/ruby-sdk/events","assignees_url":"https://api.github.com/repos/constantcontact/ruby-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/constantcontact/ruby-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/constantcontact/ruby-sdk/tags","blobs_url":"https://api.github.com/repos/constantcontact/ruby-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/constantcontact/ruby-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/constantcontact/ruby-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/constantcontact/ruby-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/constantcontact/ruby-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/constantcontact/ruby-sdk/languages","stargazers_url":"https://api.github.com/repos/constantcontact/ruby-sdk/stargazers","contributors_url":"https://api.github.com/repos/constantcontact/ruby-sdk/contributors","subscribers_url":"https://api.github.com/repos/constantcontact/ruby-sdk/subscribers","subscription_url":"https://api.github.com/repos/constantcontact/ruby-sdk/subscription","commits_url":"https://api.github.com/repos/constantcontact/ruby-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/constantcontact/ruby-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/constantcontact/ruby-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/constantcontact/ruby-sdk/issues/comments/{number}","contents_url":"https://api.github.com/repos/constantcontact/ruby-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/constantcontact/ruby-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/constantcontact/ruby-sdk/merges","archive_url":"https://api.github.com/repos/constantcontact/ruby-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/constantcontact/ruby-sdk/downloads","issues_url":"https://api.github.com/repos/constantcontact/ruby-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/constantcontact/ruby-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/constantcontact/ruby-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/constantcontact/ruby-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/constantcontact/ruby-sdk/labels{/name}","releases_url":"https://api.github.com/repos/constantcontact/ruby-sdk/releases{/id}","created_at":"2013-03-06T17:21:07Z","updated_at":"2014-02-24T15:04:25Z","pushed_at":"2014-02-24T15:04:25Z","git_url":"git://github.com/constantcontact/ruby-sdk.git","ssh_url":"git@github.com:constantcontact/ruby-sdk.git","clone_url":"https://github.com/constantcontact/ruby-sdk.git","svn_url":"https://github.com/constantcontact/ruby-sdk","homepage":"","size":1169,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":20,"mirror_url":null,"open_issues_count":1,"forks":20,"open_issues":1,"watchers":5,"default_branch":"master","master_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/constantcontact/ruby-sdk/pulls/22"},"html":{"href":"https://github.com/constantcontact/ruby-sdk/pull/22"},"issue":{"href":"https://api.github.com/repos/constantcontact/ruby-sdk/issues/22"},"comments":{"href":"https://api.github.com/repos/constantcontact/ruby-sdk/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/constantcontact/ruby-sdk/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/constantcontact/ruby-sdk/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/constantcontact/ruby-sdk/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/constantcontact/ruby-sdk/statuses/960e83548de894434e5eb3a9e53c6125c0dc4bdb"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":31,"deletions":7,"changed_files":2}}