class RequestExecutor (View source)

PortOne API 요청의 인증, 시간 제한 및 HTTP 전송을 처리합니다.

Constants

private CONNECT_TIMEOUT

private TOTAL_TIMEOUT

Methods

__construct(string $apiSecret)

PortOne API Secret으로 인증된 HTTP 요청 실행기를 초기화합니다.

array
__debugInfo()

인증 정보가 디버그 출력에 노출되지 않도록 빈 정보를 반환합니다.

ResponseInterface
request(string $method, string $uri, array $options = [])

HTTP 요청을 동기적으로 전송하고 원본 응답을 반환합니다.

PromiseInterface
requestAsync(string $method, string $uri, array $options = [])

HTTP 요청을 비동기적으로 시작하고 요청 처리를 나타내는 Promise를 반환합니다.

Client
createClient()

No description

Details

__construct(string $apiSecret)

PortOne API Secret으로 인증된 HTTP 요청 실행기를 초기화합니다.

Parameters

string $apiSecret

array __debugInfo()

인증 정보가 디버그 출력에 노출되지 않도록 빈 정보를 반환합니다.

Return Value

array

ResponseInterface request(string $method, string $uri, array $options = [])

HTTP 요청을 동기적으로 전송하고 원본 응답을 반환합니다.

Parameters

string $method
string $uri
array $options

Return Value

ResponseInterface

PromiseInterface requestAsync(string $method, string $uri, array $options = [])

HTTP 요청을 비동기적으로 시작하고 요청 처리를 나타내는 Promise를 반환합니다.

Parameters

string $method
string $uri
array $options

Return Value

PromiseInterface

protected Client createClient()

No description

Return Value

Client