[#257] Set special day planning for a provider

Migrated from Redmine #257 | Author: Brayan Oduro
Status: New | Priority: Normal | Created: 2018-10-15


Hello.
I’am actually trying your API. I have some issues.
Is it possible to set a special day for a providers with your API ?
I tried to use the setWorkDayInfo() function, with the param date set (date is used to set worktime for special date) but it doesn"t works ..

Thanks for the help

Redmine Admin wrote:

Please provide us raw http request to investigate. This function should work as described here Company administration service methods - Company administration service methods - SimplyBook.me

Brayan Oduro wrote:

Redmine Admin wrote:

Please provide us raw http request to investigate. This function should work as described here Company administration service methods - Company administration service methods - SimplyBook.me

This is the array i try to pass to the SetworkDayInfo :

$info = [
    "start_time"=>"10:00",
    "end_time"=>"17:00",
    "is_day_off"=>1,
    "breaktime"=>["start_time"=>"14:00","end_time"=>"15:00"],
    "index"=>"5",
    "name"=>"",
    "date"=>"2018-10-19",
    "unit_group_id"=>12,
    "event_id"=>""
];

$setWorkDayInfo = $client_admin->setWorkDayInfo($info);

I’m trying to set special day for a specific provider but it doesn’t works

Brayan Oduro wrote:

Brayan Oduro wrote:

Redmine Admin wrote:

Please provide us raw http request to investigate. This function should work as described here Company administration service methods - Company administration service methods - SimplyBook.me

This is the array i try to pass to the SetworkDayInfo function :

$info = [
    "start_time"=>"10:00",
    "end_time"=>"17:00",
    "is_day_off"=>1,
    "breaktime"=>["start_time"=>"14:00","end_time"=>"15:00"],
    "index"=>"5",
    "name"=>"",
    "date"=>"2018-10-19",
    "unit_group_id"=>12,
    "event_id"=>""
];

$setWorkDayInfo = $client_admin->setWorkDayInfo($info);

I’m trying to set special day for a specific provider but it doesn’t works

Brayan Oduro wrote:

If i try to set a special day from my admin panel of course it works.
But if we take a look about the payload sent for the request, params are different .. ( see capture )

Brayan Oduro wrote:

Impossible to see the capture… => {id: 0, start_time: “00:00:00”, end_time: “24:00:00”, is_day_off: 0, breaktime: , name: “2018-10-19”,…}
breaktime:
data_source: null
date: “2018-10-19”
end_time: “24:00:00”
id: 0
index: 0
is_day_off: 0
is_special_day: 0
name: “2018-10-19”
special: 1
start_time: “00:00:00”
work_day_duration: 0
work_day_id: “373”
work_day_name: “”