Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resp.TotalPages might be incorrectly reporting total number of items, not pages #8

Closed
olafdraeger opened this issue Oct 9, 2018 · 1 comment

Comments

@olafdraeger
Copy link

after this call:
videos, resp, err := client.Users.ListVideo("", vimeo.OptPerPage(100) )

i can see that:
resp.TotalPage = 1156
but
resp.LastPage = "/me/videos?per_page=100&page=12"
so TotalPages should be 12, not 1156, correct?

@silentsokolov
Copy link
Owner

silentsokolov commented Oct 9, 2018

Yep, it bad name, TotalPages is total video objects.

Thx, fix it, you can use the Total in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants