Giter Site home page Giter Site logo

page_size and page_number about zoomus HOT 2 CLOSED

prschmid avatar prschmid commented on June 2, 2024
page_size and page_number

from zoomus.

Comments (2)

rakesh-pankhania avatar rakesh-pankhania commented on June 2, 2024

Hey there - I've put together an example of how you can pass page_number through. In my case, I have 42 total users and I'm using the default page size of 30.

# Get first page of users
payload = client.user.list().json()

payload['page_number']
# > 1

payload['page_count']
# > 2

len(payload['users'])
# > 30

payload['total_records']
# > 42

# Get next page
payload = client.user.list(page_number=2).json()

payload['page_number']
# > 2

payload['page_count']
# > 2

len(payload['users'])
# > 12

payload['total_records']
# > 42

You could also set page_size in the same manner:

payload = client.user.list(page_size=300).json()

This could give you all users in one list. But Zoom documentation says 300 is the max page_size they allow here, so it will only work up to that.

from zoomus.

JakubBialoskorski avatar JakubBialoskorski commented on June 2, 2024

Thanks for your response.
I can confirm that payload = client.user.list(page_size=300) works for me.

from zoomus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.