项目作者: riazXrazor

项目描述 :
Laravel wrapper for Slybroadcast api integration voice messaging for business.
高级语言: PHP
项目地址: git://github.com/riazXrazor/slybroadcast.git
创建时间: 2017-04-24T11:07:36Z
项目社区:https://github.com/riazXrazor/slybroadcast

开源协议:GNU General Public License v3.0

下载


Slybroadcast

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.

  1. {
  2. "require": {
  3. "riazxrazor/slybroadcast": "^1.0.0"
  4. }
  5. }

Or you can run this command from your project directory.

  1. composer require riazxrazor/slybroadcast

Configuration

Open the config/app.php and add this line in providers section.

  1. Riazxrazor\Slybroadcast\SlybroadcastServiceProvider::class,

add this line in the aliases section.

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

get the config by running this command.

  1. php artisan vendor:publish --tag=config

config option can be found app/slybroadcast.php

  1. 'USER_EMAIL' => '',
  2. 'PASSWORD' => '',
  3. 'DEBUG' => FALSE

Basic Usage

You can use the function like this.

  1. \Slybroadcast::sendVoiceMail([
  2. 'c_phone' => "5104007646,5104007647,5104007648",
  3. 'c_url' =>"https://ia802508.us.archive.org/5/items/testmp3testfile/mpthreetest.mp3",
  4. 'c_record_audio' => '',
  5. 'c_date' => 'now',
  6. 'c_audio' => 'Mp3',
  7. 'c_callerID' => "18442305060",
  8. 'mobile_only' => 1,
  9. 'c_dispo_url' => 'https://2e2fe124.ngrok.io/voicepostback'
  10. ])->getResponse();
  11. \Slybroadcast::pause($session_id)->getResponse();
  12. \Slybroadcast::resume($session_id)->getResponse();
  13. \Slybroadcast::accountMessageBalance()->getResponse();
  14. \Slybroadcast::listAudioFiles()->getResponse();
  15. // if you wana user different credentials for api call
  16. \Slybroadcast::setCredentials($user_email,$password);