Method |
Description |
|
__construct ( ClientInterface $client ) |
|
|
__debugInfo ( ) : array |
|
|
downloadFile ( string $url, string $filename, array $params = [] ) : Psr\Http\Message\ResponseInterface |
Download a file over the Internet |
|
get ( string $url, array $params = [] ) : Psr\Http\Message\ResponseInterface |
Perform a GET request |
|
getAsync ( string $url, array $params = [] ) : Psr\Http\Message\ResponseInterface |
Perform a GET request, asynchronously |
|
getJSON ( string $url, array $params = [] ) : mixed |
Perform a GET request, get a decoded JSON response. |
|
getReturnBody ( string $url, array $params = [] ) : string |
Perform a POST request, get the body |
|
getSignedJSON ( string $url, SignaturePublicKey $publicKey, array $params = [] ) : mixed |
Perform a GET request, get a decoded JSON response. |
|
params ( array $params = [], string $url = '' ) : array |
Make sure we include the default params |
|
parseJSON ( Response $response ) : mixed |
Parse a signed JSON response |
|
parseSignedJSON ( Response $response, SignaturePublicKey $publicKey ) : mixed |
Parse a signed JSON response |
|
post ( string $url, array $params = [] ) : Psr\Http\Message\ResponseInterface |
Perform a POST request |
|
postAsync ( string $url, array $params = [] ) : Psr\Http\Message\ResponseInterface |
Perform a GET request, asynchronously |
|
postJSON ( string $url, array $params = [] ) : mixed |
Perform a POST request, get a decoded JSON response. |
|
postReturnBody ( string $url, array $params = [] ) : string |
Perform a POST request, get the body |
|
postSignedJSON ( string $url, SignaturePublicKey $publicKey, array $params = [] ) : mixed |
Perform a POST request, get a decoded JSON response. |
|