PHP code example of databowl / databowl-vapi

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

    

databowl / databowl-vapi example snippets


$configArray = [
    'privateKey' => '',
    'publicKey' => '',
];
 
$config = \Databowl\Vapi\ClientConfig::createFromArray($configArray);
$client = new \Databowl\Vapi\Client($config);

$request = new \Databowl\Vapi\Validators\Hlr();
$request->setMobile('your-mobile-number');
 
$result = $client->sendRequest($request);