Translations:User API guide/12/en
From SimplyBook.me
Code example of getting services list
$services = $client->getEventList(); // returns array(array( // 'id' => 1, - service id // 'name' => 'Service 1', - service's name // 'description' => 'Describe your service...', - service description // 'duration' => 60, - service duration // 'hide_duration' => 0, - Hide duration to clients flag, // 'picture' => null, - file name of picture or null // 'picture_path' => '/uploads/apidemo/event__picture/small/', - full path to picture, // 'position' => 1 - service position // 'is_active' => 1, - the service is activated // 'is_public' => 1, - the service is allowed to book by clients // ), ...)
Code example of getting service performers list
$services = $client->getUnitList(); // returns array(array( // 'id' => 1, - performer id // 'name' => 'Provider 1', - performer name // 'phone' => '111111111', - perfomer phone number // 'description' => 'Describe your performer...', - performer description // 'email' => 'test@gmail.com', - perfomer email, // 'is_active' => 1, - the performer is activated // 'is_visible' => 1, - the perfomer is visible for clients, // 'picture' => null, - file name of picture or null, // 'picure_path' => '/uploads/apidemo/unit_group__picture/small/', - full path to picture // 'position' => 1, - performer position // 'qty' => 1, performer quantity // ), ...)
<be>