{"action":"created","comment":{"url":"https://api.github.com/repos/victorg1991/apio-consumer-js/pulls/comments/194989912","pull_request_review_id":128266613,"id":194989912,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDk4OTkxMg==","diff_hunk":"@@ -0,0 +1,45 @@\n+import fetch from 'cross-fetch';\n+\n+/**\n+ * HttpClient\n+ */\n+export default class HttpClient {\n+\t/**\n+\t * Perform a GET http request\n+\t * @param {String} url\n+\t * @param {Object} headers\n+\t * @param {Object} parameters\n+\t * @return {Object}\n+\t */\n+\tasync get(url, headers, parameters) {\n+\t\tif (parameters) {\n+\t\t\turl += this.getQueryString(parameters);\n+\t\t}\n+\n+\t\tconst response = await fetch(url, {\n+\t\t\theaders: headers,","path":"src/http/client.js","position":20,"original_position":20,"commit_id":"60cf8536d79a6c49f39487097ab696e74110a1ac","original_commit_id":"70a8cd60a2298154474c6f534883122d04d611c2","user":{"login":"nhpatt","id":340653,"node_id":"MDQ6VXNlcjM0MDY1Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/340653?v=4","gravatar_id":"","url":"https://api.github.com/users/nhpatt","html_url":"https://github.com/nhpatt","followers_url":"https://api.github.com/users/nhpatt/followers","following_url":"https://api.github.com/users/nhpatt/following{/other_user}","gists_url":"https://api.github.com/users/nhpatt/gists{/gist_id}","starred_url":"https://api.github.com/users/nhpatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhpatt/subscriptions","organizations_url":"https://api.github.com/users/nhpatt/orgs","repos_url":"https://api.github.com/users/nhpatt/repos","events_url":"https://api.github.com/users/nhpatt/events{/privacy}","received_events_url":"https://api.github.com/users/nhpatt/received_events","type":"User","site_admin":false},"body":"So, you can use {headers}, right?","created_at":"2018-06-13T08:08:54Z","updated_at":"2018-06-13T08:08:54Z","html_url":"https://github.com/victorg1991/apio-consumer-js/pull/1#discussion_r194989912","pull_request_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/victorg1991/apio-consumer-js/pulls/comments/194989912"},"html":{"href":"https://github.com/victorg1991/apio-consumer-js/pull/1#discussion_r194989912"},"pull_request":{"href":"https://api.github.com/repos/victorg1991/apio-consumer-js/pulls/1"}},"in_reply_to_id":194973705},"pull_request":{"url":"https://api.github.com/repos/victorg1991/apio-consumer-js/pulls/1","id":194319670,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0MzE5Njcw","html_url":"https://github.com/victorg1991/apio-consumer-js/pull/1","diff_url":"https://github.com/victorg1991/apio-consumer-js/pull/1.diff","patch_url":"https://github.com/victorg1991/apio-consumer-js/pull/1.patch","issue_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/issues/1","number":1,"state":"open","locked":false,"title":"Apio Consumer","user":{"login":"victorg1991","id":11654230,"node_id":"MDQ6VXNlcjExNjU0MjMw","avatar_url":"https://avatars2.githubusercontent.com/u/11654230?v=4","gravatar_id":"","url":"https://api.github.com/users/victorg1991","html_url":"https://github.com/victorg1991","followers_url":"https://api.github.com/users/victorg1991/followers","following_url":"https://api.github.com/users/victorg1991/following{/other_user}","gists_url":"https://api.github.com/users/victorg1991/gists{/gist_id}","starred_url":"https://api.github.com/users/victorg1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorg1991/subscriptions","organizations_url":"https://api.github.com/users/victorg1991/orgs","repos_url":"https://api.github.com/users/victorg1991/repos","events_url":"https://api.github.com/users/victorg1991/events{/privacy}","received_events_url":"https://api.github.com/users/victorg1991/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-12T15:25:59Z","updated_at":"2018-06-13T08:08:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"27e947ea9c7e91c56a92fa0934074144ebf111d4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/pulls/1/commits","review_comments_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/pulls/1/comments","review_comment_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/issues/1/comments","statuses_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/statuses/60cf8536d79a6c49f39487097ab696e74110a1ac","head":{"label":"victorg1991:consumer","ref":"consumer","sha":"60cf8536d79a6c49f39487097ab696e74110a1ac","user":{"login":"victorg1991","id":11654230,"node_id":"MDQ6VXNlcjExNjU0MjMw","avatar_url":"https://avatars2.githubusercontent.com/u/11654230?v=4","gravatar_id":"","url":"https://api.github.com/users/victorg1991","html_url":"https://github.com/victorg1991","followers_url":"https://api.github.com/users/victorg1991/followers","following_url":"https://api.github.com/users/victorg1991/following{/other_user}","gists_url":"https://api.github.com/users/victorg1991/gists{/gist_id}","starred_url":"https://api.github.com/users/victorg1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorg1991/subscriptions","organizations_url":"https://api.github.com/users/victorg1991/orgs","repos_url":"https://api.github.com/users/victorg1991/repos","events_url":"https://api.github.com/users/victorg1991/events{/privacy}","received_events_url":"https://api.github.com/users/victorg1991/received_events","type":"User","site_admin":false},"repo":{"id":136137154,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYxMzcxNTQ=","name":"apio-consumer-js","full_name":"victorg1991/apio-consumer-js","owner":{"login":"victorg1991","id":11654230,"node_id":"MDQ6VXNlcjExNjU0MjMw","avatar_url":"https://avatars2.githubusercontent.com/u/11654230?v=4","gravatar_id":"","url":"https://api.github.com/users/victorg1991","html_url":"https://github.com/victorg1991","followers_url":"https://api.github.com/users/victorg1991/followers","following_url":"https://api.github.com/users/victorg1991/following{/other_user}","gists_url":"https://api.github.com/users/victorg1991/gists{/gist_id}","starred_url":"https://api.github.com/users/victorg1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorg1991/subscriptions","organizations_url":"https://api.github.com/users/victorg1991/orgs","repos_url":"https://api.github.com/users/victorg1991/repos","events_url":"https://api.github.com/users/victorg1991/events{/privacy}","received_events_url":"https://api.github.com/users/victorg1991/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/victorg1991/apio-consumer-js","description":null,"fork":false,"url":"https://api.github.com/repos/victorg1991/apio-consumer-js","forks_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/forks","keys_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/teams","hooks_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/hooks","issue_events_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/issues/events{/number}","events_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/events","assignees_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/assignees{/user}","branches_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/branches{/branch}","tags_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/tags","blobs_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/statuses/{sha}","languages_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/languages","stargazers_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/stargazers","contributors_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/contributors","subscribers_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/subscribers","subscription_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/subscription","commits_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/contents/{+path}","compare_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/merges","archive_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/downloads","issues_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/issues{/number}","pulls_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/pulls{/number}","milestones_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/milestones{/number}","notifications_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/labels{/name}","releases_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/releases{/id}","deployments_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/deployments","created_at":"2018-06-05T07:25:24Z","updated_at":"2018-06-12T15:25:21Z","pushed_at":"2018-06-13T08:07:21Z","git_url":"git://github.com/victorg1991/apio-consumer-js.git","ssh_url":"git@github.com:victorg1991/apio-consumer-js.git","clone_url":"https://github.com/victorg1991/apio-consumer-js.git","svn_url":"https://github.com/victorg1991/apio-consumer-js","homepage":null,"size":97,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","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":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"victorg1991:master","ref":"master","sha":"ff649777015912afc0a76fa2812456d22db633cb","user":{"login":"victorg1991","id":11654230,"node_id":"MDQ6VXNlcjExNjU0MjMw","avatar_url":"https://avatars2.githubusercontent.com/u/11654230?v=4","gravatar_id":"","url":"https://api.github.com/users/victorg1991","html_url":"https://github.com/victorg1991","followers_url":"https://api.github.com/users/victorg1991/followers","following_url":"https://api.github.com/users/victorg1991/following{/other_user}","gists_url":"https://api.github.com/users/victorg1991/gists{/gist_id}","starred_url":"https://api.github.com/users/victorg1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorg1991/subscriptions","organizations_url":"https://api.github.com/users/victorg1991/orgs","repos_url":"https://api.github.com/users/victorg1991/repos","events_url":"https://api.github.com/users/victorg1991/events{/privacy}","received_events_url":"https://api.github.com/users/victorg1991/received_events","type":"User","site_admin":false},"repo":{"id":136137154,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYxMzcxNTQ=","name":"apio-consumer-js","full_name":"victorg1991/apio-consumer-js","owner":{"login":"victorg1991","id":11654230,"node_id":"MDQ6VXNlcjExNjU0MjMw","avatar_url":"https://avatars2.githubusercontent.com/u/11654230?v=4","gravatar_id":"","url":"https://api.github.com/users/victorg1991","html_url":"https://github.com/victorg1991","followers_url":"https://api.github.com/users/victorg1991/followers","following_url":"https://api.github.com/users/victorg1991/following{/other_user}","gists_url":"https://api.github.com/users/victorg1991/gists{/gist_id}","starred_url":"https://api.github.com/users/victorg1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorg1991/subscriptions","organizations_url":"https://api.github.com/users/victorg1991/orgs","repos_url":"https://api.github.com/users/victorg1991/repos","events_url":"https://api.github.com/users/victorg1991/events{/privacy}","received_events_url":"https://api.github.com/users/victorg1991/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/victorg1991/apio-consumer-js","description":null,"fork":false,"url":"https://api.github.com/repos/victorg1991/apio-consumer-js","forks_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/forks","keys_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/teams","hooks_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/hooks","issue_events_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/issues/events{/number}","events_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/events","assignees_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/assignees{/user}","branches_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/branches{/branch}","tags_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/tags","blobs_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/statuses/{sha}","languages_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/languages","stargazers_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/stargazers","contributors_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/contributors","subscribers_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/subscribers","subscription_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/subscription","commits_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/contents/{+path}","compare_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/merges","archive_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/downloads","issues_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/issues{/number}","pulls_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/pulls{/number}","milestones_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/milestones{/number}","notifications_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/labels{/name}","releases_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/releases{/id}","deployments_url":"https://api.github.com/repos/victorg1991/apio-consumer-js/deployments","created_at":"2018-06-05T07:25:24Z","updated_at":"2018-06-12T15:25:21Z","pushed_at":"2018-06-13T08:07:21Z","git_url":"git://github.com/victorg1991/apio-consumer-js.git","ssh_url":"git@github.com:victorg1991/apio-consumer-js.git","clone_url":"https://github.com/victorg1991/apio-consumer-js.git","svn_url":"https://github.com/victorg1991/apio-consumer-js","homepage":null,"size":97,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","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":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/victorg1991/apio-consumer-js/pulls/1"},"html":{"href":"https://github.com/victorg1991/apio-consumer-js/pull/1"},"issue":{"href":"https://api.github.com/repos/victorg1991/apio-consumer-js/issues/1"},"comments":{"href":"https://api.github.com/repos/victorg1991/apio-consumer-js/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/victorg1991/apio-consumer-js/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/victorg1991/apio-consumer-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/victorg1991/apio-consumer-js/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/victorg1991/apio-consumer-js/statuses/60cf8536d79a6c49f39487097ab696e74110a1ac"}},"author_association":"OWNER"}}
{"actor":{"display_login":"nhpatt"}}