-
Notifications
You must be signed in to change notification settings - Fork 116
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
Node-style callbacks? #16
Comments
Hi @pcothenet Thanks for getting in touch. We're still very much developing this lib, and we're hopeful we can get it to something everyone really loves using. Re. your first point, would you mind checking out this diff? #18 |
That looks way better yes! (I don't think the doc is up-to-date though). No worries, I'm actually super happy that you guys are building an official library. Happy to help! |
@pcothenet docs updated with a note about calllbacks https://www.npmjs.com/package/intercom-client |
👍 for what @pcothenet said. If you're going to expose callback-style functions, it should really follow node-style callbacks. The great part of this is users of the API can even integrate things like Bluebird's promisify() with their code to wrap your library if the convention is followed :D |
@tejasmanohar when you say "node-style" are you referring to promises too? I may split out promises into another issue and close this to reduce confusion if so. |
@bobjflong Nope, not at all. |
@tejasmanohar but the callbacks currently support the form |
Ah ok perfect, sorry, I was looking at the wrong thing. Thanks for clarifying, @bobjflong! I would recommend opening another issue for promises as well then as this is a bit misleading in title. |
Done here: #45 I will likely add this today |
Thanks, @bobjflong! Till then, users should be able to promisify this using a module like Bluebird or an independent one on NPM to get the same end result :) |
Hi team,
I've been looking at switching to the official client from this unoffical one.
The two main problems:
Sticking to the other library in the meantime!
The text was updated successfully, but these errors were encountered: