\App\IqrfNetModule\ResponsesApiResponse

JSON API request

Summary

Methods
Properties
Constants
checkStatus()
setResponse()
toArray()
toJson()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

checkStatus()

checkStatus() : 

Check status from JSON API response

Throws

\App\IqrfNetModule\Exceptions\DpaErrorException
\App\IqrfNetModule\Exceptions\UserErrorException

Returns

setResponse()

setResponse(  response) : 

Set JSON API response

Parameters

response

JSON API response

Throws

\App\IqrfNetModule\Exceptions\DpaErrorException
\App\IqrfNetModule\Exceptions\UserErrorException
\App\IqrfNetModule\Responses\JsonException

Returns

toArray()

toArray() : mixed||string|int

Convert JSON API request to a array

Returns

mixed||string|int —

JSON API request

toJson()

toJson(  pretty = false) : 

Convert JSON DPA request to JSON string

Parameters

pretty

Pretty formatted JSON

Throws

\App\IqrfNetModule\Responses\JsonException

Returns

JSON string