src/API/Implementation/ApiAbstract.php
protected function callApi(string $apiClassMethod, array $arguments = []): ApiResponseInterface
    {
        $requestContext = $this->getApiRequestContext($apiClassMethod, $arguments);

        $responseContext = $this->getApiResponseContext($requestContext);

        $apiResponse = $this->prepareApiResponse($responseContext, $apiClassMethod);

        return $apiResponse;
    }
protected function callApi(string $apiClassMethod, array $arguments = []): ApiResponseInterface
    {
        $requestContext = $this->getApiRequestContext($apiClassMethod, $arguments);

        $responseContext = $this->getApiResponseContext($requestContext);

        $apiResponse = $this->prepareApiResponse($responseContext, $apiClassMethod);

        return $apiResponse;
    }
protected function callApi ( string $ apiClassMethod , array $ arguments = [ ] ) : ApiResponseInterface { $ requestContext = $ this -> getApiRequestContext ( $ apiClassMethod , $ arguments ) ; $ responseContext = $ this -> getApiResponseContext ( $ requestContext ) ; $ apiResponse = $ this -> prepareApiResponse ( $ responseContext , $ apiClassMethod ) ; return $ apiResponse ; }
Call API method by creating RequestContext, sending it, filtering the result and preparing the response

@param string $apiClassMethod
@param array  $arguments Arguments that need to be passed to API-related methods

@throws TransportException
@throws ResponseContextException
@throws BadResponseContextException
@throws MethodDoesNotExistException

@return ApiResponseInterface
Call API method by creating RequestContext sending it filtering the result and preparing the response