Stephan Bönnemann wrote:
Dmitry Bondarev wrote:
Hello!
Why is this not documented correctly, why can’t you yourself tell me how it’s supposed to work, why is it that I randomly can’t use named arguments without any hint in the docs, etc.
The documentation is correct please check
Company administration service methods - Company administration service methods - SimplyBook.me
Cool, that seems like documentation that is better. Only question is why that’s so hard to find then. In my initial post I told you I’m using: API documentation | SimplyBook.me Online Scheduling and that is definitely incorrect in many ways.
As described in documentation book($eventId, $unitId, $clientId, $startDate, $startTime, $endDate, $endTime, $clientTimeOffset, $additional, $count, $batchId, $recurringData)
And you pass $eventId, $unitId, $clientId, $startDate, $startTime, $endDate, $endTime, $additional, you are missing one argument - clientTimeOffset (pass zero if you are in the same timezone).
I sent you example how you should pass arguments.
Your example above is also missing the clientTimeOffset ¯_(ツ)_/¯
Please check documentation again there is format description and API explorer where you can check API calls.
Following the documentation link you sent me it’s working. It’s even working with named arguments, but ONLY if I also pass clientTimeOffset, which is not reflected in the error message, nor in the docs.
The field is called additional, not additionalFields. I attached screenshots to illustrate that this wrong in both documentations.
On top of that the format of the additional object itself is not documented anywhere, and it’s entirely up for the user to guess it.
If you want to remain on your standpoint that the documentation is sufficient here, and If you don’t want to admit the slightest shortcoming on your side, that’s not at all understandable.
Even if you weren’t objectively wrong about that, I’m a customer, and a very experienced API integrator. If you don’t want to listen to someone telling you about your problems here, then you’ll soon enough find out where that leads you as a business.
This incident and the overall API quality/documentation make use extremely doubtful whether simplybook was the right choice for our business.