jumper423/voximplant-phpsdk

Voximplant HTTP API php sdk

1.0 2018-02-21 16:30 UTC

This package is auto-updated.

Last update: 2024-11-05 19:22:06 UTC


README

Voximplant HTTP API description

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/DmitryIvaneychik/phpsdk.git"
    }
  ],
  "require": {
    "voximplant/phpsdk": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

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

Getting Started

Please follow the installation procedure and then run the following:

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

// Configure API key: api_key
Voximplant\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');

// Configure account name: account_name
Voximplant\Configuration::getDefaultConfiguration()->setApiKey('account_name', 'YOUR_ACCOUNT_NAME');

$api_instance = new \Voximplant\Api\AccountsAuthenticationApi();

try {
    $result = $api_instance->logon();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AccountsAuthenticationApi->logon: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://api.voximplant.com/platform_api/

Documentation For Models

Documentation For Authorization

account_name

  • Type: Account name
  • Account name parameter name: account_name
  • Location: URL query string

api_key

  • Type: API key
  • API key parameter name: api_key
  • Location: URL query string

Author

Dmitry Ivaneychik ivaneychik@zingaya.com