- Begins migration of test suite to mocked api calls instead of hitting HubSpot "live"
- Added support for some api endpoints such as timelines.
Breaking changes:
- Remove support for passing callbacks
The usage of callbacks throughout node-hubspot was inconsistent in functionality. There was a lot of code to maintain callback support that we can remove now that promises are returned by all functions.
- Added support for promises
- Added support for OAuth2
- Added convenience methods to support OAuth
- Tests working on demo instance of HubSpot
- Added support for some missing methods
Breaking changes:
- New instantiation of client
- node > 6.10.0 required (see below)
Notes:
- new version is ES2015 heavy and has only been tested in version of node > 6.10.0
- hasn't been tested in browser
- some babel magic would be needed for use in older versions of node (PR welcome!)
- Removed events.get() and campaigns.tracking.events() by merging them into campaigns.events()
- Added client.files.getOne()
- Fixed client.files.get()
- Updated README