Following youtube's official API document, I made this code below.
It shows fine if I take off
:pageToken => 5
How can I fetch particular page of the result sets?(I mean pagination here)
Original Code
@search_response = client.execute!(
:api_method => youtube.search.list,
:parameters => {
:part => 'snippet',
:q => 'cat',
:maxResults => 10,
:order => 'date',
:pageToken => 5
}
)
Aucun commentaire:
Enregistrer un commentaire