\App\IqrfNetModule\ResponsesApiResponse

IQRF 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() : 

Checks a status from the IQRF JSON API response

Throws

\App\IqrfNetModule\Responses\DpaErrorException
\App\IqrfNetModule\Responses\UserErrorException

Returns

setResponse()

setResponse(  response) : 

Sets the IQRF JSON API response

Parameters

response

IQRF JSON API response

Returns

toArray()

toArray() : mixed||string|int

Converts IQRF JSON API request to a array

Returns

mixed||string|int —

JSON API request

toJson()

toJson(  pretty = false) : 

Converts IQRF JSON API request to a JSON string

Parameters

pretty

Pretty formatted JSON

Throws

\App\IqrfNetModule\Responses\JsonException

Returns

JSON string