DialMyCalls
The DialMyCalls API, (*1)
For more information, please visit https://www.dialmycalls.com, (*2)
Requirements
PHP 5.4.0 and later, (*3)
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json:, (*4)
{
"repositories": [
{
"type": "git",
"url": "https://github.com/dialmycalls/php-sdk-v2.git"
}
],
"require": {
"dialmycalls/php-sdk-v2": "*@dev"
}
}
Then run composer install, (*5)
Manual Installation
Download the files and include autoload.php:, (*6)
require_once('/path/to/DialMyCalls/autoload.php');
Tests
To run the unit tests:, (*7)
composer install
./vendor/bin/phpunit lib/Tests
Getting Started
Please follow the installation procedure and then run the following:, (*8)
setApiKey('X-Auth-ApiKey', 'YOUR_API_KEY');
// Configure HTTP basic authorization: basicAuth
DialMyCalls\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
DialMyCalls\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
$api_instance = new \DialMyCalls\Api\Accounts();
$createAccessAccountParameters = new \DialMyCalls\Models\CreateAccessAccountParameters(); // \DialMyCalls\Models\CreateAccessAccountParameters | Request body
try {
$result = $api_instance->createAccessAccount($createAccessAccountParameters);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling Accounts->createAccessAccount: ', $e->getMessage(), PHP_EOL;
}
?>
Documentation for API Endpoints
All URIs are relative to https://api.dialmycalls.com/2.0, (*9)
Documentation For Models
Documentation For Authorization
api_key
-
Type: API key
-
API key parameter name: X-Auth-ApiKey
-
Location: HTTP header
basicAuth
-
Type: HTTP basic authentication
Author
support@dialmycalls.com, (*10)