[#403] unable to use client.book command in my jquery script

Migrated from Redmine #403 | Author: christopher jones
Status: New | Priority: High, I’m very impatient | Created: 2019-08-06


Hi,
I had a go at implementing my version of the code on this page: API documentation | SimplyBook.me Online Scheduling
I am using my api key, and my company login. I login as normal and then get the event list. I store client as a global variable for later access.
I am able to see my services and service providers so I am happy that most of the code in the example works.
The code all works up to the bit where I need to call
var result = client.book(

When I make this call, I get error code [-32068] Client authorization required
I saw in another post you mentioned adding client_login:
client_password:
to the clientData Json. When I do that, and put in my admin password and username, or a test email password, I get [-32065] Client with given login/password not found

What should I be doing with the client book command that Im not doing?

Redmine Admin wrote:

Hi, it means you enabled client login custom feature which is not supported in this API explorer. You have 2 options: disable it or write own API based integration