What steps will reproduce the problem?
1.I'm using Python 2.7 with Drive v2 API.
2.The problem is that when i do a while loop like this:
while 'nextPageToken' in documents:
token = documents['nextPageToken']
extract_documents(service, query, token)
The next page token isn't defined/doesn't appear in the results given by the
API but you are passing the last value of the next page token field.
So this field is hidden but in the coding it assumes that it appears.
I'm currently working with several APIs and only this one has this kind of bug.
I do that same while loop in Gmail API and Calendar API and they don't present
this bug.
What is the expected output? What do you see instead?
The expected output is that when the result page doesn't present other next
page token, the token value will not be defined and doesn't appear.
Instead the last value of the next page token is being passed as the next page
token.
What version of the product are you using? On what operating system?
Google Drive API v2.
You can contact me for further info about this.
Best regards,
João Amorim
Original issue reported on code.google.com by Joao.Ric...@gmail.com on 5 Apr 2015 at 5:38
Original issue reported on code.google.com by
Joao.Ric...@gmail.com
on 5 Apr 2015 at 5:38