Skip to content

What todo about list() methods what don't return everything you want in one go #97

@madwax

Description

@madwax

Just ran into this.

  1. I'm calling rc.restapi().account().callLog().list( { perPage:250 } )** but I know I have a lot more call log entries than 250
  2. The returned object has the required navigation.nextPage.uri to the next page of data.
  3. There is no documented way (or at least I can't find it) as what to do next to get the next page

The list() method should collect all the pages
or do something like:

let page1 = rc.restapi().account().callLog().list( {perPage:250 } )
let page2 = rc.restapi().account().callLog().next( page1 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions