php - Get list of youtube playlists including unlisted -
i using v3 of youtube api , trying list of channel's playlists.
it's working, returns playlists have status.privacystatus
of public
.
how can retrieve playlists unlisted
?
this call using.
public function getplaylists($channelid) { $this->_quotaconsumed += 3; return $this->getservice() ->playlists ->listplaylists('id,snippet,status', array( 'channelid' => $channelid, 'maxresults' => 50, )); }
i using oauth service account.
the youtube api v3 not support oauth service accounts, call retrieving public access data. retrieve things such private or unlisted data, you'll have set regular oauth flow, authenticate traditional token exchange, , call "mine" parameter set true.
Comments
Post a Comment