riazxrazor / slybroadcast
Installs: 1 874
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 3
Open Issues: 0
Requires
- php: ^7.0
- guzzlehttp/guzzle: ^6.2
This package is not auto-updated.
Last update: 2024-11-15 22:09:33 UTC
README
Laravel wrapper for Slybroadcast api integration voice messaging for business.
Api Documentation
For documentation on the api please refer to https://www.mobile-sphere.com/vmb2/MobileSphere_slybroadcast_API_v2.0.pdf for register and login visit http://www.slybroadcast.com/
Installation
Open composer.json
and add this line below.
{ "require": { "riazxrazor/slybroadcast": "^1.0.0" } }
Or you can run this command from your project directory.
composer require riazxrazor/slybroadcast
Configuration
Open the config/app.php
and add this line in providers
section.
Riazxrazor\Slybroadcast\SlybroadcastServiceProvider::class,
add this line in the aliases
section.
'Slybroadcast' => Riazxrazor\Slybroadcast\SlybroadcastFacade::class
get the config
by running this command.
php artisan vendor:publish --tag=config
config option can be found app/slybroadcast.php
'USER_EMAIL' => '',
'PASSWORD' => '',
'DEBUG' => FALSE
Basic Usage
You can use the function like this.
\Slybroadcast::sendVoiceMail([ 'c_phone' => "5104007646,5104007647,5104007648", 'c_url' =>"https://ia802508.us.archive.org/5/items/testmp3testfile/mpthreetest.mp3", 'c_record_audio' => '', 'c_date' => 'now', 'c_audio' => 'Mp3', 'c_callerID' => "18442305060", 'mobile_only' => 1, 'c_dispo_url' => 'https://2e2fe124.ngrok.io/voicepostback' ])->getResponse(); \Slybroadcast::pause($session_id)->getResponse(); \Slybroadcast::resume($session_id)->getResponse(); \Slybroadcast::accountMessageBalance()->getResponse(); \Slybroadcast::listAudioFiles()->getResponse(); // if you wana user different credentials for api call \Slybroadcast::setCredentials($user_email,$password);