nylas-ruby icon indicating copy to clipboard operation
nylas-ruby copied to clipboard

Add `query_params` to the `folders.list(..)` method

Open neilberget opened this issue 1 year ago • 1 comments

There is no way to retrieve a second page of folders since the list method in Folders only takes the identifier parameter.

If the query_params argument is added (for example https://github.com/nylas/nylas-ruby/blob/main/lib/nylas/resources/messages.rb#L30 we'd be able to pass in a cursor for pagination.

We have worked around it by building the api call ourself but would help clean things up if this was made to be consistent with the other list methods.

I do see the cursor is already being returned, so only allowing it to be passed in via query_params should solve the issue.

neilberget avatar Sep 12 '24 18:09 neilberget

@neilberget Thanks for posting, will add this!

mrashed-dev avatar Sep 23 '24 18:09 mrashed-dev