{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/wpcom.js/pulls/comments/28272306","id":28272306,"diff_hunk":"@@ -5,10 +5,21 @@ Compatible with Node.js and web browsers.\n \n ## How to use\n \n+First, you'll need a WordPress.com REST API OAuth2 token:\n+- [OAuth2 Authentication](https://developer.wordpress.com/docs/oauth2/)\n+  at WordPress.com Developer Resources\n+- [`wpcom-oauth-cors`](https://github.com/Automattic/wpcom-oauth-cors):\n+  a client-side WordPress.com OAuth2 library using CORS\n+- [`wpcom-oauth`](https://github.com/Automattic/node-wpcom-oauth):\n+  a server-side (Node.js) WordPress.com OAuth2 library\n+- If you just want to create a token, the\n+  [example app bundled with `wpcom-oauth`](https://github.com/Automattic/node-wpcom-oauth/tree/master/example)\n+  is probably the quickest way.\n+\n ### Node.js\n \n-Introduce the `wpcom` dependency in your `package.json`, and\n-then initialize it with your API Token.\n+Introduce the `wpcom` dependency into your `package.json`, and then initialize\n+it with your API token.","path":"Readme.md","position":20,"original_position":20,"commit_id":"8995072a7f3ccd7390265782cb6d2fdbd8f326d6","original_commit_id":"6c2d75edb63782f3cc512982738facc726d5a56f","user":{"login":"retrofox","id":77539,"avatar_url":"https://avatars.githubusercontent.com/u/77539?v=3","gravatar_id":"","url":"https://api.github.com/users/retrofox","html_url":"https://github.com/retrofox","followers_url":"https://api.github.com/users/retrofox/followers","following_url":"https://api.github.com/users/retrofox/following{/other_user}","gists_url":"https://api.github.com/users/retrofox/gists{/gist_id}","starred_url":"https://api.github.com/users/retrofox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retrofox/subscriptions","organizations_url":"https://api.github.com/users/retrofox/orgs","repos_url":"https://api.github.com/users/retrofox/repos","events_url":"https://api.github.com/users/retrofox/events{/privacy}","received_events_url":"https://api.github.com/users/retrofox/received_events","type":"User","site_admin":false},"body":"Absolutely yes but in another section.","created_at":"2015-04-13T19:50:19Z","updated_at":"2015-04-13T19:50:19Z","html_url":"https://github.com/Automattic/wpcom.js/pull/88#discussion_r28272306","pull_request_url":"https://api.github.com/repos/Automattic/wpcom.js/pulls/88","_links":{"self":{"href":"https://api.github.com/repos/Automattic/wpcom.js/pulls/comments/28272306"},"html":{"href":"https://github.com/Automattic/wpcom.js/pull/88#discussion_r28272306"},"pull_request":{"href":"https://api.github.com/repos/Automattic/wpcom.js/pulls/88"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/wpcom.js/pulls/88","id":33001127,"html_url":"https://github.com/Automattic/wpcom.js/pull/88","diff_url":"https://github.com/Automattic/wpcom.js/pull/88.diff","patch_url":"https://github.com/Automattic/wpcom.js/pull/88.patch","issue_url":"https://api.github.com/repos/Automattic/wpcom.js/issues/88","number":88,"state":"open","locked":false,"title":"Add more info about getting a REST API token","user":{"login":"nylen","id":227022,"avatar_url":"https://avatars.githubusercontent.com/u/227022?v=3","gravatar_id":"","url":"https://api.github.com/users/nylen","html_url":"https://github.com/nylen","followers_url":"https://api.github.com/users/nylen/followers","following_url":"https://api.github.com/users/nylen/following{/other_user}","gists_url":"https://api.github.com/users/nylen/gists{/gist_id}","starred_url":"https://api.github.com/users/nylen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nylen/subscriptions","organizations_url":"https://api.github.com/users/nylen/orgs","repos_url":"https://api.github.com/users/nylen/repos","events_url":"https://api.github.com/users/nylen/events{/privacy}","received_events_url":"https://api.github.com/users/nylen/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-09T22:05:54Z","updated_at":"2015-04-13T19:50:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"556aff74d4faf056d6012f567aac14a7a276087a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/wpcom.js/pulls/88/commits","review_comments_url":"https://api.github.com/repos/Automattic/wpcom.js/pulls/88/comments","review_comment_url":"https://api.github.com/repos/Automattic/wpcom.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/wpcom.js/issues/88/comments","statuses_url":"https://api.github.com/repos/Automattic/wpcom.js/statuses/8995072a7f3ccd7390265782cb6d2fdbd8f326d6","head":{"label":"Automattic:docs/api-token-info","ref":"docs/api-token-info","sha":"8995072a7f3ccd7390265782cb6d2fdbd8f326d6","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":16390956,"name":"wpcom.js","full_name":"Automattic/wpcom.js","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/wpcom.js","description":"WordPress.com JavaScript API client designed for Node.js and browsers","fork":false,"url":"https://api.github.com/repos/Automattic/wpcom.js","forks_url":"https://api.github.com/repos/Automattic/wpcom.js/forks","keys_url":"https://api.github.com/repos/Automattic/wpcom.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wpcom.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wpcom.js/teams","hooks_url":"https://api.github.com/repos/Automattic/wpcom.js/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wpcom.js/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wpcom.js/events","assignees_url":"https://api.github.com/repos/Automattic/wpcom.js/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wpcom.js/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wpcom.js/tags","blobs_url":"https://api.github.com/repos/Automattic/wpcom.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wpcom.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wpcom.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wpcom.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wpcom.js/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wpcom.js/languages","stargazers_url":"https://api.github.com/repos/Automattic/wpcom.js/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wpcom.js/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wpcom.js/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wpcom.js/subscription","commits_url":"https://api.github.com/repos/Automattic/wpcom.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wpcom.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wpcom.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wpcom.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wpcom.js/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wpcom.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wpcom.js/merges","archive_url":"https://api.github.com/repos/Automattic/wpcom.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wpcom.js/downloads","issues_url":"https://api.github.com/repos/Automattic/wpcom.js/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wpcom.js/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wpcom.js/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wpcom.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wpcom.js/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wpcom.js/releases{/id}","created_at":"2014-01-30T21:08:58Z","updated_at":"2015-04-09T22:21:48Z","pushed_at":"2015-04-13T19:21:45Z","git_url":"git://github.com/Automattic/wpcom.js.git","ssh_url":"git@github.com:Automattic/wpcom.js.git","clone_url":"https://github.com/Automattic/wpcom.js.git","svn_url":"https://github.com/Automattic/wpcom.js","homepage":"http://wpcomjs.com/","size":2558,"stargazers_count":53,"watchers_count":53,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":10,"forks":6,"open_issues":10,"watchers":53,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"c5b61ef95deb1e2596aacfb7133978213ecac19a","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":16390956,"name":"wpcom.js","full_name":"Automattic/wpcom.js","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/wpcom.js","description":"WordPress.com JavaScript API client designed for Node.js and browsers","fork":false,"url":"https://api.github.com/repos/Automattic/wpcom.js","forks_url":"https://api.github.com/repos/Automattic/wpcom.js/forks","keys_url":"https://api.github.com/repos/Automattic/wpcom.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wpcom.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wpcom.js/teams","hooks_url":"https://api.github.com/repos/Automattic/wpcom.js/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wpcom.js/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wpcom.js/events","assignees_url":"https://api.github.com/repos/Automattic/wpcom.js/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wpcom.js/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wpcom.js/tags","blobs_url":"https://api.github.com/repos/Automattic/wpcom.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wpcom.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wpcom.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wpcom.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wpcom.js/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wpcom.js/languages","stargazers_url":"https://api.github.com/repos/Automattic/wpcom.js/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wpcom.js/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wpcom.js/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wpcom.js/subscription","commits_url":"https://api.github.com/repos/Automattic/wpcom.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wpcom.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wpcom.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wpcom.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wpcom.js/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wpcom.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wpcom.js/merges","archive_url":"https://api.github.com/repos/Automattic/wpcom.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wpcom.js/downloads","issues_url":"https://api.github.com/repos/Automattic/wpcom.js/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wpcom.js/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wpcom.js/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wpcom.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wpcom.js/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wpcom.js/releases{/id}","created_at":"2014-01-30T21:08:58Z","updated_at":"2015-04-09T22:21:48Z","pushed_at":"2015-04-13T19:21:45Z","git_url":"git://github.com/Automattic/wpcom.js.git","ssh_url":"git@github.com:Automattic/wpcom.js.git","clone_url":"https://github.com/Automattic/wpcom.js.git","svn_url":"https://github.com/Automattic/wpcom.js","homepage":"http://wpcomjs.com/","size":2558,"stargazers_count":53,"watchers_count":53,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":10,"forks":6,"open_issues":10,"watchers":53,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/wpcom.js/pulls/88"},"html":{"href":"https://github.com/Automattic/wpcom.js/pull/88"},"issue":{"href":"https://api.github.com/repos/Automattic/wpcom.js/issues/88"},"comments":{"href":"https://api.github.com/repos/Automattic/wpcom.js/issues/88/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/wpcom.js/pulls/88/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/wpcom.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/wpcom.js/pulls/88/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/wpcom.js/statuses/8995072a7f3ccd7390265782cb6d2fdbd8f326d6"}}}}