Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Create and retrieve signed URLs for the Amazon Product Advertising API

License

Notifications You must be signed in to change notification settings

brackendev/AmazonPAARequester-Pharo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AmazonPAARequester-Pharo

Create and retrieve signed URLs for the Amazon Product Advertising API.

Installation

In a Playground, evaluate:

Metacello new 
  repository: 'github://brackendev/AmazonPAARequester-Pharo';
  baseline: 'AmazonPAARequester';
  load.

Example Usage

  1. Get an Associate ID at http://docs.aws.amazon.com/AWSECommerceService/latest/DG/becomingAssociate.html.

  2. Create security credentials at https://console.aws.amazon.com/iam/home#security_credential.

  3. Create the API parameters at http://webservices.amazon.com/scratchpad/.

  4. 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.

Acknowledgements

This project makes use of the following third-party libraries:

Author

Bracken Spencer

License

AmazonPAARequester-Pharo is released under the MIT license. See the LICENSE file for more info.

About

Create and retrieve signed URLs for the Amazon Product Advertising API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published