\Iqrf\Repository\UtilsApiClient

HTTP(S) client for API

Summary

Methods
Properties
Constants
__construct()
sendRequest()
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(\Iqrf\Repository\Utils\Configuration  config, \Iqrf\Repository\Utils\Client  httpClient) : 

Constructor

Parameters

\Iqrf\Repository\Utils\Configuration config

Configuration

\Iqrf\Repository\Utils\Client httpClient

HTTP(S) client

Returns

sendRequest()

sendRequest(  path, mixed||string|int  query = null) : mixed||string|int

Sends JSON API request

Parameters

path

API path

mixed||string|int query

Optional API query

Throws

\Iqrf\Repository\Utils\ServiceUnavailable

Returns

mixed||string|int —

JSON API response