DevCraft Документации
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

ParameterTypeDescription
$configSdkConfig—
$httpClientClientInterface—
$requestFactoryRequestFactoryInterface—
$streamFactoryStreamFactoryInterface—
$rateLimiterRateLimiterInterface—

Returns: void

call(string $method, array $params, ?string $bearer = null): array

Description: Perform a JSON-RPC call.

ParameterTypeDescription
$methodstring—
$paramsarray—
$bearer?string— Default: null.

Returns: array

На этой странице