Migrated from Redmine #113 | Author: Robert Hamilton
Status: Resolved | Priority: Normal | Created: 2018-02-19
I’ve been working hard on getting the API to work with VB and I’ve made some significant progress.
I realize you don’t have any code examples for VB and I suppose posting my code wouldn’t be of much help. But I’ve managed to get the token and I’ve managed to get the getEventsList method to work.
For some reason when I use a similar approach to using the getBookings method I’m denied. I just used getBookings but I didn’t pass any parameters so I had expected to get a listing of bookings. Instead I get this response:
{“error”:{“code”:-32600,“message”:“Access denied”,“data”:null},“id”:“4”,“jsonrpc”:“2.0”}
Same thing when I pass start_date and other parameters - always denied.
I realize that I need to use https://user-api.simplybook.me/admin for getBookings instead of https://user-api.simplybook.me but other than that, is there anything else I need to do differently between getEventslist and getBookings? Like use your secret token or get a new token with your user name and password or something?
Any ideas where I could go from here to track down the problem?