I'm trying to consume amazon product affiliate API and it has been a really confusing experience.
I've signed up for AWS so I have my ACCESS_KEY_ID and SECRET_ACCESS_KEY additionally I've signed up on https://affiliate-program.amazon.com/ and have gotten my Tracking ID
Now when trying to make a request with this URL
http://ecs.amazonaws.com/onca/xml?
AWSAccessKeyId=AKIAI4E9BPWYGSC7VNZQ
&ItemId=0545010225
&Operation=ItemLookup
&ResponseGroup=Small
&Service=AWSECommerceService
&Timestamp=2014-03-05T15%3A55%3A46Z
&Version=2009-03-31
&Signature=mb6Stjz4I5GHV51bxVyACS4T%2FwGjplkVymW8eLDoh4Q%3D
&AssociateTag=sample026-20
I get an error
<Error>
<Code>SignatureDoesNotMatch</Code>
<Message>The request signature we calculated does not match the signature you provided.
Check your AWS Secret Access Key and signing method.
Consult the service documentation for details.</Message>
</Error>
I've supplied all the parameters required but not sure why the information isn't matching.
If I remove the AssociateTag parameter from the URL then I get this error:
<Error>
<Code>AWS.MissingParameters</Code>
<Message>Your request is missing required parameters. Required parameters include AssociateTag.</Message>
</Error>
Is AssociateTag something different than the Tracking ID that I received after signing up on amazon link
I'm trying to get the sample code form http://aws.amazon.com/code/Product-Advertising-API/2478 to execute. Unless there is a better option out there....