-
Notifications
You must be signed in to change notification settings - Fork 85
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
Can you make it support promise??? #38
Comments
http://bluebirdjs.com/docs/api/promise.promisifyall.html Promise.promisifyAll(pipedrive.Activities); lol |
I found this Stackoverflow helpful Here's how I implemented their suggestion: return new Promise((resolve, reject) => { // Shims old school NodeJS callback approach as ES6 Promise
pipedrive.Deals.getAll({ filter_id }, (err, data) => {
if (err !== null) return reject(err);
resolve(data);
});
}).catch((err) => console.log('ERROR ==>', err)); |
|
Check out this #84 |
Duplicate of #81 |
No description provided.
The text was updated successfully, but these errors were encountered: