private function computeSignature($parameters, $accessKeySecret, $iSigner) { ksort($parameters); $canonicalizedQueryString = ''; foreach ($parameters as $key => $value) { $canonicalizedQueryString .= '&' . $this->percentEncode($key) . '=' . $this->percentEncode($value); } $stringToSign = parent::getMethod() . '&%2F&' . $this->percentencode(substr($canonicalizedQueryString, 1)); $signature = $iSigner->signString($stringToSign, $accessKeySecret . "&"); return $signature; }
function __construct($product, $version, $actionName) { parent::__construct($product, $version, $actionName); $this->setVersion($version); $this->initialize(); }