Các hàm dùng để login youtube qua api $client = new Google_Client(); $client->setClientId($client_id); $client->setClientSecret($client_secret); $client->setRedirectUri($redirect_uri); $client->setScopes(array( “https://www.googleapis.com/auth/plus.login”, “https://www.googleapis.com/auth/userinfo.email”, “https://www.googleapis.com/auth/userinfo.profile”, “https://www.googleapis.com/auth/plus.me”, “https://www.googleapis.com/auth/youtube.upload”, “https://www.googleapis.com/auth/youtube”, “https://www.googleapis.com/auth/youtube.force-ssl” )); $plus = new Google_Service_Plus($client); $youtube =….