PHP code example of toku / caas_sdk

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

    

toku / caas_sdk example snippets




use \Toku\CaaS\V1\CallHandle\CallController;

$ctrl = new CallController();

$ctrl->PlayTTS("This is a test message", "en", "f")->Response();

$ctrl->PlayTTS("This is a test message one", "en", "f")->
       PlayTTS("This is a test message two", "en", "f")->
       Response();



	//Require autoloading file if your framework does not handle autoloading
	\CallHandle\CallController;

	//Create a new call controller instance
	$ctrl = new CallController();
	
	//Optional
	header('Content-Type: application/json');

	//Use the call controller to send call handle command such as PlayTTS command
	$ctrl->PlayTTS("This is a test message", "en", "f")->
	  Response();