PHP code example of bland-industries / timing-api

1. Go to this page and download the library: Download bland-industries/timing-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/ */

    

bland-industries / timing-api example snippets


return [
    "max_batch_size"    => 50, // the max batch size Mixpanel will accept is 50,
    "max_queue_size"    => 1000, // the max num of items to hold in memory before flushing
    "debug"             => false, // enable/disable debug mode
    "host"              => "https://web.timingapp.com", // the host name for api calls
    "use_ssl"           => true, // use ssl when available
    "error_callback"    => null, // callback to use on consumption failures
    "version"           => "v1", // default api version
    "token"             => env('TIMING_API_TOKEN') // api token
];

$timingApi = new BlandIndustries\TimingApi();
echo $timingApi->echoPhrase('Hello, BlandIndustries!');
bash
php artisan vendor:publish --tag="timing-api-config"