Amazon Web Services Suite to test the API request came back with the following error:
& lt; ItemSearchErrorResponse xmlns = "http://ecs.amazonaws.com/doc/2005-10-05/" & gt; & Lt; Error & gt; & Lt; Code & gt; SignatureDoesNotMatch & lt; / Code & gt; & Lt; Message & gt; The signature we have requested does not match the signature you provided. Check your AdWords secret access key and signing method. Consult the service documentation for details. / Messages & gt; & Lt; / Error & gt; & Lt; RequestId> Ebe90459-1abd-403e-bfec-6916ebe07e1f & lt; / RequestId> & Lt; / ItemSearchErrorResponse & gt;
Here's how I arrived at:
& lt; Php $ private_key = "XXXXXXXXXXXXXXXXXXXXXX"; $ Date = urlencode (date ('Y-M-D' TH: i: sz / z ', time ())); $ String_to_sign = "get webservices.amazon.com / onca / xml / AWSAccessKeyId = XXXXXXXXXXXXXXXXXXXXXXXA & amp; keyword = Rocket & amp; Operation = ItemSearch & amp; SearchIndex = Toys & amp; Service = AWSECommerceService & amp; timestamp =" .. $ Date ""; $ Sign = urlencode (base64_encode (hash_aemac ("sha256", $ string_to_sign, $ private_key, true))); $ Url = "Actiteepi://vebsserviseskameznkcom/onka/kml?awsksesskeyid=ksksksksksksksksksksksksksksksksksksksksksksksks∓kiwards=raket∓opreshn=itemsearc∓searcindeks=toyj∓srvis=avsekommersesservis∓timstmp="k$detk"∓signecr= ". $ Sign. ""; Header ("Location:". $ Url. ""); ? & Gt;
I've basically had url (so to direct a signed RET request header function) but I stuck with the error I doubled your access ID and secret key, so I Know that they are not going to cause problems. Does it produce signals correctly?
It seems you are trying to use a V2 calling the rest of the AWS API Please complete the signature for.
I bet the problem Signature Edition
, Signature Method
and version
first-string signature signing in absentia Fifth step and examples of the documents shown above the string to be done:
Obtain. Elasticmapreduce.amazonaws.com \ n / \ n AWSAccessKeyId = AKIAIOSFODNN7EXAMPLE and action = Varnnjobflo and signature method = HmacSHA256 and Hstakshrvivrn = 2 and timestamp = 2011-10-03 T 15% 3A% 19 3A 30 and above = 2009-03- 31
No comments:
Post a Comment