poing/laravel-wombatdialer-api

WombatDialer API Library for Laravel

0.1.1 2021-03-22 09:18 UTC

README

Build Status Coverage Status StyleCI

laravel-wombatdialer-api

WombatDialer API Library for Laravel

Getting Started

1.Install WombatDialer

Run this at the command line:

composer require poing/laravel-wombatdialer-api

This will update composer.json and install the package into the vendor/ directory.

2. Install Config file

To over-ride the default settings, initialize the config file by running this command:

php artisan wombatdialer:config

Then open config/wombatdailer.php and edit the settings .

3. How to Use

With Values from the configuration file, and after authenication . We can perform restful operations on the API.

Simple Usage

If we need to create an Asterisk API .

$someData =  new \WombatDialer\Controllers\Edit\Asterisk;
$data = []// data's like 'description' ,'serverType'
$someData->create($data);

To show an existing Asterisk API,

$someData =  new \WombatDialer\Controllers\Edit\Asterisk;
$someData->show(1);

4. Design Pattern

The design pattern replicates the WombatDialer.

api
├── addkey
├── callinfo
├── calls
├── campaigns
├── dialer
├── edit
│   ├── asterisk
│   ├── campaign
│   │   ├── disposition
│   │   ├── ep
│   │   ├── list
│   │   ├── oh
│   │   ├── reschedule
│   │   └── trunk
│   ├── ep
│   ├── list
│   │   ├── logs
│   │   └── record
│   ├── oh
│   └── trunk
├── inspect_dialer
├── lists
├── live
│   ├── calls
│   └── runs
├── recallinfo
├── reports
│   ├── logs
│   ├── runs
│   └── stats
├── reserve
├── runlists
├── runs
└── sysup
    └── jmx

Note:

From the Structure under the Edit , there were 6 APIs.

Asterisk
Campaign
Ep
List \\ List is used as Lists
Oh
Trunk

And under the Edit\Campaign\:

Ep
List  \\List is used as Lists 
Oh
Trunk
Reschedule
Disposition

The List API has been replaced as Lists in the package. Since List can neither used as a namespace or a className. But the URL remains the same as

'/edit/list/'

5 .Link for Reference

wombat-manual