{"action":"opened","number":123,"pull_request":{"url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/123","id":56498046,"html_url":"https://github.com/kadamwhite/wordpress-rest-api/pull/123","diff_url":"https://github.com/kadamwhite/wordpress-rest-api/pull/123.diff","patch_url":"https://github.com/kadamwhite/wordpress-rest-api/pull/123.patch","issue_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/123","number":123,"state":"open","locked":false,"title":"Add integration tests for post creation & updating","user":{"login":"kadamwhite","id":442115,"avatar_url":"https://avatars.githubusercontent.com/u/442115?v=3","gravatar_id":"","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":"The fact that 403's are returned for some requests and 401's for others is a result of https://core.trac.wordpress.org/ticket/35527\r\n\r\nThis adds documentation and an integration test around a full post create-update-delete cycle","created_at":"2016-01-19T17:26:05Z","updated_at":"2016-01-19T17:26:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/123/commits","review_comments_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/123/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/123/comments","statuses_url":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/statuses/1dd182ea4fd670d997023f29258e7b6d7fdbf7ac","head":{"label":"kadamwhite:create-update-examples","ref":"create-update-examples","sha":"1dd182ea4fd670d997023f29258e7b6d7fdbf7ac","user":{"login":"kadamwhite","id":442115,"avatar_url":"https://avatars.githubusercontent.com/u/442115?v=3","gravatar_id":"","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?v=3","gravatar_id":"","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":"2016-01-19T14:04:04Z","pushed_at":"2016-01-19T17:24:21Z","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":614,"stargazers_count":213,"watchers_count":213,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":37,"mirror_url":null,"open_issues_count":17,"forks":37,"open_issues":17,"watchers":213,"default_branch":"master"}},"base":{"label":"kadamwhite:master","ref":"master","sha":"a534034ca6574cddbf86848d5e1e05e424b7d13f","user":{"login":"kadamwhite","id":442115,"avatar_url":"https://avatars.githubusercontent.com/u/442115?v=3","gravatar_id":"","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?v=3","gravatar_id":"","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":"2016-01-19T14:04:04Z","pushed_at":"2016-01-19T17:24:21Z","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":614,"stargazers_count":213,"watchers_count":213,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":37,"mirror_url":null,"open_issues_count":17,"forks":37,"open_issues":17,"watchers":213,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/123"},"html":{"href":"https://github.com/kadamwhite/wordpress-rest-api/pull/123"},"issue":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/123"},"comments":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/issues/123/comments"},"review_comments":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/pulls/123/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/123/commits"},"statuses":{"href":"https://api.github.com/repos/kadamwhite/wordpress-rest-api/statuses/1dd182ea4fd670d997023f29258e7b6d7fdbf7ac"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":5,"additions":268,"deletions":48,"changed_files":4}}