# [YooKassa API SDK](../home.md) # Interface: ApiClientInterface ### Namespace: [\YooKassa\Client](../namespaces/yookassa-client.md) --- **Summary:** Interface ApiClientInterface --- ### Constants * No constants found --- ### Methods | Visibility | Name | Flag | Summary | | ----------:| ---- | ---- | ------- | | public | [call()](../classes/YooKassa-Client-ApiClientInterface.md#method_call) | | Создает CURL запрос, получает и возвращает обработанный ответ | | public | [getUserAgent()](../classes/YooKassa-Client-ApiClientInterface.md#method_getUserAgent) | | Возвращает UserAgent | | public | [setAdvancedCurlOptions()](../classes/YooKassa-Client-ApiClientInterface.md#method_setAdvancedCurlOptions) | | Устанавливает дополнительные настройки curl | | public | [setBearerToken()](../classes/YooKassa-Client-ApiClientInterface.md#method_setBearerToken) | | Устанавливает OAuth-токен магазина | | public | [setConfig()](../classes/YooKassa-Client-ApiClientInterface.md#method_setConfig) | | Устанавливает настройки | | public | [setLogger()](../classes/YooKassa-Client-ApiClientInterface.md#method_setLogger) | | Устанавливает объект для логирования | | public | [setShopId()](../classes/YooKassa-Client-ApiClientInterface.md#method_setShopId) | | Устанавливает shopId магазина | | public | [setShopPassword()](../classes/YooKassa-Client-ApiClientInterface.md#method_setShopPassword) | | Устанавливает секретный ключ магазина | --- ### Details * File: [lib/Client/ApiClientInterface.php](../../lib/Client/ApiClientInterface.php) * Package: \YooKassa --- ## Methods #### public call() : \YooKassa\Common\ResponseObject ```php public call(string $path, string $method, array $queryParams, string|null $httpBody = null, array $headers = array()) : \YooKassa\Common\ResponseObject ``` **Summary** Создает CURL запрос, получает и возвращает обработанный ответ **Details:** * Inherited From: [\YooKassa\Client\ApiClientInterface](../classes/YooKassa-Client-ApiClientInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | path | URL запроса | | string | method | HTTP метод | | array | queryParams | Массив GET параметров запроса | | string OR null | httpBody | Тело запроса | | array | headers | Массив заголовков запроса | **Returns:** \YooKassa\Common\ResponseObject - #### public setLogger() : mixed ```php public setLogger(\Psr\Log\LoggerInterface|null $logger) : mixed ``` **Summary** Устанавливает объект для логирования **Details:** * Inherited From: [\YooKassa\Client\ApiClientInterface](../classes/YooKassa-Client-ApiClientInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | \Psr\Log\LoggerInterface OR null | logger | Объект для логирования | **Returns:** mixed - #### public getUserAgent() : \YooKassa\Client\UserAgent ```php public getUserAgent() : \YooKassa\Client\UserAgent ``` **Summary** Возвращает UserAgent **Details:** * Inherited From: [\YooKassa\Client\ApiClientInterface](../classes/YooKassa-Client-ApiClientInterface.md) **Returns:** \YooKassa\Client\UserAgent - #### public setShopId() : mixed ```php public setShopId(string|int $shopId) : mixed ``` **Summary** Устанавливает shopId магазина **Details:** * Inherited From: [\YooKassa\Client\ApiClientInterface](../classes/YooKassa-Client-ApiClientInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string OR int | shopId | shopId магазина | **Returns:** mixed - #### public setShopPassword() : mixed ```php public setShopPassword(string $shopPassword) : mixed ``` **Summary** Устанавливает секретный ключ магазина **Details:** * Inherited From: [\YooKassa\Client\ApiClientInterface](../classes/YooKassa-Client-ApiClientInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | shopPassword | | **Returns:** mixed - #### public setBearerToken() : mixed ```php public setBearerToken(string $bearerToken) : mixed ``` **Summary** Устанавливает OAuth-токен магазина **Details:** * Inherited From: [\YooKassa\Client\ApiClientInterface](../classes/YooKassa-Client-ApiClientInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | string | bearerToken | | **Returns:** mixed - #### public setConfig() : mixed ```php public setConfig(array $config) : mixed ``` **Summary** Устанавливает настройки **Details:** * Inherited From: [\YooKassa\Client\ApiClientInterface](../classes/YooKassa-Client-ApiClientInterface.md) ##### Parameters: | Type | Name | Description | | ---- | ---- | ----------- | | array | config | | **Returns:** mixed - #### public setAdvancedCurlOptions() : void ```php public setAdvancedCurlOptions() : void ``` **Summary** Устанавливает дополнительные настройки curl **Details:** * Inherited From: [\YooKassa\Client\ApiClientInterface](../classes/YooKassa-Client-ApiClientInterface.md) **Returns:** void - --- ### Top Namespaces * [\YooKassa](../namespaces/yookassa.md) --- ### Reports * [Errors - 0](../reports/errors.md) * [Markers - 1](../reports/markers.md) * [Deprecated - 25](../reports/deprecated.md) --- This document was automatically generated from source code comments on 2023-04-06 using [phpDocumentor](http://www.phpdoc.org/) © 2023 YooMoney