Method | Description | |
---|---|---|
__construct ( string $api_key ) | Constructor | |
delete ( string $resource ) : mixed | ||
get ( string $resource, array $args = [] ) : mixed | ||
get_last_response ( ) : array | WP_Error | ||
get_last_response_body ( ) : string | ||
get_last_response_headers ( ) : array | ||
patch ( string $resource, array $data ) : mixed | ||
post ( string $resource, array $data ) : mixed | ||
put ( string $resource, array $data ) : mixed |
Method | Description | |
---|---|---|
get_headers ( ) : array | ||
parse_response ( array | WP_Error $response ) : mixed | ||
request ( string $method, string $resource, array $data = [] ) : mixed | ||
reset ( ) | Empties all data from previous response |
public get_last_response ( ) : array | WP_Error | ||
return | array | WP_Error |