Méthode | Description | |
---|---|---|
__construct ( string $serviceName, string $namespace, string $address, integer $port = null, string $protocol = self::PROTOCOL_HTTP, integer $version = 1, boolean $verifySSL = false ) | Setup API | |
activateDebug ( ) : Synology_Abstract | Activate the debug mode |
Méthode | Description | |
---|---|---|
_getBaseUrl ( ) : string | Get the base URL | |
_request ( string $api, string $path, string $method, array $params = [], integer $version = null, string $httpMethod = 'get' ) : stdClass | Process a request | |
log ( mixed $value, string $key = null ) | Log different data |
Méthode | Description | |
---|---|---|
_getApiName ( string $api ) | Get ApiName | |
_parseRequest ( $json ) : stdClass |
public __construct ( string $serviceName, string $namespace, string $address, integer $port = null, string $protocol = self::PROTOCOL_HTTP, integer $version = 1, boolean $verifySSL = false ) | ||
$serviceName | string | |
$namespace | string | |
$address | string | |
$port | integer | |
$protocol | string | |
$version | integer | |
$verifySSL | boolean |
public activateDebug ( ) : Synology_Abstract | ||
Résultat | Synology_Abstract |