A laravel 10 package to interact with voipnow System API
Note: The token credential information will be stored to the users table, with token and expiry information for the authenticated user.
You can install the package via composer:
composer require kamrankhosa/laravel-voipnow
From the command-line run:
php artisan vendor:publish --provider="KamranKhosa\VoipNow\VoipNowServiceProvider"
Add the following keys to your .env file.
VOIPNOW_VERSION=
VOIPNOW_DOMAIN=
VOIPNOW_KEY=
VOIPNOW_SECRET=
The following key is optional
VOIPNOW_PARENT_IDENTIFIER=
You can call a VoipNow SystemAPI method directly by using the facace (e.g. VoipNow::{VOIPNOWFUNCTION}
). For a full reference of all the available functions refer to the VoipNow SystemAPI documenatation.
Retrieve a list of all the service providers
use VoipNow;
return VoipNow::GetServiceProviders();
Retrieve the organization account details
use VoipNow;
return VoipNow::GetOrganizationDetails(['identifier' => 'XXX']);
OR
return VoipNow::GetOrganizationDetails(['ID' => 'XXX']);
If you do not use the Facade, you can call it with the app() helper.
$voipNow = app('voipnow');
return $voipNow->GetOrganizationDetails(['identifier' => 'XXX']);
OR
return $voipNow->GetOrganizationDetails(['ID' => 'XXX']);
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email development@go-trex.com instead of using the issue tracker.
Please open an issue in github
The MIT License (MIT). Please see License File for more information.