public get ( string $path, array $getParams, array $headers = null, array $cookies = null ) : array | ||
$path | string | The resource path to be appended to the base URI |
$getParams | array | key-value pairs |
$headers | array | array of valid HTTP header strings; e.g. ['Accept: application/json'] |
$cookies | array | The contents of the "Cookie: " header to be used in the HTTP request. Note that multiple cookies are separated with a semicolon followed by a space |
return | array | Response and info |