\App\IqrfNetModule\RequestsApiRequest

JSON API request

Summary

Methods
Properties
Constants
__construct()
setRequest()
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

__construct()

__construct(\App\IqrfNetModule\Requests\MessageIdManager  msgIdManager) : 

Constructor

Parameters

\App\IqrfNetModule\Requests\MessageIdManager msgIdManager

Message ID manager

Returns

setRequest()

setRequest(mixed||string|int  request) : 

Set JSON API request

Parameters

mixed||string|int request

JSON API request

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\Requests\JsonException

Returns

JSON string