lib/amazon/ecs.rb in amazon-ecs-2.1.0 vs lib/amazon/ecs.rb in amazon-ecs-2.1.1
- old
+ new
@@ -34,11 +34,11 @@
class Ecs
SERVICE_URLS = {:us => 'http://ecs.amazonaws.com/onca/xml?',
:uk => 'http://ecs.amazonaws.co.uk/onca/xml?',
:ca => 'http://ecs.amazonaws.ca/onca/xml?',
:de => 'http://ecs.amazonaws.de/onca/xml?',
- :jp => 'http://ecs.amazonaws.co.jp/onca/xml?',
+ :jp => 'http://ecs.amazonaws.jp/onca/xml?',
:fr => 'http://ecs.amazonaws.fr/onca/xml?',
:it => 'http://ecs.amazonaws.it/onca/xml?'
}
OPENSSL_DIGEST_SUPPORT = OpenSSL::Digest.constants.include?( 'SHA256' ) ||
@@ -99,10 +99,18 @@
opts[:operation] = 'ItemLookup'
opts[:item_id] = item_id
self.send_request(opts)
end
-
+
+ # Search a browse node by BrowseNodeId
+ def self.browse_node_lookup(browse_node_id, opts = {})
+ opts[:operation] = 'BrowseNodeLookup'
+ opts[:browse_node_id] = browse_node_id
+
+ self.send_request(opts)
+ end
+
# Generic send request to ECS REST service. You have to specify the :operation parameter.
def self.send_request(opts)
opts = self.options.merge(opts) if self.options
# Include other required options