{"action":"created","issue":{"url":"https://api.github.com/repos/megawubs/trakt-api-wrapper/issues/2","labels_url":"https://api.github.com/repos/megawubs/trakt-api-wrapper/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/megawubs/trakt-api-wrapper/issues/2/comments","events_url":"https://api.github.com/repos/megawubs/trakt-api-wrapper/issues/2/events","html_url":"https://github.com/megawubs/trakt-api-wrapper/issues/2","id":41588099,"number":2,"title":"trakt.tv API v2 support","user":{"login":"webslash","id":1878691,"avatar_url":"https://avatars.githubusercontent.com/u/1878691?v=3","gravatar_id":"","url":"https://api.github.com/users/webslash","html_url":"https://github.com/webslash","followers_url":"https://api.github.com/users/webslash/followers","following_url":"https://api.github.com/users/webslash/following{/other_user}","gists_url":"https://api.github.com/users/webslash/gists{/gist_id}","starred_url":"https://api.github.com/users/webslash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webslash/subscriptions","organizations_url":"https://api.github.com/users/webslash/orgs","repos_url":"https://api.github.com/users/webslash/repos","events_url":"https://api.github.com/users/webslash/events{/privacy}","received_events_url":"https://api.github.com/users/webslash/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"megawubs","id":2302867,"avatar_url":"https://avatars.githubusercontent.com/u/2302867?v=3","gravatar_id":"","url":"https://api.github.com/users/megawubs","html_url":"https://github.com/megawubs","followers_url":"https://api.github.com/users/megawubs/followers","following_url":"https://api.github.com/users/megawubs/following{/other_user}","gists_url":"https://api.github.com/users/megawubs/gists{/gist_id}","starred_url":"https://api.github.com/users/megawubs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megawubs/subscriptions","organizations_url":"https://api.github.com/users/megawubs/orgs","repos_url":"https://api.github.com/users/megawubs/repos","events_url":"https://api.github.com/users/megawubs/events{/privacy}","received_events_url":"https://api.github.com/users/megawubs/received_events","type":"User","site_admin":false},"milestone":null,"comments":39,"created_at":"2014-08-31T14:54:41Z","updated_at":"2015-06-02T04:32:21Z","closed_at":"2015-03-14T15:28:29Z","body":"As you might be aware, trakt will be getting a major update and there's a new API coming (v2).\r\nThere's a Google+ community setup by the people of trakt with info. You may want to send Justin an email: justin@trakt.tv to get access to the community if you aren't in it already. It has a link to the new api docs (http://docs.trakt.apiary.io/) and you can discuss the methods ect there.. Would be awesome if you could update your php wrapper to support this new v2 api!"},"comment":{"url":"https://api.github.com/repos/megawubs/trakt-api-wrapper/issues/comments/107799356","html_url":"https://github.com/megawubs/trakt-api-wrapper/issues/2#issuecomment-107799356","issue_url":"https://api.github.com/repos/megawubs/trakt-api-wrapper/issues/2","id":107799356,"user":{"login":"megawubs","id":2302867,"avatar_url":"https://avatars.githubusercontent.com/u/2302867?v=3","gravatar_id":"","url":"https://api.github.com/users/megawubs","html_url":"https://github.com/megawubs","followers_url":"https://api.github.com/users/megawubs/followers","following_url":"https://api.github.com/users/megawubs/following{/other_user}","gists_url":"https://api.github.com/users/megawubs/gists{/gist_id}","starred_url":"https://api.github.com/users/megawubs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megawubs/subscriptions","organizations_url":"https://api.github.com/users/megawubs/orgs","repos_url":"https://api.github.com/users/megawubs/repos","events_url":"https://api.github.com/users/megawubs/events{/privacy}","received_events_url":"https://api.github.com/users/megawubs/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T04:32:21Z","updated_at":"2015-06-02T04:32:21Z","body":"Do you have a public account or not?\n\nOp ma 1 jun. 2015 22:46 schreef Roni Laukkarinen <notifications@github.com>:\n\n> Thanks for the answer. Tried with this (with client id set of course):\n>\n> <?php\n>\n> error_reporting(E_ALL);\n> ini_set(\"display_errors\", 1);\n>\n> require 'vendor/autoload.php';\n>\n> use Wubs\\Trakt\\ClientId;\n> use Wubs\\Trakt\\Request\\Parameters\\Type;\n> use Wubs\\Trakt\\Request\\Parameters\\Username;\n> use Wubs\\Trakt\\Request\\Users\\History;\n>\n> $clientId = ClientId::set(getenv(\"MY_CLIENT_ID_IS_SET_HERE\"));\n>\n> $parameters = [Username::set('rolle'), Type::movies()];\n> $response = History::request($clientId, $parameters);\n>\n> echo '<pre>';\n> echo var_dump($response);\n> echo '</pre>';\n>\n> ?>\n>\n> My composer.json row (just now composer update):\n>\n> {\n>   \"name\": \"peikko\",\n>   \"description\": \"Peikko.us website\",\n>   \"authors\": [\n>     {\n>       \"name\": \"Roni Laukkarinen\",\n>       \"email\": \"roni@dude.fi\"\n>     }\n>   ],\n>   \"minimum-stability\": \"dev\",\n>   \"require\": {\n>     \"wubs/trakt\": \"*\"\n>   },\n>   \"require-dev\": {\n>     \"phpunit/phpunit\": \"4.4.*\"\n>   },\n>   \"autoload\": {\n>     \"psr-0\": {\"Wubs\": \"src/\"}\n>   }\n> }\n>\n> I get:\n>\n> Fatal error: Uncaught exception 'GuzzleHttp\\Exception\\ClientException' with message 'Client error response [url] https://api-v2launch.trakt.tv/users/rolle/history/movies [status code] 403 [reason phrase] Forbidden' in /home/rolle/public_html/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:89 Stack trace: #0 /home/rolle/public_html/vendor/guzzlehttp/guzzle/src/Subscriber/HttpError.php(33): GuzzleHttp\\Exception\\RequestException::create(Object(GuzzleHttp\\Message\\Request), Object(GuzzleHttp\\Message\\Response)) #1 /home/rolle/public_html/vendor/guzzlehttp/guzzle/src/Event/Emitter.php(109): GuzzleHttp\\Subscriber\\HttpError->onComplete(Object(GuzzleHttp\\Event\\CompleteEvent), 'complete') #2 /home/rolle/public_html/vendor/guzzlehttp/guzzle/src/RequestFsm.php(91): GuzzleHttp\\Event\\Emitter->emit('complete', Object(GuzzleHttp\\Event\\CompleteEvent)) #3 /home/rolle/public_html/vendor/guzzlehttp/guzzle/src/RequestFsm.php(132): GuzzleHttp\\RequestFsm->__invoke(Object(Guzz\n>  leHttp\\Transaction)) #4 /home/rolle/public_html/vendor/reac in /home/rolle/public_html/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 89\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/megawubs/trakt-api-wrapper/issues/2#issuecomment-107701719>\n> .\n>\n"}}