getSecretKey() 공개 메소드

Gets the secretkey
public getSecretKey ( ) : string
리턴 string
예제 #1
0
 /**
  * Calculates the signature for the request
  *
  * @param array $params
  *
  * @return string
  */
 protected function buildSignature(array $params)
 {
     $template = "GET\nwebservices.amazon.%s\n/onca/xml\n%s";
     return Util::buildSignature(sprintf($template, $this->configuration->getCountry(), implode('&', $params)), $this->configuration->getSecretKey());
 }
예제 #2
0
 /**
  * Builds the final querystring including the signature
  *
  * @param array                  $params
  * @param ConfigurationInterface $configuration
  *
  * @return string
  */
 protected function buildQueryString(array $params, ConfigurationInterface $configuration)
 {
     $parameterList = [];
     foreach ($params as $key => $value) {
         $parameterList[] = sprintf('%s=%s', $key, rawurlencode($value));
     }
     $parameterList[] = 'Signature=' . rawurlencode($this->buildSignature($parameterList, $configuration->getCountry(), $configuration->getSecretKey()));
     return implode("&", $parameterList);
 }
예제 #3
0
 /**
  * Calculates the signature for the request
  *
  * @param string $request
  *
  * @return string
  */
 protected function buildSignature($request)
 {
     return Util::buildSignature($request, $this->configuration->getSecretKey());
 }