프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$apiKey | string |
메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
_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 |