Create and retrieve signed URLs for the Amazon Product Advertising API.
- Pharo 6 reference platform.
In a Playground, evaluate:
Metacello new
repository: 'github://brackendev/AmazonPAARequester-Pharo';
baseline: 'AmazonPAARequester';
load.
-
Get an Associate ID at http://docs.aws.amazon.com/AWSECommerceService/latest/DG/becomingAssociate.html.
-
Create security credentials at https://console.aws.amazon.com/iam/home#security_credential.
-
Create the API parameters at http://webservices.amazon.com/scratchpad/.
-
Use AmazonPAARequester
#createURLWithParameters:
or#retrieveWithParameters:
. (Use the scratchpad at http://webservices.amazon.com/scratchpad/ to create the parameters.) In a Playground, evaluate:amazon := AmazonPAARequester createWithAccessKeyID: ACCESS_KEY_ID secretKey: SECRET_KEY associateTag: ASSOCIATE_TAG. params := Dictionary newFrom: {'IdType' -> 'ASIN'. 'IncludeReviewsSummary' -> 'true'. 'ItemId' -> 'B00164THU8'. 'Operation' -> 'ItemLookup'. 'ResponseGroup' -> 'SalesRank'. 'Service' -> 'AWSECommerceService'.}. amazon retrieveWithParameters: params.
This project makes use of the following third-party libraries:
Bracken Spencer
AmazonPAARequester-Pharo is released under the MIT license. See the LICENSE file for more info.