Kerio APIs Client Library for PHP 1.4.0.234
  • Namespace
  • Class
  • Tree
  • Deprecated

Namespaces

  • None
  • PHP

Classes

  • KerioApi
  • KerioApiSocket
  • KerioConnectApi
  • KerioControlApi
  • KerioDirectoryApi
  • KerioOperatorApi
  • KerioWorkspaceApi
  • SamepageApi

Interfaces

  • KerioApiInterface
  • KerioApiSocketInterface

Exceptions

  • KerioApiException

Class KerioControlApi

Administration API for Kerio Control. STATUS: In progress, might change in the future

This class implements product-specific methods and properties and currently is under development. Class is not intended for stable use yet. Functionality might not be fully verified, documented, or even supported.

Please note that changes can be made without further notice.

Example:

<?php
require_once(dirname(__FILE__) . '/src/KerioControlApi.php');

$api = new KerioControlApi('Sample application', 'Company Ltd.', '1.0');

try {
    $api->login('firewall.company.tld', 'admin', 'SecretPassword');
    $api->sendRequest('...');
    $api->logout();
} catch (KerioApiException $error) {
    print $error->getMessage();
}
?>
KerioApi implements KerioApiInterface
Extended by KerioControlApi
Copyright: Copyright © 2012-2012 Kerio Technologies s.r.o.
License: http://www.kerio.com/developers/license/sdk-agreement
Version: 1.4.0.234
Located at KerioControlApi.php

Methods summary

public
# __construct( string $name, string $vendor, string $version )

Class constructor.

Class constructor.

Parameters

$name
string
Application name
$vendor
string
Application vendor
$version
string
Application version

Throws

KerioApiException

Overrides

KerioApi::__construct
public array
# getConstants( )

Get constants defined by product.

Get constants defined by product.

Returns

array
Array of constants

Methods inherited from KerioApi

checkHttpResponse(), clean(), debug(), downloadFile(), getApiVersion(), getApplication(), getCookie(), getDebug(), getFile(), getHttpGetRequest(), getHttpPostRequest(), getHttpPutRequest(), getHttpRequest(), getJsonRpc(), getToken(), login(), logout(), send(), sendRequest(), sendRequestJson(), setCookie(), setDebug(), setHostname(), setJsonRpc(), setTimeout(), setToken(), uploadFile()

Magic methods summary

Constants summary

Constants inherited from KerioApi

CRLF, HTTP_SERVER_OK

Properties summary

protected array $jsonRpc
#

Defines product-specific JSON-RPC settings

Defines product-specific JSON-RPC settings

Properties inherited from KerioApi

$application, $cookies, $headers, $hostname, $name, $token, $version

Kerio APIs Client Library for PHP 1.4.0.234 API documentation generated by ApiGen 2.8.0