getAccessKey() public method

Gets the accesskey
public getAccessKey ( ) : string
return string
Esempio n. 1
0
 /**
  * Prepares the parameters for the request
  *
  * @param OperationInterface $operation
  *
  * @return array
  */
 protected function prepareRequestParams(OperationInterface $operation)
 {
     $baseRequestParams = array('Service' => 'AWSECommerceService', 'AWSAccessKeyId' => $this->configuration->getAccessKey(), 'AssociateTag' => $this->configuration->getAssociateTag(), 'Operation' => $operation->getName(), 'Version' => '2011-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;
 }
Esempio n. 2
0
 /**
  * Builds the request parameters depending on the operation
  *
  * @param OperationInterface $operation
  *
  * @return array
  */
 protected function buildRequestParams(OperationInterface $operation)
 {
     $associateTag = array('AssociateTag' => $this->configuration->getAssociateTag());
     return array_merge($associateTag, array('AWSAccessKeyId' => $this->configuration->getAccessKey(), 'Request' => array_merge(array('Operation' => $operation->getName()), $operation->getOperationParameter())));
 }