EnglishReferenceClasses
MyShowsJsonRpcClient v1.0.0
JSON-RPC client for the MyShows API.
Description: JSON-RPC client for the MyShows API.
Namespace: DevCraftClub\MyShows\Client
Since: 1.0.0
Methods
__construct(SdkConfig $config, ClientInterface $httpClient, RequestFactoryInterface $requestFactory, StreamFactoryInterface $streamFactory, RateLimiterInterface $rateLimiter): void
| Parameter | Type | Description |
|---|---|---|
$config | SdkConfig | — |
$httpClient | ClientInterface | — |
$requestFactory | RequestFactoryInterface | — |
$streamFactory | StreamFactoryInterface | — |
$rateLimiter | RateLimiterInterface | — |
Returns: void
call(string $method, array $params, ?string $bearer = null): array
Description: Perform a JSON-RPC call.
| Parameter | Type | Description |
|---|---|---|
$method | string | — |
$params | array | — |
$bearer | ?string | — Default: null. |
Returns: array