2017-09-26 7 views
-1

ためnextpagetoken実装する方法を、私は以下のコードを試してみました。は、ユーチューブのAPI

+1

Mamはコードを投稿してください。ありがとう –

+0

このmamを試しましたかhttps://stackoverflow.com/questions/20727560/retrieve-all-playlist-entry-youtube-api-v3-using-pagetoken? –

+0

私は試しましたが、私はjsonに新しいです、解決策を見つけるのを助けてください –

答えて

0

pageTokenパラメータにnextPageTokenを配置します。また、

// checking if nextPageToken exist than return our function and 
     // insert $next_page_token with value inside nextPageToken 
    if(isset($searchResponse['nextPageToken'])){ 
      // return to our function and loop again 
     return youtube_search($query, $max_results, $searchResponse['nextPageToken']); 
    } 

追加の参考のためにthis postをチェック:あなたは、実際のコードサンプルのため、このSO postを確認することができます。

関連する問題