{"action":"closed","number":8,"pull_request":{"url":"https://api.github.com/repos/hemnet/wpclient/pulls/8","id":50815107,"html_url":"https://github.com/hemnet/wpclient/pull/8","diff_url":"https://github.com/hemnet/wpclient/pull/8.diff","patch_url":"https://github.com/hemnet/wpclient/pull/8.patch","issue_url":"https://api.github.com/repos/hemnet/wpclient/issues/8","number":8,"state":"closed","locked":false,"title":"Pagination methods","user":{"login":"Mange","id":1599,"avatar_url":"https://avatars.githubusercontent.com/u/1599?v=3","gravatar_id":"","url":"https://api.github.com/users/Mange","html_url":"https://github.com/Mange","followers_url":"https://api.github.com/users/Mange/followers","following_url":"https://api.github.com/users/Mange/following{/other_user}","gists_url":"https://api.github.com/users/Mange/gists{/gist_id}","starred_url":"https://api.github.com/users/Mange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mange/subscriptions","organizations_url":"https://api.github.com/users/Mange/orgs","repos_url":"https://api.github.com/users/Mange/repos","events_url":"https://api.github.com/users/Mange/events{/privacy}","received_events_url":"https://api.github.com/users/Mange/received_events","type":"User","site_admin":false},"body":"This adds `total_pages`, `total`, `current_page`, `next_page`, `previous_page`, `out_of_bounds?`, and `per_page` on the collection returned by `Client#posts` and `Client#categories`. These methods are straight from `will_paginate`, the de-facto standard of pagination APIs.\r\n\r\nCC @rmeritz ","created_at":"2015-11-16T14:19:40Z","updated_at":"2015-11-16T14:26:43Z","closed_at":"2015-11-16T14:26:43Z","merged_at":"2015-11-16T14:26:43Z","merge_commit_sha":"6840231dfc5d8db4d1be0ef3d10b50a9616e1e07","assignee":{"login":"rmeritz","id":352375,"avatar_url":"https://avatars.githubusercontent.com/u/352375?v=3","gravatar_id":"","url":"https://api.github.com/users/rmeritz","html_url":"https://github.com/rmeritz","followers_url":"https://api.github.com/users/rmeritz/followers","following_url":"https://api.github.com/users/rmeritz/following{/other_user}","gists_url":"https://api.github.com/users/rmeritz/gists{/gist_id}","starred_url":"https://api.github.com/users/rmeritz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmeritz/subscriptions","organizations_url":"https://api.github.com/users/rmeritz/orgs","repos_url":"https://api.github.com/users/rmeritz/repos","events_url":"https://api.github.com/users/rmeritz/events{/privacy}","received_events_url":"https://api.github.com/users/rmeritz/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/hemnet/wpclient/pulls/8/commits","review_comments_url":"https://api.github.com/repos/hemnet/wpclient/pulls/8/comments","review_comment_url":"https://api.github.com/repos/hemnet/wpclient/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hemnet/wpclient/issues/8/comments","statuses_url":"https://api.github.com/repos/hemnet/wpclient/statuses/f7c74f85c12c6e2083b201e3655b7bba4b68ce6e","head":{"label":"hemnet:pagination","ref":"pagination","sha":"f7c74f85c12c6e2083b201e3655b7bba4b68ce6e","user":{"login":"hemnet","id":1384950,"avatar_url":"https://avatars.githubusercontent.com/u/1384950?v=3","gravatar_id":"","url":"https://api.github.com/users/hemnet","html_url":"https://github.com/hemnet","followers_url":"https://api.github.com/users/hemnet/followers","following_url":"https://api.github.com/users/hemnet/following{/other_user}","gists_url":"https://api.github.com/users/hemnet/gists{/gist_id}","starred_url":"https://api.github.com/users/hemnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemnet/subscriptions","organizations_url":"https://api.github.com/users/hemnet/orgs","repos_url":"https://api.github.com/users/hemnet/repos","events_url":"https://api.github.com/users/hemnet/events{/privacy}","received_events_url":"https://api.github.com/users/hemnet/received_events","type":"Organization","site_admin":false},"repo":{"id":45466740,"name":"wpclient","full_name":"hemnet/wpclient","owner":{"login":"hemnet","id":1384950,"avatar_url":"https://avatars.githubusercontent.com/u/1384950?v=3","gravatar_id":"","url":"https://api.github.com/users/hemnet","html_url":"https://github.com/hemnet","followers_url":"https://api.github.com/users/hemnet/followers","following_url":"https://api.github.com/users/hemnet/following{/other_user}","gists_url":"https://api.github.com/users/hemnet/gists{/gist_id}","starred_url":"https://api.github.com/users/hemnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemnet/subscriptions","organizations_url":"https://api.github.com/users/hemnet/orgs","repos_url":"https://api.github.com/users/hemnet/repos","events_url":"https://api.github.com/users/hemnet/events{/privacy}","received_events_url":"https://api.github.com/users/hemnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hemnet/wpclient","description":"A super simple WordPress API client in Ruby","fork":false,"url":"https://api.github.com/repos/hemnet/wpclient","forks_url":"https://api.github.com/repos/hemnet/wpclient/forks","keys_url":"https://api.github.com/repos/hemnet/wpclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hemnet/wpclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hemnet/wpclient/teams","hooks_url":"https://api.github.com/repos/hemnet/wpclient/hooks","issue_events_url":"https://api.github.com/repos/hemnet/wpclient/issues/events{/number}","events_url":"https://api.github.com/repos/hemnet/wpclient/events","assignees_url":"https://api.github.com/repos/hemnet/wpclient/assignees{/user}","branches_url":"https://api.github.com/repos/hemnet/wpclient/branches{/branch}","tags_url":"https://api.github.com/repos/hemnet/wpclient/tags","blobs_url":"https://api.github.com/repos/hemnet/wpclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hemnet/wpclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hemnet/wpclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/hemnet/wpclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hemnet/wpclient/statuses/{sha}","languages_url":"https://api.github.com/repos/hemnet/wpclient/languages","stargazers_url":"https://api.github.com/repos/hemnet/wpclient/stargazers","contributors_url":"https://api.github.com/repos/hemnet/wpclient/contributors","subscribers_url":"https://api.github.com/repos/hemnet/wpclient/subscribers","subscription_url":"https://api.github.com/repos/hemnet/wpclient/subscription","commits_url":"https://api.github.com/repos/hemnet/wpclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/hemnet/wpclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/hemnet/wpclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/hemnet/wpclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/hemnet/wpclient/contents/{+path}","compare_url":"https://api.github.com/repos/hemnet/wpclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hemnet/wpclient/merges","archive_url":"https://api.github.com/repos/hemnet/wpclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hemnet/wpclient/downloads","issues_url":"https://api.github.com/repos/hemnet/wpclient/issues{/number}","pulls_url":"https://api.github.com/repos/hemnet/wpclient/pulls{/number}","milestones_url":"https://api.github.com/repos/hemnet/wpclient/milestones{/number}","notifications_url":"https://api.github.com/repos/hemnet/wpclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hemnet/wpclient/labels{/name}","releases_url":"https://api.github.com/repos/hemnet/wpclient/releases{/id}","created_at":"2015-11-03T13:02:13Z","updated_at":"2015-11-03T13:02:26Z","pushed_at":"2015-11-16T14:26:43Z","git_url":"git://github.com/hemnet/wpclient.git","ssh_url":"git@github.com:hemnet/wpclient.git","clone_url":"https://github.com/hemnet/wpclient.git","svn_url":"https://github.com/hemnet/wpclient","homepage":null,"size":428,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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":"hemnet:master","ref":"master","sha":"45bc53b66a1b2b49a905d7aab28d42576a821680","user":{"login":"hemnet","id":1384950,"avatar_url":"https://avatars.githubusercontent.com/u/1384950?v=3","gravatar_id":"","url":"https://api.github.com/users/hemnet","html_url":"https://github.com/hemnet","followers_url":"https://api.github.com/users/hemnet/followers","following_url":"https://api.github.com/users/hemnet/following{/other_user}","gists_url":"https://api.github.com/users/hemnet/gists{/gist_id}","starred_url":"https://api.github.com/users/hemnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemnet/subscriptions","organizations_url":"https://api.github.com/users/hemnet/orgs","repos_url":"https://api.github.com/users/hemnet/repos","events_url":"https://api.github.com/users/hemnet/events{/privacy}","received_events_url":"https://api.github.com/users/hemnet/received_events","type":"Organization","site_admin":false},"repo":{"id":45466740,"name":"wpclient","full_name":"hemnet/wpclient","owner":{"login":"hemnet","id":1384950,"avatar_url":"https://avatars.githubusercontent.com/u/1384950?v=3","gravatar_id":"","url":"https://api.github.com/users/hemnet","html_url":"https://github.com/hemnet","followers_url":"https://api.github.com/users/hemnet/followers","following_url":"https://api.github.com/users/hemnet/following{/other_user}","gists_url":"https://api.github.com/users/hemnet/gists{/gist_id}","starred_url":"https://api.github.com/users/hemnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemnet/subscriptions","organizations_url":"https://api.github.com/users/hemnet/orgs","repos_url":"https://api.github.com/users/hemnet/repos","events_url":"https://api.github.com/users/hemnet/events{/privacy}","received_events_url":"https://api.github.com/users/hemnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hemnet/wpclient","description":"A super simple WordPress API client in Ruby","fork":false,"url":"https://api.github.com/repos/hemnet/wpclient","forks_url":"https://api.github.com/repos/hemnet/wpclient/forks","keys_url":"https://api.github.com/repos/hemnet/wpclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hemnet/wpclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hemnet/wpclient/teams","hooks_url":"https://api.github.com/repos/hemnet/wpclient/hooks","issue_events_url":"https://api.github.com/repos/hemnet/wpclient/issues/events{/number}","events_url":"https://api.github.com/repos/hemnet/wpclient/events","assignees_url":"https://api.github.com/repos/hemnet/wpclient/assignees{/user}","branches_url":"https://api.github.com/repos/hemnet/wpclient/branches{/branch}","tags_url":"https://api.github.com/repos/hemnet/wpclient/tags","blobs_url":"https://api.github.com/repos/hemnet/wpclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hemnet/wpclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hemnet/wpclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/hemnet/wpclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hemnet/wpclient/statuses/{sha}","languages_url":"https://api.github.com/repos/hemnet/wpclient/languages","stargazers_url":"https://api.github.com/repos/hemnet/wpclient/stargazers","contributors_url":"https://api.github.com/repos/hemnet/wpclient/contributors","subscribers_url":"https://api.github.com/repos/hemnet/wpclient/subscribers","subscription_url":"https://api.github.com/repos/hemnet/wpclient/subscription","commits_url":"https://api.github.com/repos/hemnet/wpclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/hemnet/wpclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/hemnet/wpclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/hemnet/wpclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/hemnet/wpclient/contents/{+path}","compare_url":"https://api.github.com/repos/hemnet/wpclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hemnet/wpclient/merges","archive_url":"https://api.github.com/repos/hemnet/wpclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hemnet/wpclient/downloads","issues_url":"https://api.github.com/repos/hemnet/wpclient/issues{/number}","pulls_url":"https://api.github.com/repos/hemnet/wpclient/pulls{/number}","milestones_url":"https://api.github.com/repos/hemnet/wpclient/milestones{/number}","notifications_url":"https://api.github.com/repos/hemnet/wpclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hemnet/wpclient/labels{/name}","releases_url":"https://api.github.com/repos/hemnet/wpclient/releases{/id}","created_at":"2015-11-03T13:02:13Z","updated_at":"2015-11-03T13:02:26Z","pushed_at":"2015-11-16T14:26:43Z","git_url":"git://github.com/hemnet/wpclient.git","ssh_url":"git@github.com:hemnet/wpclient.git","clone_url":"https://github.com/hemnet/wpclient.git","svn_url":"https://github.com/hemnet/wpclient","homepage":null,"size":428,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/hemnet/wpclient/pulls/8"},"html":{"href":"https://github.com/hemnet/wpclient/pull/8"},"issue":{"href":"https://api.github.com/repos/hemnet/wpclient/issues/8"},"comments":{"href":"https://api.github.com/repos/hemnet/wpclient/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/hemnet/wpclient/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/hemnet/wpclient/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hemnet/wpclient/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/hemnet/wpclient/statuses/f7c74f85c12c6e2083b201e3655b7bba4b68ce6e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"rmeritz","id":352375,"avatar_url":"https://avatars.githubusercontent.com/u/352375?v=3","gravatar_id":"","url":"https://api.github.com/users/rmeritz","html_url":"https://github.com/rmeritz","followers_url":"https://api.github.com/users/rmeritz/followers","following_url":"https://api.github.com/users/rmeritz/following{/other_user}","gists_url":"https://api.github.com/users/rmeritz/gists{/gist_id}","starred_url":"https://api.github.com/users/rmeritz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmeritz/subscriptions","organizations_url":"https://api.github.com/users/rmeritz/orgs","repos_url":"https://api.github.com/users/rmeritz/repos","events_url":"https://api.github.com/users/rmeritz/events{/privacy}","received_events_url":"https://api.github.com/users/rmeritz/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":183,"deletions":10,"changed_files":6}}