cronofy / cronofy-node

Node wrapper for the Cronofy API
https://docs.cronofy.com/developers
MIT License
49 stars 23 forks source link

Doing a .readEvents while providing next_page is broken #28

Closed AdriVanHoudt closed 7 years ago

AdriVanHoudt commented 7 years ago

If you provide a next page option https://github.com/cronofy/cronofy-node/blob/master/src/index.js#L183 (which I get back from the api in a previous call) It will still prefix the provided path with the cronofy host here https://github.com/cronofy/cronofy-node/blob/master/src/index.js#L28

I think the easiest solution is to just see if the next page options starts with this.urls.api and then cut it off.