SwaggerClient-php

This PHP package is automatically generated by the Swagger Codegen project:

Requirements

PHP 5.4.0 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com//.git"
    }
  ],
  "require": {
    "/": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/SwaggerClient-php/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit lib/Tests

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new Swagger\Client\Api\DefaultApi();
$rpt_type = 1.2; // double | Report type. (0 report, 1 widget, 2 chart).
$rpt_id = 1.2; // double | Report id.
$start = 3.4; // float | Start offset.
$limit = 3.4; // float | Number of results to return. Max 10K.
$sort_by = "sort_by_example"; // string | Sort column.
$sort_type = "sort_type_example"; // string | Sort mode asc/desc.
$from_date = "from_date_example"; // string | Start date time.
$to_date = "to_date_example"; // string | End date time.
$duration = 3.4; // float | Duration range.
$phone = "phone_example"; // string | List of caller phone.
$phone1 = "phone1_example"; // string | List of dialled phones.
$co = "co_example"; // string | List of trunk/co.
$ext = "ext_example"; // string | list of extensions.
$pbx_id = 3.4; // float | list of PBX Ids.
$call_source = 3.4; // float | list of callsource.
$call_type = 3.4; // float | list of call type signatures.(5 Unanswered Calls, 7 Transfered Calls, 8 Forwarded Calls)
$direction = 3.4; // float | list of direction.(0 incoming, 1 outgoing, 2 internal)
$caller_name = "caller_name_example"; // string | list of caller name.
$did = "did_example"; // string | list of did.
$dnis = "dnis_example"; // string | list of dnis.
$acc = "acc_example"; // string | list of account code.
$ring = 3.4; // float | Ring range.Seconds unit.
$cost = 3.4; // float | Cost range.
$group = 3.4; // float | Department/Group id.

try {
    $result = $api_instance->callsGet($rpt_type, $rpt_id, $start, $limit, $sort_by, $sort_type, $from_date, $to_date, $duration, $phone, $phone1, $co, $ext, $pbx_id, $call_source, $call_type, $direction, $caller_name, $did, $dnis, $acc, $ring, $cost, $group);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->callsGet: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://api.pbxdom.com

ClassMethodHTTP requestDescription
DefaultApicallsGetGET /Calls
DefaultApifeaturesChartsGetGET /Features/charts
DefaultApifeaturesReportsGetGET /Features/reports
DefaultApifeaturesWidgetGetGET /Features/widget



Download PHP Sample Code