PHP code example of fonolo / sdk

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

    

fonolo / sdk example snippets




$client = new Fonolo\Client(<account sid>, <auth token>);
try
{
    $res = $client->callback->start(array(

        'fc_number' => '14163662500',
        'fc_option' => 'CO529c5278b2cefeabc984506e785d8cb0'
    ));

} catch(Fonolo\Exceptions\FonoloException $e)
{
    echo $e->getMessage();
}