{"action":"created","comment":{"url":"https://api.github.com/repos/iamstarkov/get-tweets/pulls/comments/40416787","id":40416787,"diff_hunk":"@@ -13,34 +13,53 @@\n \n ## Usage\n \n-You will need valid [Twitter developer credentials (tokens)][creds]\n-in the form of a set of consumer and access tokens/keys.\n-You can use [twitter-tokens][tokens], to simplify getting tokens\n-\n-[creds]: https://apps.twitter.com/\n-[tokens]: https://www.npmjs.com/package/twitter-tokens\n-\n ```js\n import getTweets from 'get-tweets';\n import tokens from 'twitter-tokens';\n \n-/**\n- * ### Get all tweets\n- * get-tweets will try to fetch all tweets from the account and will return\n- * all tweets or error (if account have more than 3200 tweets).\n- */\n-getTweets(tokens, 'andrestaltz', (err, tweets) => {\n-  console.log(tweets);\n-});\n-\n-/**\n- * ### Get latest tweets including target one\n- */\n getTweets(tokens, 'jsunderhood', '602825789478969344', (err, tweets) => {\n   console.log(tweets);\n });\n ```\n \n+## API","path":"README.md","position":41,"original_position":41,"commit_id":"64407268c215e8b3e3ed665ac9e5ad83042a68a2","original_commit_id":"64407268c215e8b3e3ed665ac9e5ad83042a68a2","user":{"login":"iamstarkov","id":559321,"avatar_url":"https://avatars.githubusercontent.com/u/559321?v=3","gravatar_id":"","url":"https://api.github.com/users/iamstarkov","html_url":"https://github.com/iamstarkov","followers_url":"https://api.github.com/users/iamstarkov/followers","following_url":"https://api.github.com/users/iamstarkov/following{/other_user}","gists_url":"https://api.github.com/users/iamstarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/iamstarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamstarkov/subscriptions","organizations_url":"https://api.github.com/users/iamstarkov/orgs","repos_url":"https://api.github.com/users/iamstarkov/repos","events_url":"https://api.github.com/users/iamstarkov/events{/privacy}","received_events_url":"https://api.github.com/users/iamstarkov/received_events","type":"User","site_admin":false},"body":"Апи обычно подробное, а примеры кода маленькие, поэтому обычно примеры ставят до Install && Usage для мгновеного погружения, API для использования и отсылки к параметрам методов","created_at":"2015-09-25T10:20:59Z","updated_at":"2015-09-25T10:20:59Z","html_url":"https://github.com/iamstarkov/get-tweets/pull/11#discussion_r40416787","pull_request_url":"https://api.github.com/repos/iamstarkov/get-tweets/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/iamstarkov/get-tweets/pulls/comments/40416787"},"html":{"href":"https://github.com/iamstarkov/get-tweets/pull/11#discussion_r40416787"},"pull_request":{"href":"https://api.github.com/repos/iamstarkov/get-tweets/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/iamstarkov/get-tweets/pulls/11","id":45884479,"html_url":"https://github.com/iamstarkov/get-tweets/pull/11","diff_url":"https://github.com/iamstarkov/get-tweets/pull/11.diff","patch_url":"https://github.com/iamstarkov/get-tweets/pull/11.patch","issue_url":"https://api.github.com/repos/iamstarkov/get-tweets/issues/11","number":11,"state":"open","locked":false,"title":"Refactor/remove all tweets feature","user":{"login":"iamstarkov","id":559321,"avatar_url":"https://avatars.githubusercontent.com/u/559321?v=3","gravatar_id":"","url":"https://api.github.com/users/iamstarkov","html_url":"https://github.com/iamstarkov","followers_url":"https://api.github.com/users/iamstarkov/followers","following_url":"https://api.github.com/users/iamstarkov/following{/other_user}","gists_url":"https://api.github.com/users/iamstarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/iamstarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamstarkov/subscriptions","organizations_url":"https://api.github.com/users/iamstarkov/orgs","repos_url":"https://api.github.com/users/iamstarkov/repos","events_url":"https://api.github.com/users/iamstarkov/events{/privacy}","received_events_url":"https://api.github.com/users/iamstarkov/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-24T11:08:29Z","updated_at":"2015-09-25T10:20:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72d18f36ddd33fae453d012c015081b0a7fe7a20","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/iamstarkov/get-tweets/pulls/11/commits","review_comments_url":"https://api.github.com/repos/iamstarkov/get-tweets/pulls/11/comments","review_comment_url":"https://api.github.com/repos/iamstarkov/get-tweets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iamstarkov/get-tweets/issues/11/comments","statuses_url":"https://api.github.com/repos/iamstarkov/get-tweets/statuses/64407268c215e8b3e3ed665ac9e5ad83042a68a2","head":{"label":"iamstarkov:refactor/remove-all-tweets-feature","ref":"refactor/remove-all-tweets-feature","sha":"64407268c215e8b3e3ed665ac9e5ad83042a68a2","user":{"login":"iamstarkov","id":559321,"avatar_url":"https://avatars.githubusercontent.com/u/559321?v=3","gravatar_id":"","url":"https://api.github.com/users/iamstarkov","html_url":"https://github.com/iamstarkov","followers_url":"https://api.github.com/users/iamstarkov/followers","following_url":"https://api.github.com/users/iamstarkov/following{/other_user}","gists_url":"https://api.github.com/users/iamstarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/iamstarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamstarkov/subscriptions","organizations_url":"https://api.github.com/users/iamstarkov/orgs","repos_url":"https://api.github.com/users/iamstarkov/repos","events_url":"https://api.github.com/users/iamstarkov/events{/privacy}","received_events_url":"https://api.github.com/users/iamstarkov/received_events","type":"User","site_admin":false},"repo":{"id":34563769,"name":"get-tweets","full_name":"iamstarkov/get-tweets","owner":{"login":"iamstarkov","id":559321,"avatar_url":"https://avatars.githubusercontent.com/u/559321?v=3","gravatar_id":"","url":"https://api.github.com/users/iamstarkov","html_url":"https://github.com/iamstarkov","followers_url":"https://api.github.com/users/iamstarkov/followers","following_url":"https://api.github.com/users/iamstarkov/following{/other_user}","gists_url":"https://api.github.com/users/iamstarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/iamstarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamstarkov/subscriptions","organizations_url":"https://api.github.com/users/iamstarkov/orgs","repos_url":"https://api.github.com/users/iamstarkov/repos","events_url":"https://api.github.com/users/iamstarkov/events{/privacy}","received_events_url":"https://api.github.com/users/iamstarkov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iamstarkov/get-tweets","description":"Get all tweets for target username","fork":false,"url":"https://api.github.com/repos/iamstarkov/get-tweets","forks_url":"https://api.github.com/repos/iamstarkov/get-tweets/forks","keys_url":"https://api.github.com/repos/iamstarkov/get-tweets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iamstarkov/get-tweets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iamstarkov/get-tweets/teams","hooks_url":"https://api.github.com/repos/iamstarkov/get-tweets/hooks","issue_events_url":"https://api.github.com/repos/iamstarkov/get-tweets/issues/events{/number}","events_url":"https://api.github.com/repos/iamstarkov/get-tweets/events","assignees_url":"https://api.github.com/repos/iamstarkov/get-tweets/assignees{/user}","branches_url":"https://api.github.com/repos/iamstarkov/get-tweets/branches{/branch}","tags_url":"https://api.github.com/repos/iamstarkov/get-tweets/tags","blobs_url":"https://api.github.com/repos/iamstarkov/get-tweets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iamstarkov/get-tweets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iamstarkov/get-tweets/git/refs{/sha}","trees_url":"https://api.github.com/repos/iamstarkov/get-tweets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iamstarkov/get-tweets/statuses/{sha}","languages_url":"https://api.github.com/repos/iamstarkov/get-tweets/languages","stargazers_url":"https://api.github.com/repos/iamstarkov/get-tweets/stargazers","contributors_url":"https://api.github.com/repos/iamstarkov/get-tweets/contributors","subscribers_url":"https://api.github.com/repos/iamstarkov/get-tweets/subscribers","subscription_url":"https://api.github.com/repos/iamstarkov/get-tweets/subscription","commits_url":"https://api.github.com/repos/iamstarkov/get-tweets/commits{/sha}","git_commits_url":"https://api.github.com/repos/iamstarkov/get-tweets/git/commits{/sha}","comments_url":"https://api.github.com/repos/iamstarkov/get-tweets/comments{/number}","issue_comment_url":"https://api.github.com/repos/iamstarkov/get-tweets/issues/comments{/number}","contents_url":"https://api.github.com/repos/iamstarkov/get-tweets/contents/{+path}","compare_url":"https://api.github.com/repos/iamstarkov/get-tweets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iamstarkov/get-tweets/merges","archive_url":"https://api.github.com/repos/iamstarkov/get-tweets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iamstarkov/get-tweets/downloads","issues_url":"https://api.github.com/repos/iamstarkov/get-tweets/issues{/number}","pulls_url":"https://api.github.com/repos/iamstarkov/get-tweets/pulls{/number}","milestones_url":"https://api.github.com/repos/iamstarkov/get-tweets/milestones{/number}","notifications_url":"https://api.github.com/repos/iamstarkov/get-tweets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iamstarkov/get-tweets/labels{/name}","releases_url":"https://api.github.com/repos/iamstarkov/get-tweets/releases{/id}","created_at":"2015-04-25T10:04:47Z","updated_at":"2015-09-25T10:11:21Z","pushed_at":"2015-09-25T09:09:17Z","git_url":"git://github.com/iamstarkov/get-tweets.git","ssh_url":"git@github.com:iamstarkov/get-tweets.git","clone_url":"https://github.com/iamstarkov/get-tweets.git","svn_url":"https://github.com/iamstarkov/get-tweets","homepage":"","size":297,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":5,"default_branch":"master"}},"base":{"label":"iamstarkov:master","ref":"master","sha":"70243ac22feb96a9c50023603db5094694392928","user":{"login":"iamstarkov","id":559321,"avatar_url":"https://avatars.githubusercontent.com/u/559321?v=3","gravatar_id":"","url":"https://api.github.com/users/iamstarkov","html_url":"https://github.com/iamstarkov","followers_url":"https://api.github.com/users/iamstarkov/followers","following_url":"https://api.github.com/users/iamstarkov/following{/other_user}","gists_url":"https://api.github.com/users/iamstarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/iamstarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamstarkov/subscriptions","organizations_url":"https://api.github.com/users/iamstarkov/orgs","repos_url":"https://api.github.com/users/iamstarkov/repos","events_url":"https://api.github.com/users/iamstarkov/events{/privacy}","received_events_url":"https://api.github.com/users/iamstarkov/received_events","type":"User","site_admin":false},"repo":{"id":34563769,"name":"get-tweets","full_name":"iamstarkov/get-tweets","owner":{"login":"iamstarkov","id":559321,"avatar_url":"https://avatars.githubusercontent.com/u/559321?v=3","gravatar_id":"","url":"https://api.github.com/users/iamstarkov","html_url":"https://github.com/iamstarkov","followers_url":"https://api.github.com/users/iamstarkov/followers","following_url":"https://api.github.com/users/iamstarkov/following{/other_user}","gists_url":"https://api.github.com/users/iamstarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/iamstarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamstarkov/subscriptions","organizations_url":"https://api.github.com/users/iamstarkov/orgs","repos_url":"https://api.github.com/users/iamstarkov/repos","events_url":"https://api.github.com/users/iamstarkov/events{/privacy}","received_events_url":"https://api.github.com/users/iamstarkov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iamstarkov/get-tweets","description":"Get all tweets for target username","fork":false,"url":"https://api.github.com/repos/iamstarkov/get-tweets","forks_url":"https://api.github.com/repos/iamstarkov/get-tweets/forks","keys_url":"https://api.github.com/repos/iamstarkov/get-tweets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iamstarkov/get-tweets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iamstarkov/get-tweets/teams","hooks_url":"https://api.github.com/repos/iamstarkov/get-tweets/hooks","issue_events_url":"https://api.github.com/repos/iamstarkov/get-tweets/issues/events{/number}","events_url":"https://api.github.com/repos/iamstarkov/get-tweets/events","assignees_url":"https://api.github.com/repos/iamstarkov/get-tweets/assignees{/user}","branches_url":"https://api.github.com/repos/iamstarkov/get-tweets/branches{/branch}","tags_url":"https://api.github.com/repos/iamstarkov/get-tweets/tags","blobs_url":"https://api.github.com/repos/iamstarkov/get-tweets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iamstarkov/get-tweets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iamstarkov/get-tweets/git/refs{/sha}","trees_url":"https://api.github.com/repos/iamstarkov/get-tweets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iamstarkov/get-tweets/statuses/{sha}","languages_url":"https://api.github.com/repos/iamstarkov/get-tweets/languages","stargazers_url":"https://api.github.com/repos/iamstarkov/get-tweets/stargazers","contributors_url":"https://api.github.com/repos/iamstarkov/get-tweets/contributors","subscribers_url":"https://api.github.com/repos/iamstarkov/get-tweets/subscribers","subscription_url":"https://api.github.com/repos/iamstarkov/get-tweets/subscription","commits_url":"https://api.github.com/repos/iamstarkov/get-tweets/commits{/sha}","git_commits_url":"https://api.github.com/repos/iamstarkov/get-tweets/git/commits{/sha}","comments_url":"https://api.github.com/repos/iamstarkov/get-tweets/comments{/number}","issue_comment_url":"https://api.github.com/repos/iamstarkov/get-tweets/issues/comments{/number}","contents_url":"https://api.github.com/repos/iamstarkov/get-tweets/contents/{+path}","compare_url":"https://api.github.com/repos/iamstarkov/get-tweets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iamstarkov/get-tweets/merges","archive_url":"https://api.github.com/repos/iamstarkov/get-tweets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iamstarkov/get-tweets/downloads","issues_url":"https://api.github.com/repos/iamstarkov/get-tweets/issues{/number}","pulls_url":"https://api.github.com/repos/iamstarkov/get-tweets/pulls{/number}","milestones_url":"https://api.github.com/repos/iamstarkov/get-tweets/milestones{/number}","notifications_url":"https://api.github.com/repos/iamstarkov/get-tweets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iamstarkov/get-tweets/labels{/name}","releases_url":"https://api.github.com/repos/iamstarkov/get-tweets/releases{/id}","created_at":"2015-04-25T10:04:47Z","updated_at":"2015-09-25T10:11:21Z","pushed_at":"2015-09-25T09:09:17Z","git_url":"git://github.com/iamstarkov/get-tweets.git","ssh_url":"git@github.com:iamstarkov/get-tweets.git","clone_url":"https://github.com/iamstarkov/get-tweets.git","svn_url":"https://github.com/iamstarkov/get-tweets","homepage":"","size":297,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iamstarkov/get-tweets/pulls/11"},"html":{"href":"https://github.com/iamstarkov/get-tweets/pull/11"},"issue":{"href":"https://api.github.com/repos/iamstarkov/get-tweets/issues/11"},"comments":{"href":"https://api.github.com/repos/iamstarkov/get-tweets/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/iamstarkov/get-tweets/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/iamstarkov/get-tweets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iamstarkov/get-tweets/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/iamstarkov/get-tweets/statuses/64407268c215e8b3e3ed665ac9e5ad83042a68a2"}}}}