The colq2\PhpIPAMClient\Connection\Respose
Object is used to handle the Response from the server.
Also this is the return of the call
function of the PhpIPAMClient
.
The object has 6 attributes:
- code
- success
- message
- data
- time
- body
HTTP status code.
Get:
$response->getCode()
Determines if the request was successful.
$response->isSuccess()
Is only set when a request fails. It contains the error message.
$response->getMessage()
Contains the returned data as an array.
$response->getData()
Contains how long the server took to handle the request.
$response->getTime()
This is the raw body which was sent by the server. It is json encoded.
$response->getBody()