[#409] new booking for client

Migrated from Redmine #409 | Author: elena streep
Status: New | Priority: High, I’m very impatient | Created: 2019-08-14


hi
how can i login a client and then booking it for a service? (i dont want to create new client when i use book api)

Redmine Admin wrote:

Hi,

please pass client_id and client_sign or client_login and client_password information as clientData.
Do not pass any other client data.
Make sure that you already have this client.

client_sign is md5(clilentId . clientHash . yourSecretKey)

Related ticket Bug #399: Process to make a book and make the payment confirm - API - Simplybook.me support for developers

elena streep wrote:

Ok! Thank you very much for the response.

elena streep wrote:

i use of this like below in php:
$signUser=$admin->book(9,9,“2019-8-27”,“11:00”,[‘client_login’=>‘aghabazazsafoora@gmail.com’, ‘client_password’=>‘123456safoora’]);
print_r($signUser);
but get me this error:
Fatal error: Uncaught Exception: Request error: Client with given id not found in C:\xampp\htdocs\JsonRpcClient\JsonRpcClient.php:57 Stack trace: #0 C:\xampp\htdocs\JsonRpcClient\index.php(956): JsonRpcClient->__call(‘book’, Array) #1 {main} thrown in C:\xampp\htdocs\JsonRpcClient\JsonRpcClient.php on line 57

Redmine Admin wrote:

please provide your company login and API url you are using