pipedrive / client-nodejs

Pipedrive API client for NodeJS
MIT License
205 stars 82 forks source link

How do i make it work with angular 2 only! #70

Closed DeepakTivari closed 4 years ago

DeepakTivari commented 6 years ago

I can't find any type definition that will allow the pipedrive API to work with angular 2 / without nodejs

tot-ra commented 6 years ago

@DeepakTivari this is nodejs library only (thus the naming) and there is no official browser client js library (and thus specifically angular). You could opensource your library so that its mentioned in https://developers.pipedrive.com/ or you could add pull request here, or to https://github.com/DefinitelyTyped/DefinitelyTyped

eerootsus commented 4 years ago

Closing this issue as the initial question has been answered a long time ago.

maxime1992 commented 2 years ago

The first error I had when trying to use the SDK in the browser was that Buffer is missing so I had hope it'd be the only one and tried using the Buffer polyfill: https://www.npmjs.com/package/buffer

But no luck I got a bunch of other errors after that so I'll just use the API.

It'd be nice to have this supported directly in the browser as the SDK handles (I believe) token refresh etc...