Method | Description | |
---|---|---|
__construct ( Credentials $credentials, boolean $debug = false, Mime_Builder $mime_builder = null ) | Constructor. | |
delete ( string $url ) : mixed | Sends a DELETE request for the given article and bundles. | |
get ( string $url ) : mixed | Sends a GET request for the given article and bundles. | |
post ( string $url, string $article, array $bundles = [], array $meta = null ) : mixed | Sends a POST request with the given article and bundles. |
Method | Description | |
---|---|---|
build_content ( string $article, array $bundles = [], array $meta = [] ) : string | Parses the API response and checks for errors. | |
parse_response ( array $response, boolean $json = true, string $type = 'post', array $meta = null, array $bundles = null, string $article = '', $debug_mime_request = '' ) : mixed | Parses the API response and checks for errors. | |
sign ( string $url, string $verb, string $content = null ) : array | Signs the API request. |
public __construct ( Credentials $credentials, boolean $debug = false, Mime_Builder $mime_builder = null ) | ||
$credentials | Credentials | |
$debug | boolean | |
$mime_builder | Mime_Builder |