GitHub PullRequestEvent at 2014-07-01 03:08:14
Repository: wordpress-rest-api
Actor: kadamwhite
Payload: {"action":"opened","number":58,"pull_request":{"url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/58","id":17810132,"html_url":"https://github.com/kadamwhite/wordpress-rest-api/pull/58","diff_url":"https://github.com/kadamwhite/wordpress-rest-api/pull/58.diff","patch_url":"https://github.com/kadamwhite/wordpress-rest-api/pull/58.patch","issue_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/58","number":58,"state":"open","title":"Add methods to explicitly set authentication on API requests","user":{"login":"kadamwhite","id":442115,"avatar_url":"https://avatars.githubusercontent.com/u/442115?","gravatar_id":"6cd1cf6de05952505a165425efaf06b4","url":"https://api.github.com/users/kadamwhite","html_url":"https://github.com/kadamwhite","followers_url":"https://api.github.com/users/kadamwhite/followers","following_url":"https://api.github.com/users/kadamwhite/following{/other_user}","gists_url":"https://api.github.com/users/kadamwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/kadamwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadamwhite/subscriptions","organizations_url":"https://api.github.com/users/kadamwhite/orgs","repos_url":"https://api.github.com/users/kadamwhite/repos","events_url":"https://api.github.com/users/kadamwhite/events{/privacy}","received_events_url":"https://api.github.com/users/kadamwhite/received_events","type":"User","site_admin":false},"body":"This PR fixes and updates the basic authentication handling for API requests\r\n\r\n* fixes the broken basic auth behavior for methods other than GET\r\n* sets authentication on GET requests when appropriate, such as for `revisions` endpoints\r\n* lets users opt-in to authentication on any request with an `.auth()` method on `WPRequest`\r\n\r\nMethods that explicitly set authentication:\r\n\r\n* The entirety of `UsersRequest`\r\n* `.revisions` in `PostsRequest` and `PagesRequest`\r\n* `.edit()` and `.context( 'edit' )` within `CollectionRequest`\r\n\r\nThis can be extended to other methods where needed","created_at":"2014-07-01T03:08:12Z","updated_at":"2014-07-01T03:08:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ff89062d0329b325727f918ae5d073e60560158","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/58/commits","review_comments_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/58/comments","review_comment_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/comments/{number}","comments_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/58/comments","statuses_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/statuses/dd0ab233ea09e13227ad3735f80dc7adeb5b6a19","head":{"label":"kadamwhite:refactor/explicitly-set-authentication","ref":"refactor/explicitly-set-authentication","sha":"dd0ab233ea09e13227ad3735f80dc7adeb5b6a19","user":{"login":"kadamwhite","id":442115,"avatar_url":"https://avatars.githubusercontent.com/u/442115?","gravatar_id":"6cd1cf6de05952505a165425efaf06b4","url":"https://api.github.com/users/kadamwhite","html_url":"https://github.com/kadamwhite","followers_url":"https://api.github.com/users/kadamwhite/followers","following_url":"https://api.github.com/users/kadamwhite/following{/other_user}","gists_url":"https://api.github.com/users/kadamwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/kadamwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadamwhite/subscriptions","organizations_url":"https://api.github.com/users/kadamwhite/orgs","repos_url":"https://api.github.com/users/kadamwhite/repos","events_url":"https://api.github.com/users/kadamwhite/events{/privacy}","received_events_url":"https://api.github.com/users/kadamwhite/received_events","type":"User","site_admin":false},"repo":{"id":20412692,"name":"wordpress-rest-api","full_name":"kadamwhite/wordpress-rest-api","owner":{"login":"kadamwhite","id":442115,"avatar_url":"https://avatars.githubusercontent.com/u/442115?","gravatar_id":"6cd1cf6de05952505a165425efaf06b4","url":"https://api.github.com/users/kadamwhite","html_url":"https://github.com/kadamwhite","followers_url":"https://api.github.com/users/kadamwhite/followers","following_url":"https://api.github.com/users/kadamwhite/following{/other_user}","gists_url":"https://api.github.com/users/kadamwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/kadamwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadamwhite/subscriptions","organizations_url":"https://api.github.com/users/kadamwhite/orgs","repos_url":"https://api.github.com/users/kadamwhite/repos","events_url":"https://api.github.com/users/kadamwhite/events{/privacy}","received_events_url":"https://api.github.com/users/kadamwhite/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kadamwhite/wordpress-rest-api","description":"A Node.js-based client for the WordPress JSON API","fork":false,"url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api","forks_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/forks","keys_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/teams","hooks_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/hooks","issue_events_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/events{/number}","events_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/events","assignees_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/assignees{/user}","branches_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/branches{/branch}","tags_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/tags","blobs_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/statuses/{sha}","languages_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/languages","stargazers_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/stargazers","contributors_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/contributors","subscribers_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/subscribers","subscription_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/subscription","commits_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/comments/{number}","contents_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/contents/{+path}","compare_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/merges","archive_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/downloads","issues_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues{/number}","pulls_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls{/number}","milestones_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/milestones{/number}","notifications_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/labels{/name}","releases_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/releases{/id}","created_at":"2014-06-02T17:20:53Z","updated_at":"2014-07-01T02:41:14Z","pushed_at":"2014-07-01T02:58:39Z","git_url":"git://github.com/kadamwhite/wordpress-rest-api.git","ssh_url":"git@github.com:kadamwhite/wordpress-rest-api.git","clone_url":"https://github.com/kadamwhite/wordpress-rest-api.git","svn_url":"https://github.com/kadamwhite/wordpress-rest-api","homepage":null,"size":1883,"stargazers_count":15,"watchers_count":15,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":2,"mirror_url":null,"open_issues_count":8,"forks":2,"open_issues":8,"watchers":15,"default_branch":"master"}},"base":{"label":"kadamwhite:master","ref":"master","sha":"e1f5cb8b9857638dbcc8319f97d66f3b855456b0","user":{"login":"kadamwhite","id":442115,"avatar_url":"https://avatars.githubusercontent.com/u/442115?","gravatar_id":"6cd1cf6de05952505a165425efaf06b4","url":"https://api.github.com/users/kadamwhite","html_url":"https://github.com/kadamwhite","followers_url":"https://api.github.com/users/kadamwhite/followers","following_url":"https://api.github.com/users/kadamwhite/following{/other_user}","gists_url":"https://api.github.com/users/kadamwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/kadamwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadamwhite/subscriptions","organizations_url":"https://api.github.com/users/kadamwhite/orgs","repos_url":"https://api.github.com/users/kadamwhite/repos","events_url":"https://api.github.com/users/kadamwhite/events{/privacy}","received_events_url":"https://api.github.com/users/kadamwhite/received_events","type":"User","site_admin":false},"repo":{"id":20412692,"name":"wordpress-rest-api","full_name":"kadamwhite/wordpress-rest-api","owner":{"login":"kadamwhite","id":442115,"avatar_url":"https://avatars.githubusercontent.com/u/442115?","gravatar_id":"6cd1cf6de05952505a165425efaf06b4","url":"https://api.github.com/users/kadamwhite","html_url":"https://github.com/kadamwhite","followers_url":"https://api.github.com/users/kadamwhite/followers","following_url":"https://api.github.com/users/kadamwhite/following{/other_user}","gists_url":"https://api.github.com/users/kadamwhite/gists{/gist_id}","starred_url":"https://api.github.com/users/kadamwhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadamwhite/subscriptions","organizations_url":"https://api.github.com/users/kadamwhite/orgs","repos_url":"https://api.github.com/users/kadamwhite/repos","events_url":"https://api.github.com/users/kadamwhite/events{/privacy}","received_events_url":"https://api.github.com/users/kadamwhite/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kadamwhite/wordpress-rest-api","description":"A Node.js-based client for the WordPress JSON API","fork":false,"url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api","forks_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/forks","keys_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/teams","hooks_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/hooks","issue_events_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/events{/number}","events_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/events","assignees_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/assignees{/user}","branches_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/branches{/branch}","tags_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/tags","blobs_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/statuses/{sha}","languages_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/languages","stargazers_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/stargazers","contributors_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/contributors","subscribers_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/subscribers","subscription_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/subscription","commits_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/comments/{number}","contents_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/contents/{+path}","compare_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/merges","archive_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/downloads","issues_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues{/number}","pulls_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls{/number}","milestones_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/milestones{/number}","notifications_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/labels{/name}","releases_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/releases{/id}","created_at":"2014-06-02T17:20:53Z","updated_at":"2014-07-01T02:41:14Z","pushed_at":"2014-07-01T02:58:39Z","git_url":"git://github.com/kadamwhite/wordpress-rest-api.git","ssh_url":"git@github.com:kadamwhite/wordpress-rest-api.git","clone_url":"https://github.com/kadamwhite/wordpress-rest-api.git","svn_url":"https://github.com/kadamwhite/wordpress-rest-api","homepage":null,"size":1883,"stargazers_count":15,"watchers_count":15,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":2,"mirror_url":null,"open_issues_count":8,"forks":2,"open_issues":8,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/58"},"html":{"href":"https://github.com/kadamwhite/wordpress-rest-api/pull/58"},"issue":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/58"},"comments":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/statuses/dd0ab233ea09e13227ad3735f80dc7adeb5b6a19"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":211,"deletions":35,"changed_files":14}}