Update this SDK to be inline with current API docs
Opened this issue · 3 comments
findchris commented
For example, there's a call to POST /spaces/:id/events
for reserving a room, but this SDK appears not to support it.
Am I missing something? I'd expect to be able to do:
robin.api.spaces.events.create(spaceId, eventData)
findchris commented
I looked around, didn't see anything, so here's a patch.
zachdunn commented
Thanks for the report. We're due for some spring cleaning on this SDK's convenience methods.
In the meantime, you can call endpoints without direct support via the following convention:
sdk.api.POST(`/events/${eventID}`, params).then(response => response.getData());
sdk.api.GET(`/events/${eventID}`).then(response => response.getData());
// etc.
Ref:
findchris commented
👍 on adding the /free-busy/spaces
endpoint as well.