PHP code example of uwaziimobile / uwazii-php

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

    

uwaziimobile / uwazii-php example snippets




use Uwazii\UwaziiClient as Uwaziimobile;
$uwazii = new \Uwaziimobile();
$access_token = $uwazii->accessToken(YOUR_USERNAME,YOUR_PASSWORD);
$response = $uwazii->sendMessage($access_token,'SENDERID','PHONE','MESSAGE');

echo $response;