getPlaylistsByChannelId() public method

public getPlaylistsByChannelId ( string $channelId, array $optionalParams = [], array $part = ['id', 'snippet', 'status'] ) : array
$channelId string
$optionalParams array
$part array
return array
Ejemplo n.º 1
0
 public function testGetPlaylistById()
 {
     //get one of the playlist
     $GOOGLE_CHANNELID = 'UCK8sQmJBp8GCxrOtXWBpyEA';
     $response = $this->youtube->getPlaylistsByChannelId($GOOGLE_CHANNELID);
     $playlist = $response[0];
     $response = $this->youtube->getPlaylistById($playlist->id);
     $this->assertEquals('youtube#playlist', $response->kind);
 }