{"action":"created","issue":{"url":"https://api.github.com/repos/williamn/pokeapi-php/issues/4","repository_url":"https://api.github.com/repos/williamn/pokeapi-php","labels_url":"https://api.github.com/repos/williamn/pokeapi-php/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/williamn/pokeapi-php/issues/4/comments","events_url":"https://api.github.com/repos/williamn/pokeapi-php/issues/4/events","html_url":"https://github.com/williamn/pokeapi-php/pull/4","id":165275805,"number":4,"title":"Class name changed and error handle","user":{"login":"bravocado","id":881092,"avatar_url":"https://avatars.githubusercontent.com/u/881092?v=3","gravatar_id":"","url":"https://api.github.com/users/bravocado","html_url":"https://github.com/bravocado","followers_url":"https://api.github.com/users/bravocado/followers","following_url":"https://api.github.com/users/bravocado/following{/other_user}","gists_url":"https://api.github.com/users/bravocado/gists{/gist_id}","starred_url":"https://api.github.com/users/bravocado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bravocado/subscriptions","organizations_url":"https://api.github.com/users/bravocado/orgs","repos_url":"https://api.github.com/users/bravocado/repos","events_url":"https://api.github.com/users/bravocado/events{/privacy}","received_events_url":"https://api.github.com/users/bravocado/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-13T09:24:13Z","updated_at":"2016-07-13T10:46:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/williamn/pokeapi-php/pulls/4","html_url":"https://github.com/williamn/pokeapi-php/pull/4","diff_url":"https://github.com/williamn/pokeapi-php/pull/4.diff","patch_url":"https://github.com/williamn/pokeapi-php/pull/4.patch"},"body":"class name conflicting with Guzzle Client class name.\r\nI need to use it to handle an error."},"comment":{"url":"https://api.github.com/repos/williamn/pokeapi-php/issues/comments/232321040","html_url":"https://github.com/williamn/pokeapi-php/pull/4#issuecomment-232321040","issue_url":"https://api.github.com/repos/williamn/pokeapi-php/issues/4","id":232321040,"user":{"login":"bravocado","id":881092,"avatar_url":"https://avatars.githubusercontent.com/u/881092?v=3","gravatar_id":"","url":"https://api.github.com/users/bravocado","html_url":"https://github.com/bravocado","followers_url":"https://api.github.com/users/bravocado/followers","following_url":"https://api.github.com/users/bravocado/following{/other_user}","gists_url":"https://api.github.com/users/bravocado/gists{/gist_id}","starred_url":"https://api.github.com/users/bravocado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bravocado/subscriptions","organizations_url":"https://api.github.com/users/bravocado/orgs","repos_url":"https://api.github.com/users/bravocado/repos","events_url":"https://api.github.com/users/bravocado/events{/privacy}","received_events_url":"https://api.github.com/users/bravocado/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T10:46:25Z","updated_at":"2016-07-13T10:46:25Z","body":"@williamn \r\n\r\n1. Class name error\r\n\r\nAll changes on `Client.php`\r\n\r\nadded this new lines\r\n```\r\nuse GuzzleHttp\\Client;\r\nuse GuzzleHttp\\Psr7;\r\nuse GuzzleHttp\\Exception\\ClientException;\r\n```\r\n\r\nSwitch `new \\GuzzleHttp\\Client` to `new Client`\r\n\r\nGuzzle already using Client name when i'm using it globally. By the way, for me it's nicer to have an unique class name.\r\n\r\n\r\n2. Error Handler\r\ntry to get\r\n```\r\n$response = $client->get('pokemon', 999);\r\n```\r\n\r\nThrowing an error like this\r\n![screen shot 2016-07-13 at 5 32 40 pm](https://cloud.githubusercontent.com/assets/881092/16800767/1ab49bca-4921-11e6-8176-ed9cc49d017a.png)\r\n\r\n"}}
{"actor":{"display_login":"bravocado"}}