Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Laravel:使用Google API客户端从YouTube的播放列表中删除视频_Php_Laravel_Youtube_Youtube Api_Google Client - Fatal编程技术网

Php Laravel:使用Google API客户端从YouTube的播放列表中删除视频

Php Laravel:使用Google API客户端从YouTube的播放列表中删除视频,php,laravel,youtube,youtube-api,google-client,Php,Laravel,Youtube,Youtube Api,Google Client,大家好,我正在尝试使用GoogleAPI客户端从播放列表中删除视频,到目前为止,我一直收到错误的参数错误。这是我的密码 if($access_token && $client = \GoogleClient::requestPermission($access_token)) { $youtube = new \Google_Service_YouTube($client); $resultMain = $youtube->pla

大家好,我正在尝试使用GoogleAPI客户端从播放列表中删除视频,到目前为止,我一直收到错误的参数错误。这是我的密码

    if($access_token && $client = \GoogleClient::requestPermission($access_token)) {

        $youtube = new \Google_Service_YouTube($client);

        $resultMain = $youtube->playlistItems->delete("id,snippet", array('id' => $video_id, 'playlistId' => $playlist_id));

    }else{

        App::abort(500,"Cannot authenticate account");
    }
我做错了什么,感谢你的帮助。谢谢