pipedrive / client-nodejs

Pipedrive API client for NodeJS
MIT License
207 stars 81 forks source link

Unable to Retrieve More Than 100 Pipelines with getPipelines Function #577

Closed antlaht86 closed 1 week ago

antlaht86 commented 1 month ago

Package: pipedrive client-nodejs (npm: pipedrive)

Version: 23.4.1

Description:

I'm experiencing an issue with the getPipelines function in the pipedrive package. Specifically, it's not possible to retrieve more than 100 pipelines.

Steps to Reproduce:

Use the getPipelines function with options for pagination, such as start or limit. Try to set the start parameter to a value greater than 100. Observe that it is possible to get a maximum of only one hundred items, despite the request's options

Expected Behavior:

I expect the getPipelines function to respect the provided start and limit parameters, allowing retrieval of more than 100 pipelines when specified.

Actual Behavior:

The function returns only up to 100 pipelines regardless of the limit value or the start parameter provided in the request.

Environment:

Node.js version: v20.12.2 Package version: 23.4.1

dmitriyeff commented 1 week ago

Hello @antlaht86 ,

Currently, client-nodejs supports only API v1, which does not accept additional parameters and has a limit of 100 pipelines per request.

We’re planning to add support for both v1 and v2 this year, with API v2 increasing the pipeline limit to a maximum of 500.