Property | Type | Description | |
---|---|---|---|
$apiKey | string |
Method | Description | |
---|---|---|
__construct ( string $apiKey = null ) | constructor | |
apiUrl ( string $url = '' ) : string | get the API url | |
encode ( mixed $arr, null $prefix = null ) : string | ||
handleApiError ( string $httpBody, integer $httpStatus, array $response ) | ||
handleCurlError ( integer $errorNum, string $message ) | ||
request ( string $method, string $url, mixed $params = null, $apiKeyRequired = true ) : array | ||
utf8 ( mixed $value ) : string |
Method | Description | |
---|---|---|
_curlRequest ( string $method, string $absUrl, mixed $headers, mixed $params, string $myApiKey ) : array | ||
_encodeObjects ( mixed $d ) : array | string | ||
_interpretResponse ( string $httpBody, integer $httpStatus ) : mixed | ||
_requestRaw ( string $method, string $url, mixed $params, $apiKeyRequired ) : array |
public handleCurlError ( integer $errorNum, string $message ) | ||
$errorNum | integer | |
$message | string |