Migrated from Redmine #993 | Author: Ðртур Чернієвич Status: Feedback | Priority: Immediate, there is BUG! | Created: 2022-12-26
Hello,
I need get all bookings list of client. But when I try get list by getClientBookings I get only one booking item. I know, that client has much more bookings.
I use getClientBookings ($clientId, $sign, $filter). Enter clientId and clientHash that get after make a booking.
And I always get only one booking.
I also notes that when we make a new booking then it creates new clientId and clientHash. Why?
I need help, please. I need get all booking list of client.
It worked before and now works. But when I want make a booking it show me error that client is not authorized.
RPC Exception: -32068 Client authorization required.
I make a booking via jsonRPC
{“jsonrpc”:“2.0”,“method”:“book”,“params”:[1,2,“2022-12-30”,“13:00:00”,{“name":“sss”,“email”:"sss@gmail.com”,“phone”:“380950755445”},,null,null,null],“id”:873448250}
When I disabled Client Login Futures then I got an success in make a booking.
{“result”:{“require_confirm”:true,“bookings”:[{“id”:“1”,“event_id”:3,“unit_id”:3,“client_id”:“4”,“client_hash”:“39f3168870bcdd1ecfbdc04f984bfee9”,“start_date_time”:“2022-12-29 13:00:00”,“end_date_time”:“2022-12-29 14:00:00”,“time_offset”:“0”,“is_confirmed”:“1”,“require_payment”:true,“code”:“38a0qct”,“hash”:“f407e59fb354ba96659a6887b4ff0f92”}],“invoice”:null},“id”:“534305167”,“jsonrpc”:“2.0”}
The URL for admin login “https://user-api.simplybook.me/admin/login”
Here is the data that jsonRPC sends {“jsonrpc”:“2.0”,“method”:“getUserToken”,“params”:[“andromonew”,“artur”,“AndromoTeam”],“id”:62511427}
It’s really admin’s data but I can’t get user token. Please test my data and tell me how can I fix it?