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:
following result , hitting next api in code,
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
Post a Comment