[#96] getBookings returns a booking id, but not the booking_hash so the details cannot be fetched

Migrated from Redmine #96 | Author: Ara Howard
Status: Rejected | Priority: Immediate, there is BUG! | Created: 2018-01-26


unless i’m mis-understanding the doc the data getBookings returns objects without hashes, eg:

{"id"=>"1",
 "record_date"=>"2017-08-06 12:57:37",
 "start_date"=>"2017-08-08 10:00:00",
 "end_date"=>"2017-08-08 11:00:00",
 "unit_id"=>"1",
 "text"=>"rus",
 "client"=>"rus",
 "unit"=>"Rus will contact you!",
 "unit_email"=>"rus@brasstaxes.com",
 "event"=>"1 Hour Meeting B",
 "event_id"=>"2",
 "is_confirm"=>"1",
 "client_id"=>"1",
 "client_phone"=>"+3476930653",
 "client_email"=>"rusjude@gmail.com",
 "offset"=>"0",
 "comment"=>"",
 "code"=>"ood0fdm"}

since getBooking requires both an id and hash - where can get the booking_hash?

Redmine Admin wrote:

it should not return hash. Hash returned by book function and needs to be stored in secret place. No way to get any hash by public API without calling create functions.
You can use admin API to get full access to any objects without hash

Ara Howard wrote:

Redmine Admin wrote:

it should not return hash. Hash returned by book function and needs to be stored in secret place. No way to get any hash by public API without calling create functions.
You can use admin API to get full access to any objects without hash

getBookings is in the admin api though?

Ara Howard wrote:

Redmine Admin wrote:

Admin API functions do not return hash because it not needed for admin API