Migrated from Redmine #160 | Author: Egor Timofeev
Status: Rejected | Priority: Immediate, there is BUG! | Created: 2018-05-03
Hello,
Can you please check the call I’m doing below? For some reasons it stopped working in last few days.
{ host: ‘user-api.simplybook.me’,
path: ‘/admin’,
port: 80,
method: ‘POST’,
headers:
{ ‘X-Company-Login’: ‘XXXX’,
‘X-User-Token’: ‘XXXX’,
host: ‘user-api.simplybook.me:80’,
‘content-type’: ‘application/json’,
‘content-length’: 173 } }
{“jsonrpc”:“2.0”,“method”:“getBookings”,“params”:[{“date_from”:“2018-05-01”,“time_from”:“00:00:00”,“date_to”:“2018-05-04”,“time_to”:“00:00:00”,“order”:“start_date”}],“id”:3}
I’m supposed to get bookings list but get nothing.
Redmine Admin wrote:
we can’t check it for xxxx company. It seems you don’t have bookings for this dates
Egor Timofeev wrote:
company is mydrivingacademy and I do have bookings.
Redmine Admin wrote:
please provide us server responce
Egor Timofeev wrote:
One more time.
Server request:
2018-05-03 01:30:52: call [1] [getBookings]
{ host: ‘user-api.simplybook.me’,
path: ‘/admin’,
port: 80,
method: ‘POST’,
headers:
{ ‘X-Company-Login’: ‘mydrivingacademy’,
‘X-User-Token’: ‘XXXX’,
host: ‘user-api.simplybook.me:80’,
‘content-type’: ‘application/json’,
‘content-length’: 173 } }
{“jsonrpc”:“2.0”,“method”:“getBookings”,“params”:[{“date_from”:“2018-05-01”,“time_from”:“00:00:00”,“date_to”:“2018-05-04”,“time_to”:“00:00:00”,“order”:“start_date”}],“id”:1}
End call [1] [getBookings] counter [1]
Server response:
{ result: , id: ‘1’, jsonrpc: ‘2.0’ }
Dmytro Bondarev wrote:
Hi! The time_from and time_to - is limit by start time of booking.
probably you do not have bookings started at 00:00