{"action":"created","comment":{"url":"https://api.github.com/repos/authy/authy-php/pulls/comments/44860100","id":44860100,"diff_hunk":"@@ -41,12 +41,9 @@ class AuthyApi\n     public function __construct($api_key, $api_url = \"https://api.authy.com\")\n     {\n         $this->rest = new \\GuzzleHttp\\Client(array(\n-            'base_url' => \"{$api_url}/protected/json/\",\n-            'defaults' => array(\n-                'headers'       => array('User-Agent' => $this->__getUserAgent() ),\n-                'query'         => array('api_key' => $api_key),","path":"lib/Authy/AuthyApi.php","position":16,"original_position":16,"commit_id":"a00f694f05b08240513061f62b3cf018dc4369b1","original_commit_id":"a00f694f05b08240513061f62b3cf018dc4369b1","user":{"login":"dcu","id":73729,"avatar_url":"https://avatars.githubusercontent.com/u/73729?v=3","gravatar_id":"","url":"https://api.github.com/users/dcu","html_url":"https://github.com/dcu","followers_url":"https://api.github.com/users/dcu/followers","following_url":"https://api.github.com/users/dcu/following{/other_user}","gists_url":"https://api.github.com/users/dcu/gists{/gist_id}","starred_url":"https://api.github.com/users/dcu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcu/subscriptions","organizations_url":"https://api.github.com/users/dcu/orgs","repos_url":"https://api.github.com/users/dcu/repos","events_url":"https://api.github.com/users/dcu/events{/privacy}","received_events_url":"https://api.github.com/users/dcu/received_events","type":"User","site_admin":false},"body":"According to this it's supported, did you test it?\r\nhttps://github.com/guzzle/guzzle/blob/master/src/Client.php#L56\r\n","created_at":"2015-11-14T16:06:36Z","updated_at":"2015-11-14T16:06:36Z","html_url":"https://github.com/authy/authy-php/pull/18#discussion_r44860100","pull_request_url":"https://api.github.com/repos/authy/authy-php/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/authy/authy-php/pulls/comments/44860100"},"html":{"href":"https://github.com/authy/authy-php/pull/18#discussion_r44860100"},"pull_request":{"href":"https://api.github.com/repos/authy/authy-php/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/authy/authy-php/pulls/18","id":50062353,"html_url":"https://github.com/authy/authy-php/pull/18","diff_url":"https://github.com/authy/authy-php/pull/18.diff","patch_url":"https://github.com/authy/authy-php/pull/18.patch","issue_url":"https://api.github.com/repos/authy/authy-php/issues/18","number":18,"state":"open","locked":false,"title":"Adds support for Guzzle 6","user":{"login":"vicdelfant","id":312664,"avatar_url":"https://avatars.githubusercontent.com/u/312664?v=3","gravatar_id":"","url":"https://api.github.com/users/vicdelfant","html_url":"https://github.com/vicdelfant","followers_url":"https://api.github.com/users/vicdelfant/followers","following_url":"https://api.github.com/users/vicdelfant/following{/other_user}","gists_url":"https://api.github.com/users/vicdelfant/gists{/gist_id}","starred_url":"https://api.github.com/users/vicdelfant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicdelfant/subscriptions","organizations_url":"https://api.github.com/users/vicdelfant/orgs","repos_url":"https://api.github.com/users/vicdelfant/repos","events_url":"https://api.github.com/users/vicdelfant/events{/privacy}","received_events_url":"https://api.github.com/users/vicdelfant/received_events","type":"User","site_admin":false},"body":"This PR adds support for Guzzle 6 (see #17). All tests pass except for one which is kind of hard to test manually. The updated version of the library seems to work just fine in our production environment.\r\n\r\n```\r\nThere was 1 failure:\r\n\r\n1) ApiTest::testPhoneVerificationCheck\r\nFailed asserting that false matches expected true.\r\n```\r\n\r\nNote that I didn't see a consistent coding style (single quote vs. double quote and `array` vs. `[]`) so I went with a single quote and left the array initialization as-is.","created_at":"2015-11-08T15:19:49Z","updated_at":"2015-11-14T16:06:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa7f4072be7f80706c7f2a75457b5aaecc32f73d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/authy/authy-php/pulls/18/commits","review_comments_url":"https://api.github.com/repos/authy/authy-php/pulls/18/comments","review_comment_url":"https://api.github.com/repos/authy/authy-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/authy/authy-php/issues/18/comments","statuses_url":"https://api.github.com/repos/authy/authy-php/statuses/a00f694f05b08240513061f62b3cf018dc4369b1","head":{"label":"vicdelfant:master","ref":"master","sha":"a00f694f05b08240513061f62b3cf018dc4369b1","user":{"login":"vicdelfant","id":312664,"avatar_url":"https://avatars.githubusercontent.com/u/312664?v=3","gravatar_id":"","url":"https://api.github.com/users/vicdelfant","html_url":"https://github.com/vicdelfant","followers_url":"https://api.github.com/users/vicdelfant/followers","following_url":"https://api.github.com/users/vicdelfant/following{/other_user}","gists_url":"https://api.github.com/users/vicdelfant/gists{/gist_id}","starred_url":"https://api.github.com/users/vicdelfant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicdelfant/subscriptions","organizations_url":"https://api.github.com/users/vicdelfant/orgs","repos_url":"https://api.github.com/users/vicdelfant/repos","events_url":"https://api.github.com/users/vicdelfant/events{/privacy}","received_events_url":"https://api.github.com/users/vicdelfant/received_events","type":"User","site_admin":false},"repo":{"id":45784546,"name":"authy-php-guzzle-6","full_name":"vicdelfant/authy-php-guzzle-6","owner":{"login":"vicdelfant","id":312664,"avatar_url":"https://avatars.githubusercontent.com/u/312664?v=3","gravatar_id":"","url":"https://api.github.com/users/vicdelfant","html_url":"https://github.com/vicdelfant","followers_url":"https://api.github.com/users/vicdelfant/followers","following_url":"https://api.github.com/users/vicdelfant/following{/other_user}","gists_url":"https://api.github.com/users/vicdelfant/gists{/gist_id}","starred_url":"https://api.github.com/users/vicdelfant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicdelfant/subscriptions","organizations_url":"https://api.github.com/users/vicdelfant/orgs","repos_url":"https://api.github.com/users/vicdelfant/repos","events_url":"https://api.github.com/users/vicdelfant/events{/privacy}","received_events_url":"https://api.github.com/users/vicdelfant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vicdelfant/authy-php-guzzle-6","description":"A PHP client for Authy","fork":true,"url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6","forks_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/forks","keys_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/teams","hooks_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/hooks","issue_events_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/issues/events{/number}","events_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/events","assignees_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/assignees{/user}","branches_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/branches{/branch}","tags_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/tags","blobs_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/git/refs{/sha}","trees_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/statuses/{sha}","languages_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/languages","stargazers_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/stargazers","contributors_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/contributors","subscribers_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/subscribers","subscription_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/subscription","commits_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/commits{/sha}","git_commits_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/git/commits{/sha}","comments_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/comments{/number}","issue_comment_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/issues/comments{/number}","contents_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/contents/{+path}","compare_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/merges","archive_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/downloads","issues_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/issues{/number}","pulls_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/pulls{/number}","milestones_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/milestones{/number}","notifications_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/labels{/name}","releases_url":"https://api.github.com/repos/vicdelfant/authy-php-guzzle-6/releases{/id}","created_at":"2015-11-08T14:48:26Z","updated_at":"2015-11-08T14:48:39Z","pushed_at":"2015-11-08T15:11:25Z","git_url":"git://github.com/vicdelfant/authy-php-guzzle-6.git","ssh_url":"git@github.com:vicdelfant/authy-php-guzzle-6.git","clone_url":"https://github.com/vicdelfant/authy-php-guzzle-6.git","svn_url":"https://github.com/vicdelfant/authy-php-guzzle-6","homepage":null,"size":154,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"authy:master","ref":"master","sha":"35e00bd1219e922da17436750c9d1b38f52f89cf","user":{"login":"authy","id":1232630,"avatar_url":"https://avatars.githubusercontent.com/u/1232630?v=3","gravatar_id":"","url":"https://api.github.com/users/authy","html_url":"https://github.com/authy","followers_url":"https://api.github.com/users/authy/followers","following_url":"https://api.github.com/users/authy/following{/other_user}","gists_url":"https://api.github.com/users/authy/gists{/gist_id}","starred_url":"https://api.github.com/users/authy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/authy/subscriptions","organizations_url":"https://api.github.com/users/authy/orgs","repos_url":"https://api.github.com/users/authy/repos","events_url":"https://api.github.com/users/authy/events{/privacy}","received_events_url":"https://api.github.com/users/authy/received_events","type":"Organization","site_admin":false},"repo":{"id":4566269,"name":"authy-php","full_name":"authy/authy-php","owner":{"login":"authy","id":1232630,"avatar_url":"https://avatars.githubusercontent.com/u/1232630?v=3","gravatar_id":"","url":"https://api.github.com/users/authy","html_url":"https://github.com/authy","followers_url":"https://api.github.com/users/authy/followers","following_url":"https://api.github.com/users/authy/following{/other_user}","gists_url":"https://api.github.com/users/authy/gists{/gist_id}","starred_url":"https://api.github.com/users/authy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/authy/subscriptions","organizations_url":"https://api.github.com/users/authy/orgs","repos_url":"https://api.github.com/users/authy/repos","events_url":"https://api.github.com/users/authy/events{/privacy}","received_events_url":"https://api.github.com/users/authy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/authy/authy-php","description":"A PHP client for Authy","fork":false,"url":"https://api.github.com/repos/authy/authy-php","forks_url":"https://api.github.com/repos/authy/authy-php/forks","keys_url":"https://api.github.com/repos/authy/authy-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/authy/authy-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/authy/authy-php/teams","hooks_url":"https://api.github.com/repos/authy/authy-php/hooks","issue_events_url":"https://api.github.com/repos/authy/authy-php/issues/events{/number}","events_url":"https://api.github.com/repos/authy/authy-php/events","assignees_url":"https://api.github.com/repos/authy/authy-php/assignees{/user}","branches_url":"https://api.github.com/repos/authy/authy-php/branches{/branch}","tags_url":"https://api.github.com/repos/authy/authy-php/tags","blobs_url":"https://api.github.com/repos/authy/authy-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/authy/authy-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/authy/authy-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/authy/authy-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/authy/authy-php/statuses/{sha}","languages_url":"https://api.github.com/repos/authy/authy-php/languages","stargazers_url":"https://api.github.com/repos/authy/authy-php/stargazers","contributors_url":"https://api.github.com/repos/authy/authy-php/contributors","subscribers_url":"https://api.github.com/repos/authy/authy-php/subscribers","subscription_url":"https://api.github.com/repos/authy/authy-php/subscription","commits_url":"https://api.github.com/repos/authy/authy-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/authy/authy-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/authy/authy-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/authy/authy-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/authy/authy-php/contents/{+path}","compare_url":"https://api.github.com/repos/authy/authy-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/authy/authy-php/merges","archive_url":"https://api.github.com/repos/authy/authy-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/authy/authy-php/downloads","issues_url":"https://api.github.com/repos/authy/authy-php/issues{/number}","pulls_url":"https://api.github.com/repos/authy/authy-php/pulls{/number}","milestones_url":"https://api.github.com/repos/authy/authy-php/milestones{/number}","notifications_url":"https://api.github.com/repos/authy/authy-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/authy/authy-php/labels{/name}","releases_url":"https://api.github.com/repos/authy/authy-php/releases{/id}","created_at":"2012-06-05T22:27:08Z","updated_at":"2015-11-06T12:01:30Z","pushed_at":"2015-11-13T23:16:09Z","git_url":"git://github.com/authy/authy-php.git","ssh_url":"git@github.com:authy/authy-php.git","clone_url":"https://github.com/authy/authy-php.git","svn_url":"https://github.com/authy/authy-php","homepage":null,"size":296,"stargazers_count":116,"watchers_count":116,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":2,"forks":20,"open_issues":2,"watchers":116,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/authy/authy-php/pulls/18"},"html":{"href":"https://github.com/authy/authy-php/pull/18"},"issue":{"href":"https://api.github.com/repos/authy/authy-php/issues/18"},"comments":{"href":"https://api.github.com/repos/authy/authy-php/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/authy/authy-php/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/authy/authy-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/authy/authy-php/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/authy/authy-php/statuses/a00f694f05b08240513061f62b3cf018dc4369b1"}}}}