hey i am on chapter 28 of Aaaron Hillegass' book on cocoa programming. i set up an account on aws.amazon.com with an AWSAccesKeyID but when i use it in my program with this:
(with the AWS_ID being the id i just set up.)
the xml i recieve still tells me it has a problem with the AWSAccesKeyID
this is the message i get in the console when i print out the xml:
what am i doing wrong??
Code:
NSString *urlString = [NSString stringWithFormat:
@"http://ecs.amazonaws.com/onca/xml"
@"Service=AWSECommerceService&"
@"AWSAccessKeyID=%@&"
@"Operation=ItemSearch&"
@"SearchIndex=Books&"
@"Keywords=%@&"
@"Version=2007-07-16",
AWS_ID, searchString];
the xml i recieve still tells me it has a problem with the AWSAccesKeyID
this is the message i get in the console when i print out the xml:
Code:
<?xml version="1.0" standalone="yes"?><ItemSearchErrorResponse xmlns="http://ecs.amazonaws.com/doc/2007-07-16/"><Error><Code>MissingClientTokenId</Code><Message>Request must contain AWSAccessKeyId or X.509 certificate.</Message></Error><RequestID>a2cbd752-af96-48f5-baa2-c4f51d3ad4c8</RequestID></ItemSearchErrorResponse>
what am i doing wrong??