src/Client/GuzzleClient.php
public function executeRequestForParams(
        string $requestMethod,
        string $path,
        array $params,
        string $accessToken
    ): ResponseInterface {
        RequestMethodEnum::assertIsValidValue($requestMethod);
        $options = $this->calculateOptionsForParams($requestMethod, $params, $accessToken);
        if (RequestMethodEnum::UPLOAD === $requestMethod) {
            $requestMethod = RequestMethodEnum::POST;
        }

        return $this->request($requestMethod, $path, $options);
    }
public function executeRequestForParams(
        string $requestMethod,
        string $path,
        array $params,
        string $accessToken
    ): ResponseInterface {
        RequestMethodEnum::assertIsValidValue($requestMethod);
        $options = $this->calculateOptionsForParams($requestMethod, $params, $accessToken);
        if (RequestMethodEnum::UPLOAD === $requestMethod) {
            $requestMethod = RequestMethodEnum::POST;
        }

        return $this->request($requestMethod, $path, $options);
    }
public function executeRequestForParams ( string $ requestMethod , string $ path , array $ params , string $ accessToken ) : ResponseInterface { RequestMethodEnum :: assertIsValidValue ( $ requestMethod ) ; $ options = $ this -> calculateOptionsForParams ( $ requestMethod , $ params , $ accessToken ) ; if ( RequestMethodEnum :: UPLOAD === $ requestMethod ) { $ requestMethod = RequestMethodEnum :: POST ; } return $ this -> request ( $ requestMethod , $ path , $ options ) ; }
Request method.

Generic format for HTTP client request method.

@param string $requestMethod GET/POST/PUT/DELETE
@param string $path          full path to REST resource without domain, ex. 'contacts'
@param array  $params        optional params for GET/POST request
@param string $accessToken   Access Token for Wrike access

@see \Zibios\WrikePhpLibrary\Enum\Api\RequestMethodEnum
@see \Zibios\WrikePhpLibrary\Enum\Api\RequestPathFormatEnum

@throws \Throwable
@throws ApiException

@return ResponseInterface
Request method .