php - Laravel: Remove a video from a playlist in YouTube using Google API Client -
Hello, so I'm trying to delete a video from a playlist using the Google API client, Continue the errors. Here's my code.
if ($ access_token & amp; $ client = \ GoogleClient :: requestPermission ($ access_token)) {$ youtube = new \ Google_Service_YouTube ($ customer); $ Resultman = $ youtube- & gt; Playlist item-> Remove ("id, snippet", array ('id' = & gt; $ video_id, 'playlistId =' = $ playlist_id)); } Else {App :: abort (500, "account can not be authenticated"); }
What I'm doing wrong and any help is appreciated. Thanks!
Comments
Post a Comment