PHP code example of mfajfr / daktela-api

1. Go to this page and download the library: Download mfajfr/daktela-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mfajfr / daktela-api example snippets


define('API_KEY', 'xxxxx'); // API section in Daktela

\Daktela\Connection::setSubDomain('example'); // Name of subdomain example.daktela.com
\Daktela\Connection::setAccessToken(API_KEY);

    $rows = \Daktela\Models\ActivityCall\ActivityCall::fetch([
        // paginating, sorting, filtering ...
    ]);

    $call = \Daktela\Models\ActivityCall\ActivityCall::read('nameOfActivityCall');

    $activity = \Daktela\Models\ActivityCall\Activity::read('nameOfActivity');
    $activity->statuses($force = true|false) // If $false == true then reload data