PHP code example of nophaa / php-sipwise-api
1. Go to this page and download the library: Download nophaa/php-sipwise-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/ */
nophaa / php-sipwise-api example snippets
// This file is generated by Composer
= Http\Adapter\Guzzle6\Client::createWithConfig(['verify'=>false]);
$apiClient = Sipwise\Client::createWithHttpClient($adapter);
$apiClient->authenticate('username','password');
$apiClient->setUrl('https://127.0.0.1:1443');
$apiClient->api('subscriber')->all(['username' => xxx]);
bash
$ composer