{"action":"opened","number":28,"pull_request":{"url":"https://api.github.com/repos/WP-API/docs-v2/pulls/28","id":38916431,"html_url":"https://github.com/WP-API/docs-v2/pull/28","diff_url":"https://github.com/WP-API/docs-v2/pull/28.diff","patch_url":"https://github.com/WP-API/docs-v2/pull/28.patch","issue_url":"https://api.github.com/repos/WP-API/docs-v2/issues/28","number":28,"state":"open","locked":false,"title":"Update Authentication section on index.md","user":{"login":"mrbobbybryant","id":7875796,"avatar_url":"https://avatars.githubusercontent.com/u/7875796?v=3","gravatar_id":"","url":"https://api.github.com/users/mrbobbybryant","html_url":"https://github.com/mrbobbybryant","followers_url":"https://api.github.com/users/mrbobbybryant/followers","following_url":"https://api.github.com/users/mrbobbybryant/following{/other_user}","gists_url":"https://api.github.com/users/mrbobbybryant/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbobbybryant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbobbybryant/subscriptions","organizations_url":"https://api.github.com/users/mrbobbybryant/orgs","repos_url":"https://api.github.com/users/mrbobbybryant/repos","events_url":"https://api.github.com/users/mrbobbybryant/events{/privacy}","received_events_url":"https://api.github.com/users/mrbobbybryant/received_events","type":"User","site_admin":false},"body":"It looks like in v2 get_json_url() no longer exists, so I changed it to use rest_url(). It also looks like the nonce created in v2 was changed from wp_json to wp_rest. Using wp_json will return a 403 invalid nonce error.","created_at":"2015-06-30T19:44:28Z","updated_at":"2015-06-30T19:44:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/WP-API/docs-v2/pulls/28/commits","review_comments_url":"https://api.github.com/repos/WP-API/docs-v2/pulls/28/comments","review_comment_url":"https://api.github.com/repos/WP-API/docs-v2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WP-API/docs-v2/issues/28/comments","statuses_url":"https://api.github.com/repos/WP-API/docs-v2/statuses/78edb6a0efced0ffb9da3015f34671bf54b5930a","head":{"label":"mrbobbybryant:gh-pages","ref":"gh-pages","sha":"78edb6a0efced0ffb9da3015f34671bf54b5930a","user":{"login":"mrbobbybryant","id":7875796,"avatar_url":"https://avatars.githubusercontent.com/u/7875796?v=3","gravatar_id":"","url":"https://api.github.com/users/mrbobbybryant","html_url":"https://github.com/mrbobbybryant","followers_url":"https://api.github.com/users/mrbobbybryant/followers","following_url":"https://api.github.com/users/mrbobbybryant/following{/other_user}","gists_url":"https://api.github.com/users/mrbobbybryant/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbobbybryant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbobbybryant/subscriptions","organizations_url":"https://api.github.com/users/mrbobbybryant/orgs","repos_url":"https://api.github.com/users/mrbobbybryant/repos","events_url":"https://api.github.com/users/mrbobbybryant/events{/privacy}","received_events_url":"https://api.github.com/users/mrbobbybryant/received_events","type":"User","site_admin":false},"repo":{"id":38329088,"name":"docs-v2","full_name":"mrbobbybryant/docs-v2","owner":{"login":"mrbobbybryant","id":7875796,"avatar_url":"https://avatars.githubusercontent.com/u/7875796?v=3","gravatar_id":"","url":"https://api.github.com/users/mrbobbybryant","html_url":"https://github.com/mrbobbybryant","followers_url":"https://api.github.com/users/mrbobbybryant/followers","following_url":"https://api.github.com/users/mrbobbybryant/following{/other_user}","gists_url":"https://api.github.com/users/mrbobbybryant/gists{/gist_id}","starred_url":"https://api.github.com/users/mrbobbybryant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrbobbybryant/subscriptions","organizations_url":"https://api.github.com/users/mrbobbybryant/orgs","repos_url":"https://api.github.com/users/mrbobbybryant/repos","events_url":"https://api.github.com/users/mrbobbybryant/events{/privacy}","received_events_url":"https://api.github.com/users/mrbobbybryant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrbobbybryant/docs-v2","description":"Documentation for version 2 of the API","fork":true,"url":"https://api.github.com/repos/mrbobbybryant/docs-v2","forks_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/forks","keys_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/teams","hooks_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/hooks","issue_events_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/issues/events{/number}","events_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/events","assignees_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/assignees{/user}","branches_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/branches{/branch}","tags_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/tags","blobs_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/statuses/{sha}","languages_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/languages","stargazers_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/stargazers","contributors_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/contributors","subscribers_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/subscribers","subscription_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/subscription","commits_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/contents/{+path}","compare_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/merges","archive_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/downloads","issues_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/issues{/number}","pulls_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/pulls{/number}","milestones_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/milestones{/number}","notifications_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/labels{/name}","releases_url":"https://api.github.com/repos/mrbobbybryant/docs-v2/releases{/id}","created_at":"2015-06-30T19:35:15Z","updated_at":"2015-06-30T19:35:15Z","pushed_at":"2015-06-30T19:40:10Z","git_url":"git://github.com/mrbobbybryant/docs-v2.git","ssh_url":"git@github.com:mrbobbybryant/docs-v2.git","clone_url":"https://github.com/mrbobbybryant/docs-v2.git","svn_url":"https://github.com/mrbobbybryant/docs-v2","homepage":"http://v2.wp-api.org","size":359,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"WP-API:gh-pages","ref":"gh-pages","sha":"421c57821c40cd7cf4eda0f3c18c09198a0a34e5","user":{"login":"WP-API","id":5706008,"avatar_url":"https://avatars.githubusercontent.com/u/5706008?v=3","gravatar_id":"","url":"https://api.github.com/users/WP-API","html_url":"https://github.com/WP-API","followers_url":"https://api.github.com/users/WP-API/followers","following_url":"https://api.github.com/users/WP-API/following{/other_user}","gists_url":"https://api.github.com/users/WP-API/gists{/gist_id}","starred_url":"https://api.github.com/users/WP-API/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WP-API/subscriptions","organizations_url":"https://api.github.com/users/WP-API/orgs","repos_url":"https://api.github.com/users/WP-API/repos","events_url":"https://api.github.com/users/WP-API/events{/privacy}","received_events_url":"https://api.github.com/users/WP-API/received_events","type":"Organization","site_admin":false},"repo":{"id":34363975,"name":"docs-v2","full_name":"WP-API/docs-v2","owner":{"login":"WP-API","id":5706008,"avatar_url":"https://avatars.githubusercontent.com/u/5706008?v=3","gravatar_id":"","url":"https://api.github.com/users/WP-API","html_url":"https://github.com/WP-API","followers_url":"https://api.github.com/users/WP-API/followers","following_url":"https://api.github.com/users/WP-API/following{/other_user}","gists_url":"https://api.github.com/users/WP-API/gists{/gist_id}","starred_url":"https://api.github.com/users/WP-API/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WP-API/subscriptions","organizations_url":"https://api.github.com/users/WP-API/orgs","repos_url":"https://api.github.com/users/WP-API/repos","events_url":"https://api.github.com/users/WP-API/events{/privacy}","received_events_url":"https://api.github.com/users/WP-API/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WP-API/docs-v2","description":"Documentation for version 2 of the API","fork":false,"url":"https://api.github.com/repos/WP-API/docs-v2","forks_url":"https://api.github.com/repos/WP-API/docs-v2/forks","keys_url":"https://api.github.com/repos/WP-API/docs-v2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WP-API/docs-v2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WP-API/docs-v2/teams","hooks_url":"https://api.github.com/repos/WP-API/docs-v2/hooks","issue_events_url":"https://api.github.com/repos/WP-API/docs-v2/issues/events{/number}","events_url":"https://api.github.com/repos/WP-API/docs-v2/events","assignees_url":"https://api.github.com/repos/WP-API/docs-v2/assignees{/user}","branches_url":"https://api.github.com/repos/WP-API/docs-v2/branches{/branch}","tags_url":"https://api.github.com/repos/WP-API/docs-v2/tags","blobs_url":"https://api.github.com/repos/WP-API/docs-v2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WP-API/docs-v2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WP-API/docs-v2/git/refs{/sha}","trees_url":"https://api.github.com/repos/WP-API/docs-v2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WP-API/docs-v2/statuses/{sha}","languages_url":"https://api.github.com/repos/WP-API/docs-v2/languages","stargazers_url":"https://api.github.com/repos/WP-API/docs-v2/stargazers","contributors_url":"https://api.github.com/repos/WP-API/docs-v2/contributors","subscribers_url":"https://api.github.com/repos/WP-API/docs-v2/subscribers","subscription_url":"https://api.github.com/repos/WP-API/docs-v2/subscription","commits_url":"https://api.github.com/repos/WP-API/docs-v2/commits{/sha}","git_commits_url":"https://api.github.com/repos/WP-API/docs-v2/git/commits{/sha}","comments_url":"https://api.github.com/repos/WP-API/docs-v2/comments{/number}","issue_comment_url":"https://api.github.com/repos/WP-API/docs-v2/issues/comments{/number}","contents_url":"https://api.github.com/repos/WP-API/docs-v2/contents/{+path}","compare_url":"https://api.github.com/repos/WP-API/docs-v2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WP-API/docs-v2/merges","archive_url":"https://api.github.com/repos/WP-API/docs-v2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WP-API/docs-v2/downloads","issues_url":"https://api.github.com/repos/WP-API/docs-v2/issues{/number}","pulls_url":"https://api.github.com/repos/WP-API/docs-v2/pulls{/number}","milestones_url":"https://api.github.com/repos/WP-API/docs-v2/milestones{/number}","notifications_url":"https://api.github.com/repos/WP-API/docs-v2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WP-API/docs-v2/labels{/name}","releases_url":"https://api.github.com/repos/WP-API/docs-v2/releases{/id}","created_at":"2015-04-22T02:28:11Z","updated_at":"2015-05-08T17:43:18Z","pushed_at":"2015-06-30T19:44:28Z","git_url":"git://github.com/WP-API/docs-v2.git","ssh_url":"git@github.com:WP-API/docs-v2.git","clone_url":"https://github.com/WP-API/docs-v2.git","svn_url":"https://github.com/WP-API/docs-v2","homepage":"http://v2.wp-api.org","size":359,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":15,"forks":5,"open_issues":15,"watchers":0,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/WP-API/docs-v2/pulls/28"},"html":{"href":"https://github.com/WP-API/docs-v2/pull/28"},"issue":{"href":"https://api.github.com/repos/WP-API/docs-v2/issues/28"},"comments":{"href":"https://api.github.com/repos/WP-API/docs-v2/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/WP-API/docs-v2/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/WP-API/docs-v2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WP-API/docs-v2/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/WP-API/docs-v2/statuses/78edb6a0efced0ffb9da3015f34671bf54b5930a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}