{"action":"opened","number":13,"pull_request":{"url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/pulls/13","id":121098686,"html_url":"https://github.com/nomadeducation/batch-notifications-node/pull/13","diff_url":"https://github.com/nomadeducation/batch-notifications-node/pull/13.diff","patch_url":"https://github.com/nomadeducation/batch-notifications-node/pull/13.patch","issue_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/issues/13","number":13,"state":"open","locked":false,"title":"Refactor/use instance instead of static","user":{"login":"eilgin","id":1125661,"avatar_url":"https://avatars3.githubusercontent.com/u/1125661?v=3","gravatar_id":"","url":"https://api.github.com/users/eilgin","html_url":"https://github.com/eilgin","followers_url":"https://api.github.com/users/eilgin/followers","following_url":"https://api.github.com/users/eilgin/following{/other_user}","gists_url":"https://api.github.com/users/eilgin/gists{/gist_id}","starred_url":"https://api.github.com/users/eilgin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eilgin/subscriptions","organizations_url":"https://api.github.com/users/eilgin/orgs","repos_url":"https://api.github.com/users/eilgin/repos","events_url":"https://api.github.com/users/eilgin/events{/privacy}","received_events_url":"https://api.github.com/users/eilgin/received_events","type":"User","site_admin":false},"body":"### Purpose\r\nWe were having issues with the fact that we're calling `batch` multiple times. But using the same `axios` instance (with the baseURL unchanged) was provoking an error : each time `batch` was called, it sends the request to the first given \"API Key\" !\r\n\r\n<!-- uncomment this section if it's relevant !\r\n### Learning\r\n_Describe the research stage_\r\n\r\n_Links to blog posts, patterns, libraries or addons used to solve this problem_\r\n-->\r\n\r\n### Checklist\r\n<!-- Mark these as checked by replacing [ ] with [x] -->\r\n- [ ] Configuration changes\r\n- [ ] Added tests\r\n\r\n<!-- To close resolved issues, add \"Closes #ISSUE_NUMBER\" -->\r\n\r\n<!-- If this PR depends on a previous one, add \"Depends on #PR_NUMBER\" + select label `status:on-hold` -->\r\n","created_at":"2017-05-17T16:20:37Z","updated_at":"2017-05-17T16:20:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/pulls/13/commits","review_comments_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/pulls/13/comments","review_comment_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/issues/13/comments","statuses_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/statuses/b87736e969a648ddcf28ca9c97f5dae8f4d3da88","head":{"label":"nomadeducation:refactor/use-instance-instead-of-static","ref":"refactor/use-instance-instead-of-static","sha":"b87736e969a648ddcf28ca9c97f5dae8f4d3da88","user":{"login":"nomadeducation","id":24418799,"avatar_url":"https://avatars1.githubusercontent.com/u/24418799?v=3","gravatar_id":"","url":"https://api.github.com/users/nomadeducation","html_url":"https://github.com/nomadeducation","followers_url":"https://api.github.com/users/nomadeducation/followers","following_url":"https://api.github.com/users/nomadeducation/following{/other_user}","gists_url":"https://api.github.com/users/nomadeducation/gists{/gist_id}","starred_url":"https://api.github.com/users/nomadeducation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomadeducation/subscriptions","organizations_url":"https://api.github.com/users/nomadeducation/orgs","repos_url":"https://api.github.com/users/nomadeducation/repos","events_url":"https://api.github.com/users/nomadeducation/events{/privacy}","received_events_url":"https://api.github.com/users/nomadeducation/received_events","type":"Organization","site_admin":false},"repo":{"id":89497346,"name":"batch-notifications-node","full_name":"nomadeducation/batch-notifications-node","owner":{"login":"nomadeducation","id":24418799,"avatar_url":"https://avatars1.githubusercontent.com/u/24418799?v=3","gravatar_id":"","url":"https://api.github.com/users/nomadeducation","html_url":"https://github.com/nomadeducation","followers_url":"https://api.github.com/users/nomadeducation/followers","following_url":"https://api.github.com/users/nomadeducation/following{/other_user}","gists_url":"https://api.github.com/users/nomadeducation/gists{/gist_id}","starred_url":"https://api.github.com/users/nomadeducation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomadeducation/subscriptions","organizations_url":"https://api.github.com/users/nomadeducation/orgs","repos_url":"https://api.github.com/users/nomadeducation/repos","events_url":"https://api.github.com/users/nomadeducation/events{/privacy}","received_events_url":"https://api.github.com/users/nomadeducation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nomadeducation/batch-notifications-node","description":"NodeJS client wrapper for the Batch.com notifications server API","fork":false,"url":"https://api.github.com/repos/nomadeducation/batch-notifications-node","forks_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/forks","keys_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/teams","hooks_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/hooks","issue_events_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/issues/events{/number}","events_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/events","assignees_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/assignees{/user}","branches_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/branches{/branch}","tags_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/tags","blobs_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/statuses/{sha}","languages_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/languages","stargazers_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/stargazers","contributors_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/contributors","subscribers_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/subscribers","subscription_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/subscription","commits_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/contents/{+path}","compare_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/merges","archive_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/downloads","issues_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/issues{/number}","pulls_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/pulls{/number}","milestones_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/milestones{/number}","notifications_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/labels{/name}","releases_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/releases{/id}","deployments_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/deployments","created_at":"2017-04-26T15:29:38Z","updated_at":"2017-05-11T09:30:16Z","pushed_at":"2017-05-17T16:17:47Z","git_url":"git://github.com/nomadeducation/batch-notifications-node.git","ssh_url":"git@github.com:nomadeducation/batch-notifications-node.git","clone_url":"https://github.com/nomadeducation/batch-notifications-node.git","svn_url":"https://github.com/nomadeducation/batch-notifications-node","homepage":"","size":36,"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,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"base":{"label":"nomadeducation:master","ref":"master","sha":"57524ae0895112463ab26e78230f7abe06f9a5d9","user":{"login":"nomadeducation","id":24418799,"avatar_url":"https://avatars1.githubusercontent.com/u/24418799?v=3","gravatar_id":"","url":"https://api.github.com/users/nomadeducation","html_url":"https://github.com/nomadeducation","followers_url":"https://api.github.com/users/nomadeducation/followers","following_url":"https://api.github.com/users/nomadeducation/following{/other_user}","gists_url":"https://api.github.com/users/nomadeducation/gists{/gist_id}","starred_url":"https://api.github.com/users/nomadeducation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomadeducation/subscriptions","organizations_url":"https://api.github.com/users/nomadeducation/orgs","repos_url":"https://api.github.com/users/nomadeducation/repos","events_url":"https://api.github.com/users/nomadeducation/events{/privacy}","received_events_url":"https://api.github.com/users/nomadeducation/received_events","type":"Organization","site_admin":false},"repo":{"id":89497346,"name":"batch-notifications-node","full_name":"nomadeducation/batch-notifications-node","owner":{"login":"nomadeducation","id":24418799,"avatar_url":"https://avatars1.githubusercontent.com/u/24418799?v=3","gravatar_id":"","url":"https://api.github.com/users/nomadeducation","html_url":"https://github.com/nomadeducation","followers_url":"https://api.github.com/users/nomadeducation/followers","following_url":"https://api.github.com/users/nomadeducation/following{/other_user}","gists_url":"https://api.github.com/users/nomadeducation/gists{/gist_id}","starred_url":"https://api.github.com/users/nomadeducation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomadeducation/subscriptions","organizations_url":"https://api.github.com/users/nomadeducation/orgs","repos_url":"https://api.github.com/users/nomadeducation/repos","events_url":"https://api.github.com/users/nomadeducation/events{/privacy}","received_events_url":"https://api.github.com/users/nomadeducation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nomadeducation/batch-notifications-node","description":"NodeJS client wrapper for the Batch.com notifications server API","fork":false,"url":"https://api.github.com/repos/nomadeducation/batch-notifications-node","forks_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/forks","keys_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/teams","hooks_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/hooks","issue_events_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/issues/events{/number}","events_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/events","assignees_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/assignees{/user}","branches_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/branches{/branch}","tags_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/tags","blobs_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/statuses/{sha}","languages_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/languages","stargazers_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/stargazers","contributors_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/contributors","subscribers_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/subscribers","subscription_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/subscription","commits_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/contents/{+path}","compare_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/merges","archive_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/downloads","issues_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/issues{/number}","pulls_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/pulls{/number}","milestones_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/milestones{/number}","notifications_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/labels{/name}","releases_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/releases{/id}","deployments_url":"https://api.github.com/repos/nomadeducation/batch-notifications-node/deployments","created_at":"2017-04-26T15:29:38Z","updated_at":"2017-05-11T09:30:16Z","pushed_at":"2017-05-17T16:17:47Z","git_url":"git://github.com/nomadeducation/batch-notifications-node.git","ssh_url":"git@github.com:nomadeducation/batch-notifications-node.git","clone_url":"https://github.com/nomadeducation/batch-notifications-node.git","svn_url":"https://github.com/nomadeducation/batch-notifications-node","homepage":"","size":36,"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,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nomadeducation/batch-notifications-node/pulls/13"},"html":{"href":"https://github.com/nomadeducation/batch-notifications-node/pull/13"},"issue":{"href":"https://api.github.com/repos/nomadeducation/batch-notifications-node/issues/13"},"comments":{"href":"https://api.github.com/repos/nomadeducation/batch-notifications-node/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/nomadeducation/batch-notifications-node/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/nomadeducation/batch-notifications-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nomadeducation/batch-notifications-node/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/nomadeducation/batch-notifications-node/statuses/b87736e969a648ddcf28ca9c97f5dae8f4d3da88"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":5,"additions":54,"deletions":69,"changed_files":5}}
{"actor":{"display_login":"eilgin"}}