{"action":"created","issue":{"url":"https://api.github.com/repos/dusterio/link-preview/issues/2","repository_url":"https://api.github.com/repos/dusterio/link-preview","labels_url":"https://api.github.com/repos/dusterio/link-preview/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/dusterio/link-preview/issues/2/comments","events_url":"https://api.github.com/repos/dusterio/link-preview/issues/2/events","html_url":"https://github.com/dusterio/link-preview/issues/2","id":153683270,"number":2,"title":"Inconsistent examples","user":{"login":"33mhz","id":1181047,"avatar_url":"https://avatars.githubusercontent.com/u/1181047?v=3","gravatar_id":"","url":"https://api.github.com/users/33mhz","html_url":"https://github.com/33mhz","followers_url":"https://api.github.com/users/33mhz/followers","following_url":"https://api.github.com/users/33mhz/following{/other_user}","gists_url":"https://api.github.com/users/33mhz/gists{/gist_id}","starred_url":"https://api.github.com/users/33mhz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/33mhz/subscriptions","organizations_url":"https://api.github.com/users/33mhz/orgs","repos_url":"https://api.github.com/users/33mhz/repos","events_url":"https://api.github.com/users/33mhz/events{/privacy}","received_events_url":"https://api.github.com/users/33mhz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-08T23:25:04Z","updated_at":"2016-05-09T00:32:10Z","closed_at":null,"body":"Sometimes the examples refer to `$client`, sometimes to `$previewClient`.\r\n\r\nI'm trying to test output with this:\r\n```\r\n$previewClient = new Client($url);\r\n$previewClient->getParser('general')->getReader()->config(['connect_timeout' => 10, 'allow_redirects' => ['max' => 5]]);\r\ntry {\r\n    $preview = $previewClient->getPreview('general');\r\n} catch (\\Dusterio\\LinkPreview\\Exceptions\\ConnectionErrorException $e) {\r\n    $preview = false;\r\n} catch (\\Dusterio\\LinkPreview\\Exceptions\\MalformedUrlException $e) {\r\n    $preview = false;\r\n}\r\n```\r\n... and it's giving \"Fatal error: Uncaught Error: Call to undefined method Dusterio\\LinkPreview\\Client::getParser()\". It also gives fatals for uncaught exceptions. :("},"comment":{"url":"https://api.github.com/repos/dusterio/link-preview/issues/comments/217755609","html_url":"https://github.com/dusterio/link-preview/issues/2#issuecomment-217755609","issue_url":"https://api.github.com/repos/dusterio/link-preview/issues/2","id":217755609,"user":{"login":"dusterio","id":11039918,"avatar_url":"https://avatars.githubusercontent.com/u/11039918?v=3","gravatar_id":"","url":"https://api.github.com/users/dusterio","html_url":"https://github.com/dusterio","followers_url":"https://api.github.com/users/dusterio/followers","following_url":"https://api.github.com/users/dusterio/following{/other_user}","gists_url":"https://api.github.com/users/dusterio/gists{/gist_id}","starred_url":"https://api.github.com/users/dusterio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dusterio/subscriptions","organizations_url":"https://api.github.com/users/dusterio/orgs","repos_url":"https://api.github.com/users/dusterio/repos","events_url":"https://api.github.com/users/dusterio/events{/privacy}","received_events_url":"https://api.github.com/users/dusterio/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T00:32:10Z","updated_at":"2016-05-09T00:32:10Z","body":"Ok, I tagged a new version (1.2.6), just run 'composer update' and your code will start working - I verified myself!"}}