Class: AmazonProductAdvertisingApi::Base
- Inherits:
-
Object
- Object
- AmazonProductAdvertisingApi::Base
- Defined in:
- lib/amazon_product_advertising_api/base.rb
Overview
This is the main base class where you define your config data. Setup like so:
AmazonProductAdvertisingApi.base.access_key_id = <your Amazon AccessKeyId>
AmazonProductAdvertisingApi.base.secret_access_key = <your Amazon SecretAccessKey>
You also setup your Associates codes for different regions here (the right one is supplied) based on what region you are requesting for.
AmazonProductAdvertisingApi.base.associate_ids.ca = <your associates CA Affiliate key>
AmazonProductAdvertisingApi.base.associate_ids.uk = <your associates UK Affiliate key>
Constant Summary collapse
- @@associate_ids =
Struct.new(:ca, :de, :fr, :jp, :uk, :us).new