Comments (4)
You will be able to access request headers in the metadata with the 3.x version of the API client. The 3.x release is currently in review and will likely get merged in the next week or so. #36
However the rate limiting data will be added not to the response additionalData block (as you gave the example) but instead it will be accessible from the callback's third argument, as in:
pipedrive.SearchResults.getAll(reqParams, function(err, searchResults, additionalData, meta) {
console.log(meta.response.headers);
});
from client-nodejs.
Furthermore I have added a linear backoff strategy to the client itself, which honours the rate limiting headers given by the API server. That means you could rely on this logic and not worry about rate limiting on your own — or, alternatively, you can feel free to review the code in the pull request #36 and improve it as you like, then submit a pull request to us for review.
from client-nodejs.
Awesome, that should work for me, thanks!
from client-nodejs.
Closing the issue for now, hoping to get 3.0 out soon.
from client-nodejs.
Related Issues (20)
- Api for search deals HOT 2
- Normalization of a custom field fails with null values HOT 1
- Cannot find module @babel/runtime/helpers/interopRequireDefault HOT 2
- Typo in OpenAPI document HOT 1
- TypeError: data.map is not a function HOT 2
- OrganizationsApi getOrganizations seems to ignore filter HOT 2
- more breaking changes on version 18 HOT 1
- Go SDK + CloudQuery Source Plugin HOT 1
- Critical dependency: the request of a dependency is an expression HOT 2
- Problem Adding a Person HOT 2
- Wrong example HOT 1
- ENAMETOOLONG: name too long upon install on Linux
- Why are collection endpoints' "since" timestamp inclusive?
- New Project Endpoints HOT 2
- Issue With Documentation of ActivityResponseObject HOT 2
- Throwing errors and good practices HOT 5
- Adding webhook HOT 3
- Overwriting Axios interceptor cause issue to the application HOT 2
- Using custom fields with the TypeScript version HOT 3
- Error when just import the package HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from client-nodejs.