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

Account for 100+ clips in a single metadata request #1

Open
dark-swordsman opened this issue Aug 14, 2020 · 0 comments
Open

Account for 100+ clips in a single metadata request #1

dark-swordsman opened this issue Aug 14, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@dark-swordsman
Copy link
Owner

dark-swordsman commented Aug 14, 2020

The current Get Clips endpoint is limited to 100 clips.

The metadata method doesn't account for this and won't paginate through the api.

Update the getClipsMetadataByBroadcasterId() method to:

  • Check if the response came with a Pagination key/is maxed at 100 clips
  • If so, paginate the data until the clip array length is less than 100 or the last paginating returns 0 clips.
@dark-swordsman dark-swordsman added the enhancement New feature or request label Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant