public account ( string $method, string $uri, array $parameters = [], array $headers = [] ) : array | ||
$method | string | The HTTP method to use. |
$uri | string | The URI to request. |
$parameters | array | Optional. Query parameters. |
$headers | array | Optional. HTTP headers. |
return | array | Response data. - array|object body The response body. Type is controlled by Request::setReturnAssoc(). - string headers Response headers. - int status HTTP status code. - string url The requested URL. |