ApaiIO\Request\GuzzleRequest::prepareRequestParams PHP Метод

prepareRequestParams() защищенный Метод

Prepares the parameters for the request
protected prepareRequestParams ( ApaiIO\Operations\OperationInterface $operation, ApaiIO\Configuration\ConfigurationInterface $configuration ) : array
$operation ApaiIO\Operations\OperationInterface
$configuration ApaiIO\Configuration\ConfigurationInterface
Результат array
    protected function prepareRequestParams(OperationInterface $operation, ConfigurationInterface $configuration)
    {
        $baseRequestParams = ['Service' => 'AWSECommerceService', 'AWSAccessKeyId' => $configuration->getAccessKey(), 'AssociateTag' => $configuration->getAssociateTag(), 'Operation' => $operation->getName(), 'Version' => '2013-08-01', 'Timestamp' => Util::getTimeStamp()];
        $operationParams = $operation->getOperationParameter();
        foreach ($operationParams as $key => $value) {
            if (true === is_array($value)) {
                $operationParams[$key] = implode(',', $value);
            }
        }
        $fullParameterList = array_merge($baseRequestParams, $operationParams);
        ksort($fullParameterList);
        return $fullParameterList;
    }