PHP 인터페이스 Analogic\ACME\ClientInterface

파일 보기 프로젝트 열기: analogic/lescript

공개 메소드들

메소드 설명
__construct ( string $base ) Constructor
get ( string $url ) : array | string
getLastCode ( ) : integer Return the HTTP status code of the last request
getLastLinks ( ) : string[] Get all Link headers of the last request
getLastLocation ( ) : string | null Return the Location header of the last request
getLastNonce ( ) : mixed Returns the Replay-Nonce header of the last request
post ( string $url, array $data ) : array | string Send a POST request

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $base )
$base string the ACME API base all relative requests are sent to

get() 공개 메소드

public get ( string $url ) : array | string
$url string URL to request via get
리턴 array | string the parsed JSON response, raw response on error

getLastCode() 공개 메소드

Return the HTTP status code of the last request
public getLastCode ( ) : integer
리턴 integer

getLastLocation() 공개 메소드

returns null if last request had no location header
public getLastLocation ( ) : string | null
리턴 string | null

getLastNonce() 공개 메소드

if no request has been made, yet. A GET on $base/directory is done and the resulting nonce returned
public getLastNonce ( ) : mixed
리턴 mixed

post() 공개 메소드

Send a POST request
public post ( string $url, array $data ) : array | string
$url string URL to post to
$data array fields to sent via post
리턴 array | string the parsed JSON response, raw response on error