Migrated from Redmine #1205 | Author: Günther Lagler Status: New | Priority: Normal | Created: 2024-03-27
I get the token, but no next step is working. I thaught, getting the bookinglist would be a good start.
Trying this (with method GET from docu):
url: https://user-api.simplybook.it/admin/bookings
conn: {X-Token=[b02c945b2258a96c49c40323a29909a98cc5c36ed0fe4ce370b60a6f1e95ecd7], X-Company-Login=[aderlasskalender], Content-Type=[application/json]}
It returns this (looks like a description for wrong calls):
{“transport”:“POST”,“envelope”:“JSON-RPC-2.0”,“contentType”:“application/json”,“SMDVersion”:“2.0”,“target”:“/admin/bookings”,“services”:{“getBookings”:{“envelope”:“JSON-RPC-2.0”,“transport”:“POST”, …
Using method POST, it returns:
{“error”:{“code”:-32600,“message”:“Access denied”,“data”:},“id”:null}
So first, is GET (like in the docu) or POST (like in the answer) used, and why access denied with a valid company-login and token?
The example-code works fine, but what is the way to receive all or only new bookings?
I created a test-meeting, but didnt get it with getEventList.
Can you give me the http request for getting bookings?