getPlaylistItemsByPlaylistId() 공개 메소드

public getPlaylistItemsByPlaylistId ( string $playlistId, string $pageToken = '', integer $maxResults = 50, array $part = ['id', 'snippet', 'contentDetails', 'status'] ) : array
$playlistId string
$pageToken string
$maxResults integer
$part array
리턴 array
예제 #1
0
 public function testGetPlaylistItemsByPlaylistId()
 {
     $GOOGLE_ZEITGEIST_PLAYLIST = 'PL590L5WQmH8fJ54F369BLDSqIwcs-TCfs';
     $response = $this->youtube->getPlaylistItemsByPlaylistId($GOOGLE_ZEITGEIST_PLAYLIST);
     $data = $response['results'];
     $this->assertTrue(count($data) > 0);
     $this->assertEquals('youtube#playlistItem', $data[0]->kind);
 }