send()
send(string $url, string $method, string $body, array $headers, integer $timeOut) : \AdventureRes\Http\ApiRawResponse
Sends a request to the server and returns the raw response.
Parameters
string | $url | The endpoint to send the request to. |
string | $method | The request method. |
string | $body | The body of the request. |
array | $headers | The request headers. |
integer | $timeOut | The timeout in seconds for the request. |
Throws
- \AdventureRes\Exceptions\AdventureResSDKException
Returns
\AdventureRes\Http\ApiRawResponse —Raw response from the server.