User API guide/nl: Difference between revisions

Created page with "Bekijk [https://simplybook.me/api_example/index.html een voorbeeld van een API-gebaseerde boekingsinterface] en lees ook [https://simplybook.me/api_example/scheduler.js de broncode] van deze oplossing. <br><br><br>"
Tags: Mobile edit Mobile web edit
Created page with "'''Codevoorbeeld voor het ophalen van de lijst met services''' <br><br> <nowiki>$services = $client->getEventList(); // retourneert array(array( // 'id' => 1, - service-id // 'name' => 'Service 1', - naam van de service // 'description' => 'Beschrijf uw service...', - beschrijving van de service // 'duration' => 60, - duur van de service // 'hide_duration' => 0, - vlag om duur voor klanten te verbergen, // 'picture' => null,..."
Tags: Mobile edit Mobile web edit
Line 112: Line 112:
<br><br>
<br><br>


<div lang="en" dir="ltr" class="mw-content-ltr">
'''Codevoorbeeld voor het ophalen van de lijst met services'''
'''Code example of getting services list'''
<br><br>
<br><br>
  <nowiki>$services = $client->getEventList();
  <nowiki>$services = $client-&gt;getEventList();
// returns array(array(
// retourneert array(array(
//    'id' => 1, - service id
//    'id' =&gt; 1, - service-id
//    'name' => 'Service 1', - service's name
//    'name' =&gt; 'Service 1', - naam van de service
//    'description' => 'Describe your service...', - service description
//    'description' =&gt; 'Beschrijf uw service...', - beschrijving van de service
//    'duration' => 60, - service duration
//    'duration' =&gt; 60, - duur van de service
//    'hide_duration' => 0, - Hide duration to clients flag,
//    'hide_duration' =&gt; 0, - vlag om duur voor klanten te verbergen,
//    'picture' => null, - file name of picture or null
//    'picture' =&gt; null, - bestandsnaam van de afbeelding of null
//    'picture_path' => '/uploads/apidemo/event__picture/small/', - full path to picture,
//    'picture_path' =&gt; '/uploads/apidemo/event__picture/small/', - volledig pad naar afbeelding,
//    'position' => 1 - service position
//    'position' =&gt; 1 - positie van dienst
//    'is_active' => 1, - the service is activated
//    'is_active' =&gt; 1, - de dienst is geactiveerd
//    'is_public' => 1, - the service is allowed to book by clients
//    'is_public' =&gt; 1, - de dienst kan door klanten worden geboekt
// ), ...)</nowiki>
// ), ...)</nowiki>
<br><br>
<br><br>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">