Class: AmazonRuby::Client
- Inherits:
-
Object
- Object
- AmazonRuby::Client
show all
- Defined in:
- lib/amazon-ruby/client.rb,
lib/amazon-ruby/client/itemtype.rb,
lib/amazon-ruby/client/operation.rb,
lib/amazon-ruby/client/countrycode.rb,
lib/amazon-ruby/client/searchindex.rb,
lib/amazon-ruby/client/responsegroup.rb
Defined Under Namespace
Modules: CountryCode, ItemType, Operation, ResponseGroup, SearchIndex
Constant Summary
collapse
- API_VERSION =
'2011-08-01'
- API_SERVICE =
'AWSECommerceService'
Instance Method Summary
collapse
Constructor Details
#initialize(country, amazon_key, amazon_secret, amazon_associate_tag) ⇒ Client
14
15
16
17
18
19
|
# File 'lib/amazon-ruby/client.rb', line 14
def initialize(country, amazon_key, amazon_secret, amazon_associate_tag)
@locale = Locale.new(country);
@amazon_key = amazon_key
@amazon_secret = amazon_secret
@amazon_associate_tag = amazon_associate_tag
end
|
Instance Method Details
#add_to_cart ⇒ Object
41
42
43
|
# File 'lib/amazon-ruby/client.rb', line 41
def add_to_cart()
raise UnsupportedFeature
end
|
#amazon_associate_tag ⇒ Object
32
33
34
|
# File 'lib/amazon-ruby/client.rb', line 32
def amazon_associate_tag
@amazon_associate_tag
end
|
#amazon_key ⇒ Object
22
23
24
|
# File 'lib/amazon-ruby/client.rb', line 22
def amazon_key
@amazon_key
end
|
#amazon_secret ⇒ Object
27
28
29
|
# File 'lib/amazon-ruby/client.rb', line 27
def amazon_secret
@amazon_secret
end
|
#browse_node_lookup ⇒ Object
76
77
78
|
# File 'lib/amazon-ruby/client.rb', line 76
def browse_node_lookup()
raise UnsupportedFeature
end
|
#clear_cart ⇒ Object
45
46
47
|
# File 'lib/amazon-ruby/client.rb', line 45
def clear_cart()
raise UnsupportedFeature
end
|
#create_cart ⇒ Object
49
50
51
|
# File 'lib/amazon-ruby/client.rb', line 49
def create_cart()
raise UnsupportedFeature
end
|
#get_cart ⇒ Object
53
54
55
|
# File 'lib/amazon-ruby/client.rb', line 53
def get_cart()
raise UnsupportedFeature
end
|
#item_lookup(id, item_type) ⇒ Object
65
66
67
68
69
70
71
72
73
74
|
# File 'lib/amazon-ruby/client.rb', line 65
def item_lookup(id, item_type)
request_params = {
'Operation' => AmazonRuby::Client::Operation::ITEM_LOOKUP,
'ItemId' => id,
'IdType' => AmazonRuby::Client::ItemType::UPC,
'SearchIndex' => AmazonRuby::Client::SearchIndex::ALL,
'ResponseGroup' => AmazonRuby::Client::ResponseGroup::ITEM_ATTRIBUTES
}
get(request_params)
end
|
#itemSearch ⇒ Object
61
62
63
|
# File 'lib/amazon-ruby/client.rb', line 61
def itemSearch()
raise UnsupportedFeature
end
|
#locale ⇒ Object
37
38
39
|
# File 'lib/amazon-ruby/client.rb', line 37
def locale
@locale
end
|
#modify_cart ⇒ Object
57
58
59
|
# File 'lib/amazon-ruby/client.rb', line 57
def modify_cart()
raise UnsupportedFeature
end
|
#similar_lookup ⇒ Object
80
81
82
|
# File 'lib/amazon-ruby/client.rb', line 80
def similar_lookup()
raise UnsupportedFeature
end
|