PHP code example of riazxrazor / slybroadcast

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

    

riazxrazor / slybroadcast example snippets


Riazxrazor\Slybroadcast\SlybroadcastServiceProvider::class,

'Slybroadcast' => Riazxrazor\Slybroadcast\SlybroadcastFacade::class




\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);                               
                                                                     


console
php artisan vendor:publish --tag=config