{"action":"closed","issue":{"url":"https://api.github.com/repos/JoeDawson/youtube/issues/9","labels_url":"https://api.github.com/repos/JoeDawson/youtube/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/JoeDawson/youtube/issues/9/comments","events_url":"https://api.github.com/repos/JoeDawson/youtube/issues/9/events","html_url":"https://github.com/JoeDawson/youtube/issues/9","id":118632381,"number":9,"title":"Vimeo functionality in youtube???","user":{"login":"thorstenHe","id":13216892,"avatar_url":"https://avatars.githubusercontent.com/u/13216892?v=3","gravatar_id":"","url":"https://api.github.com/users/thorstenHe","html_url":"https://github.com/thorstenHe","followers_url":"https://api.github.com/users/thorstenHe/followers","following_url":"https://api.github.com/users/thorstenHe/following{/other_user}","gists_url":"https://api.github.com/users/thorstenHe/gists{/gist_id}","starred_url":"https://api.github.com/users/thorstenHe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thorstenHe/subscriptions","organizations_url":"https://api.github.com/users/thorstenHe/orgs","repos_url":"https://api.github.com/users/thorstenHe/repos","events_url":"https://api.github.com/users/thorstenHe/events{/privacy}","received_events_url":"https://api.github.com/users/thorstenHe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-24T15:21:02Z","updated_at":"2015-11-24T15:57:50Z","closed_at":"2015-11-24T15:57:50Z","body":"```\r\n /**\r\n     * Request an access token. This is the final step of the\r\n     * OAuth 2 workflow, and should be called from your redirect url.\r\n     *\r\n     * @param string $code The authorization code that was provided to your redirect url\r\n     * @param string $redirect_uri The redirect_uri that is configured on your app page, and was used in buildAuthorizationEndpoint\r\n     * @return array This array contains three keys, 'status' is the status code, 'body' is an object representation of the json response body, and headers are an associated array of response headers\r\n     */\r\n    public function accessToken($code, $redirect_uri) {\r\n        return $this->request(self::ACCESS_TOKEN_ENDPOINT, array(\r\n            'grant_type' => 'authorization_code',\r\n            'code' => $code,\r\n            'redirect_uri' => $redirect_uri\r\n        ), \"POST\", false);\r\n    }\r\n```\r\nIt would be nice to add the functionality of the vimeo.php extension in the youtube one. It would make it easier create proper structures in the programming. "}}