{"action":"created","comment":{"url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/pulls/comments/176428432","pull_request_review_id":106126852,"id":176428432,"diff_hunk":"@@ -0,0 +1,30 @@\n+/*\n+* Консольный переводчик на API Yandex\n+*/\n+\n+const request = require('request');\n+const cheerio = require('cheerio');\n+\n+var uri = 'https://translate.yandex.net/api/v1.5/tr/translate',\n+    apiKey = 'trnsl.1.1.20180321T190805Z.b54b4c498566c1d9.0ec160585c76ac9c22cae1656cf4bd820e0909d8',\n+    ruText = 'Простой текст для перевода',\n+    lang = 'ru-en',\n+    format = 'plain';\n+\n+request({\n+\n+    method:'POST',\n+    uri:uri +'?key='+ apiKey +'&text='+ ruText +'&lang='+ lang +'&format='+ format,","path":"translater.js","position":17,"original_position":17,"commit_id":"22a305e982758fc8678b79e6c98c6ca1d314054f","original_commit_id":"22a305e982758fc8678b79e6c98c6ca1d314054f","user":{"login":"ubcent","id":4948124,"avatar_url":"https://avatars1.githubusercontent.com/u/4948124?v=4","gravatar_id":"","url":"https://api.github.com/users/ubcent","html_url":"https://github.com/ubcent","followers_url":"https://api.github.com/users/ubcent/followers","following_url":"https://api.github.com/users/ubcent/following{/other_user}","gists_url":"https://api.github.com/users/ubcent/gists{/gist_id}","starred_url":"https://api.github.com/users/ubcent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubcent/subscriptions","organizations_url":"https://api.github.com/users/ubcent/orgs","repos_url":"https://api.github.com/users/ubcent/repos","events_url":"https://api.github.com/users/ubcent/events{/privacy}","received_events_url":"https://api.github.com/users/ubcent/received_events","type":"User","site_admin":false},"body":"Посмотрите встроенный модуль url: с помощью него можно аккуратнее querystring собирать","created_at":"2018-03-22T13:58:12Z","updated_at":"2018-03-22T13:58:25Z","html_url":"https://github.com/EathbornBot/NodeJS_Learn/pull/3#discussion_r176428432","pull_request_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/pulls/comments/176428432"},"html":{"href":"https://github.com/EathbornBot/NodeJS_Learn/pull/3#discussion_r176428432"},"pull_request":{"href":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/pulls/3","id":176709756,"html_url":"https://github.com/EathbornBot/NodeJS_Learn/pull/3","diff_url":"https://github.com/EathbornBot/NodeJS_Learn/pull/3.diff","patch_url":"https://github.com/EathbornBot/NodeJS_Learn/pull/3.patch","issue_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/issues/3","number":3,"state":"open","locked":false,"title":"Less3","user":{"login":"EathbornBot","id":26069683,"avatar_url":"https://avatars2.githubusercontent.com/u/26069683?v=4","gravatar_id":"","url":"https://api.github.com/users/EathbornBot","html_url":"https://github.com/EathbornBot","followers_url":"https://api.github.com/users/EathbornBot/followers","following_url":"https://api.github.com/users/EathbornBot/following{/other_user}","gists_url":"https://api.github.com/users/EathbornBot/gists{/gist_id}","starred_url":"https://api.github.com/users/EathbornBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EathbornBot/subscriptions","organizations_url":"https://api.github.com/users/EathbornBot/orgs","repos_url":"https://api.github.com/users/EathbornBot/repos","events_url":"https://api.github.com/users/EathbornBot/events{/privacy}","received_events_url":"https://api.github.com/users/EathbornBot/received_events","type":"User","site_admin":false},"body":"В файле index.js вывод последней новости с сайта tproger.ru.\r\nв файле translater.js переводчик на API Яндекса.","created_at":"2018-03-22T08:52:11Z","updated_at":"2018-03-22T13:58:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77dee6ec673a3ebeedce7d0efc2ecfef01123e8e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/pulls/3/commits","review_comments_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/pulls/3/comments","review_comment_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/issues/3/comments","statuses_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/statuses/22a305e982758fc8678b79e6c98c6ca1d314054f","head":{"label":"EathbornBot:less3","ref":"less3","sha":"22a305e982758fc8678b79e6c98c6ca1d314054f","user":{"login":"EathbornBot","id":26069683,"avatar_url":"https://avatars2.githubusercontent.com/u/26069683?v=4","gravatar_id":"","url":"https://api.github.com/users/EathbornBot","html_url":"https://github.com/EathbornBot","followers_url":"https://api.github.com/users/EathbornBot/followers","following_url":"https://api.github.com/users/EathbornBot/following{/other_user}","gists_url":"https://api.github.com/users/EathbornBot/gists{/gist_id}","starred_url":"https://api.github.com/users/EathbornBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EathbornBot/subscriptions","organizations_url":"https://api.github.com/users/EathbornBot/orgs","repos_url":"https://api.github.com/users/EathbornBot/repos","events_url":"https://api.github.com/users/EathbornBot/events{/privacy}","received_events_url":"https://api.github.com/users/EathbornBot/received_events","type":"User","site_admin":false},"repo":{"id":125155058,"name":"NodeJS_Learn","full_name":"EathbornBot/NodeJS_Learn","owner":{"login":"EathbornBot","id":26069683,"avatar_url":"https://avatars2.githubusercontent.com/u/26069683?v=4","gravatar_id":"","url":"https://api.github.com/users/EathbornBot","html_url":"https://github.com/EathbornBot","followers_url":"https://api.github.com/users/EathbornBot/followers","following_url":"https://api.github.com/users/EathbornBot/following{/other_user}","gists_url":"https://api.github.com/users/EathbornBot/gists{/gist_id}","starred_url":"https://api.github.com/users/EathbornBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EathbornBot/subscriptions","organizations_url":"https://api.github.com/users/EathbornBot/orgs","repos_url":"https://api.github.com/users/EathbornBot/repos","events_url":"https://api.github.com/users/EathbornBot/events{/privacy}","received_events_url":"https://api.github.com/users/EathbornBot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EathbornBot/NodeJS_Learn","description":null,"fork":false,"url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn","forks_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/forks","keys_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/teams","hooks_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/hooks","issue_events_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/issues/events{/number}","events_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/events","assignees_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/assignees{/user}","branches_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/branches{/branch}","tags_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/tags","blobs_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/statuses/{sha}","languages_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/languages","stargazers_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/stargazers","contributors_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/contributors","subscribers_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/subscribers","subscription_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/subscription","commits_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/contents/{+path}","compare_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/merges","archive_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/downloads","issues_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/issues{/number}","pulls_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/pulls{/number}","milestones_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/milestones{/number}","notifications_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/labels{/name}","releases_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/releases{/id}","deployments_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/deployments","created_at":"2018-03-14T04:27:14Z","updated_at":"2018-03-14T05:03:07Z","pushed_at":"2018-03-22T08:52:12Z","git_url":"git://github.com/EathbornBot/NodeJS_Learn.git","ssh_url":"git@github.com:EathbornBot/NodeJS_Learn.git","clone_url":"https://github.com/EathbornBot/NodeJS_Learn.git","svn_url":"https://github.com/EathbornBot/NodeJS_Learn","homepage":null,"size":20,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"EathbornBot:master","ref":"master","sha":"c7cbfcc906ff5a1cef4212822a51313cac4bc042","user":{"login":"EathbornBot","id":26069683,"avatar_url":"https://avatars2.githubusercontent.com/u/26069683?v=4","gravatar_id":"","url":"https://api.github.com/users/EathbornBot","html_url":"https://github.com/EathbornBot","followers_url":"https://api.github.com/users/EathbornBot/followers","following_url":"https://api.github.com/users/EathbornBot/following{/other_user}","gists_url":"https://api.github.com/users/EathbornBot/gists{/gist_id}","starred_url":"https://api.github.com/users/EathbornBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EathbornBot/subscriptions","organizations_url":"https://api.github.com/users/EathbornBot/orgs","repos_url":"https://api.github.com/users/EathbornBot/repos","events_url":"https://api.github.com/users/EathbornBot/events{/privacy}","received_events_url":"https://api.github.com/users/EathbornBot/received_events","type":"User","site_admin":false},"repo":{"id":125155058,"name":"NodeJS_Learn","full_name":"EathbornBot/NodeJS_Learn","owner":{"login":"EathbornBot","id":26069683,"avatar_url":"https://avatars2.githubusercontent.com/u/26069683?v=4","gravatar_id":"","url":"https://api.github.com/users/EathbornBot","html_url":"https://github.com/EathbornBot","followers_url":"https://api.github.com/users/EathbornBot/followers","following_url":"https://api.github.com/users/EathbornBot/following{/other_user}","gists_url":"https://api.github.com/users/EathbornBot/gists{/gist_id}","starred_url":"https://api.github.com/users/EathbornBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EathbornBot/subscriptions","organizations_url":"https://api.github.com/users/EathbornBot/orgs","repos_url":"https://api.github.com/users/EathbornBot/repos","events_url":"https://api.github.com/users/EathbornBot/events{/privacy}","received_events_url":"https://api.github.com/users/EathbornBot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EathbornBot/NodeJS_Learn","description":null,"fork":false,"url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn","forks_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/forks","keys_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/teams","hooks_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/hooks","issue_events_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/issues/events{/number}","events_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/events","assignees_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/assignees{/user}","branches_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/branches{/branch}","tags_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/tags","blobs_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/git/refs{/sha}","trees_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/statuses/{sha}","languages_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/languages","stargazers_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/stargazers","contributors_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/contributors","subscribers_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/subscribers","subscription_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/subscription","commits_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/commits{/sha}","git_commits_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/git/commits{/sha}","comments_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/comments{/number}","issue_comment_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/issues/comments{/number}","contents_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/contents/{+path}","compare_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/merges","archive_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/downloads","issues_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/issues{/number}","pulls_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/pulls{/number}","milestones_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/milestones{/number}","notifications_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/labels{/name}","releases_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/releases{/id}","deployments_url":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/deployments","created_at":"2018-03-14T04:27:14Z","updated_at":"2018-03-14T05:03:07Z","pushed_at":"2018-03-22T08:52:12Z","git_url":"git://github.com/EathbornBot/NodeJS_Learn.git","ssh_url":"git@github.com:EathbornBot/NodeJS_Learn.git","clone_url":"https://github.com/EathbornBot/NodeJS_Learn.git","svn_url":"https://github.com/EathbornBot/NodeJS_Learn","homepage":null,"size":20,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/pulls/3"},"html":{"href":"https://github.com/EathbornBot/NodeJS_Learn/pull/3"},"issue":{"href":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/issues/3"},"comments":{"href":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/EathbornBot/NodeJS_Learn/statuses/22a305e982758fc8678b79e6c98c6ca1d314054f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"ubcent"}}