\App\IqrfNetModule\ResponsesApiResponse

IQRF JSON API request

Summary

Methods
Properties
Constants
checkStatus()
get()
set()
toJson()
No public properties found
No constants found
No protected methods found
$response
N/A
No private methods found
$exceptions
N/A

Properties

$response

$response : \stdClass

Type

\stdClass — JSON API response

$exceptions

$exceptions : string[]

Type

normal — IQRF JSON API exceptions

Methods

checkStatus()

checkStatus() : void

Checks a status from the IQRF JSON API response

Throws

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

get()

get() : \stdClass

Returns the IQRF JSON API response

Returns

\stdClass —

IQRF JSON API response

set()

set(string  $response) : void

Sets the IQRF JSON API response

Parameters

string $response

IQRF JSON API response

toJson()

toJson(bool  $pretty = false) : string

Converts IQRF JSON API request to a JSON string

Parameters

bool $pretty

Pretty formatted JSON

Throws

\Nette\Utils\JsonException

Returns

string —

JSON string