google app engine - A bug in YouTube's API example on GAE? Or am I missing something? -


i'm working list videos example gae , if try run on page can see there's no next_page_token i've tried self.response.out.write(next_page_token) , got none.

for example purposes i've submitted channel name google (which surely has more 50 videos). 50, no token can see, no pagination indication or that.

what missing here?

please advise, lot

here first request pre-filled you. click execute @ bottom:

https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.channels.list?part=snippet%252ccontentdetails&forusername=google&_h=1&

following result , hitting next api in code,

https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.playlistitems.list?part=snippet&maxresults=50&playlistid=uuk8sqmjbp8gcxrotxwbpyea&_h=3&

clicking execute on shows nextpagetoken set. either code example google has bug in it, or copy paste error somewhere.

edit: there bug in code sample provided.

playlistitems_response looks similar this:

{  "kind": "youtube#playlistitemlistresponse",  "etag": "\"eye31wlho912tfxebddrsweq5ms/vutg-safafmsexy-5xovamifvn0\"",  "nextpagetoken": "cdqqaa",  "prevpagetoken": "cdiqaq",  "pageinfo": {   "totalresults": 1634,   "resultsperpage": 2  },  "items": [{...}] } 

the nextpagetoken being extracted playlistitems_response.get('tokenpagination', {}).get('nextpagetoken') when should read playlistitems_response.get('nextpagetoken').


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -