{"action":"created","comment":{"url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/comments/33424843","id":33424843,"diff_hunk":"@@ -0,0 +1,72 @@\n+<?php\n+\n+namespace Zendesk\\API\\LiveTests;\n+\n+use Zendesk\\API\\HttpClient;\n+\n+/**\n+ * Basic test class\n+ */\n+abstract class BasicTest extends \\PHPUnit_Framework_TestCase\n+{\n+    /**\n+     * @var HttpClient\n+     */\n+    protected $client;\n+    /**\n+     * @var string\n+     */\n+    protected $subdomain;\n+    /**\n+     * @var string\n+     */\n+    protected $password;\n+    /**\n+     * @var string\n+     */\n+    protected $token;\n+    /**\n+     * @var string\n+     */\n+    protected $oAuthToken;\n+    /**\n+     * @var string\n+     */\n+    protected $hostname;\n+    /**\n+     * @var string\n+     */\n+    protected $scheme;\n+    /**\n+     * @var string\n+     */\n+    protected $port;\n+    /**\n+     * @var array\n+     */\n+    protected $mockedTransactionsContainer = [];\n+\n+    /**\n+     * {@inheritdoc}\n+     */\n+    public function __construct()\n+    {\n+        $this->subdomain  = getenv('SUBDOMAIN');\n+        $this->username   = getenv('USERNAME');\n+        $this->password   = getenv('PASSWORD');","path":"tests/Zendesk/API/LiveTests/BasicTest.php","position":56,"original_position":56,"commit_id":"a2a7eac1ff319b0e5fc2bc16b1f9339c7ad06f91","original_commit_id":"a2a7eac1ff319b0e5fc2bc16b1f9339c7ad06f91","user":{"login":"jwswj","id":562605,"avatar_url":"https://avatars.githubusercontent.com/u/562605?v=3","gravatar_id":"","url":"https://api.github.com/users/jwswj","html_url":"https://github.com/jwswj","followers_url":"https://api.github.com/users/jwswj/followers","following_url":"https://api.github.com/users/jwswj/following{/other_user}","gists_url":"https://api.github.com/users/jwswj/gists{/gist_id}","starred_url":"https://api.github.com/users/jwswj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwswj/subscriptions","organizations_url":"https://api.github.com/users/jwswj/orgs","repos_url":"https://api.github.com/users/jwswj/repos","events_url":"https://api.github.com/users/jwswj/events{/privacy}","received_events_url":"https://api.github.com/users/jwswj/received_events","type":"User","site_admin":false},"body":"Do we support password auth? Looks like just token.","created_at":"2015-06-28T17:29:37Z","updated_at":"2015-06-28T17:29:37Z","html_url":"https://github.com/zendesk/zendesk_api_client_php/pull/115#discussion_r33424843","pull_request_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/115","_links":{"self":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/comments/33424843"},"html":{"href":"https://github.com/zendesk/zendesk_api_client_php/pull/115#discussion_r33424843"},"pull_request":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/115"}}},"pull_request":{"url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/115","id":38529332,"html_url":"https://github.com/zendesk/zendesk_api_client_php/pull/115","diff_url":"https://github.com/zendesk/zendesk_api_client_php/pull/115.diff","patch_url":"https://github.com/zendesk/zendesk_api_client_php/pull/115.patch","issue_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/115","number":115,"state":"open","locked":false,"title":"[MI-105] Add support for authentication with the api client","user":{"login":"miogalang","id":1471573,"avatar_url":"https://avatars.githubusercontent.com/u/1471573?v=3","gravatar_id":"","url":"https://api.github.com/users/miogalang","html_url":"https://github.com/miogalang","followers_url":"https://api.github.com/users/miogalang/followers","following_url":"https://api.github.com/users/miogalang/following{/other_user}","gists_url":"https://api.github.com/users/miogalang/gists{/gist_id}","starred_url":"https://api.github.com/users/miogalang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miogalang/subscriptions","organizations_url":"https://api.github.com/users/miogalang/orgs","repos_url":"https://api.github.com/users/miogalang/repos","events_url":"https://api.github.com/users/miogalang/events{/privacy}","received_events_url":"https://api.github.com/users/miogalang/received_events","type":"User","site_admin":false},"body":"Add support for basic authentication and oauth token authentication in the client\r\nAdd live tests for checking authentication\r\n\r\n/cc @joseconsador @jwswj @mmolina @atroche \r\n\r\n### References\r\n - Jira link: https://zendesk.atlassian.net/browse/MI-105\r\n\r\n### Risks\r\n - We might not be able to authenticate properly with the client (medium)","created_at":"2015-06-25T09:45:33Z","updated_at":"2015-06-28T17:29:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9766ba5d3be06e19d670389f0613f7487a3f428","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/115/commits","review_comments_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/115/comments","review_comment_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/115/comments","statuses_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/statuses/a2a7eac1ff319b0e5fc2bc16b1f9339c7ad06f91","head":{"label":"zendesk:jose/auth","ref":"jose/auth","sha":"a2a7eac1ff319b0e5fc2bc16b1f9339c7ad06f91","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":16820767,"name":"zendesk_api_client_php","full_name":"zendesk/zendesk_api_client_php","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/zendesk_api_client_php","description":"Official Zendesk API v2 client library for PHP","fork":false,"url":"https://api.github.com/repos/zendesk/zendesk_api_client_php","forks_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/forks","keys_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/teams","hooks_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/hooks","issue_events_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/events","assignees_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/tags","blobs_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/languages","stargazers_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/stargazers","contributors_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/contributors","subscribers_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/subscribers","subscription_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/subscription","commits_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/merges","archive_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/downloads","issues_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/releases{/id}","created_at":"2014-02-13T23:21:28Z","updated_at":"2015-06-24T16:12:20Z","pushed_at":"2015-06-26T08:31:48Z","git_url":"git://github.com/zendesk/zendesk_api_client_php.git","ssh_url":"git@github.com:zendesk/zendesk_api_client_php.git","clone_url":"https://github.com/zendesk/zendesk_api_client_php.git","svn_url":"https://github.com/zendesk/zendesk_api_client_php","homepage":"","size":2911,"stargazers_count":72,"watchers_count":72,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":66,"mirror_url":null,"open_issues_count":11,"forks":66,"open_issues":11,"watchers":72,"default_branch":"master"}},"base":{"label":"zendesk:v2","ref":"v2","sha":"7162ae605f2f2c91456bf474293cbc2a0fa546c2","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":16820767,"name":"zendesk_api_client_php","full_name":"zendesk/zendesk_api_client_php","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/zendesk_api_client_php","description":"Official Zendesk API v2 client library for PHP","fork":false,"url":"https://api.github.com/repos/zendesk/zendesk_api_client_php","forks_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/forks","keys_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/teams","hooks_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/hooks","issue_events_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/events","assignees_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/tags","blobs_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/languages","stargazers_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/stargazers","contributors_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/contributors","subscribers_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/subscribers","subscription_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/subscription","commits_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/merges","archive_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/downloads","issues_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/zendesk_api_client_php/releases{/id}","created_at":"2014-02-13T23:21:28Z","updated_at":"2015-06-24T16:12:20Z","pushed_at":"2015-06-26T08:31:48Z","git_url":"git://github.com/zendesk/zendesk_api_client_php.git","ssh_url":"git@github.com:zendesk/zendesk_api_client_php.git","clone_url":"https://github.com/zendesk/zendesk_api_client_php.git","svn_url":"https://github.com/zendesk/zendesk_api_client_php","homepage":"","size":2911,"stargazers_count":72,"watchers_count":72,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":66,"mirror_url":null,"open_issues_count":11,"forks":66,"open_issues":11,"watchers":72,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/115"},"html":{"href":"https://github.com/zendesk/zendesk_api_client_php/pull/115"},"issue":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/115"},"comments":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/issues/115/comments"},"review_comments":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/115/comments"},"review_comment":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/pulls/115/commits"},"statuses":{"href":"https://api.github.com/repos/zendesk/zendesk_api_client_php/statuses/a2a7eac1ff319b0e5fc2bc16b1f9339c7ad06f91"}}}}