Unirest::get
Send a GET request to a URL
Signature
public function get(string
$url,
[array
$headers = ,
[mixed
$parameters = NULL,
[string
$username = NULL,
[string
$password = NULL]]]] )
Parameters
$url
—
string
- URL to send the GET request to
$headers
—
array
- additional headers to send
$parameters
—
mixed
- parameters to send in the querystring
$username
—
string
- Basic Authentication username
$password
—
string
- Basic Authentication password
Returns
- string|stdObj
- response string or stdObj if response is json-decodable