NSURL(DTAWS) Category Reference
Declared in | NSURL+DTAWS.h |
Overview
Category on NSURL
for constructing a signed request URL for Amazon’s Product Advertising API
Class Methods
amazonWebServicesURLWithHost:parameters:secretKey:
Creates a signed NSURL
to query Amazon’s Product Advertising API.
+ (NSURL *)amazonWebServicesURLWithHost:(NSString *)host parameters:(NSDictionary *)parameters secretKey:(NSString *)secretKey
Parameters
- host
The domain name for the Amazon host to query
- parameters
The request parameters
- secretKey
The secret key
Return Value
The prepared and signed NSURL
Discussion
Typical host names are:
- ecs.amazonaws.de for German
- webservices.amazon.com for US
The secret key is a parameter. The access key is passed in the parameters dictionary.
Declared In
NSURL+DTAWS.h