. **/ /** * This class should be used for calling API services. */ abstract class CApiClient { /** * Call the given API service method and return the response. * * @param string $api * @param string $method * @param array $params * @param array $auth * @param int $auth['type'] CJsonRpc::AUTH_TYPE_PARAM, CJsonRpc::AUTH_TYPE_HEADER, CJsonRpc::AUTH_TYPE_COOKIE * @param string $auth['auth'] * * @return CApiClientResponse */ abstract public function callMethod(string $api, string $method, array $params, array $auth); }