Skip to content

Commit

Permalink
ProductService.get_products_by_sku
Browse files Browse the repository at this point in the history
  • Loading branch information
jzw committed Sep 18, 2012
1 parent 8ef4445 commit b4a28dd
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion lib/powa_api/product_service.rb
Expand Up @@ -60,7 +60,23 @@ def self.get_products(batch_number = nil)
end
end

def self.get_products_by_sku(sku_list)
def self.get_products_by_sku(*skus)
client = Savon.client wsdl

response = client.request :get_products_by_sku do
soap.xml do |xml|
xml.soapenv(:Envelope, namespaces) do |xml|

header_block(xml)

xml.soapenv(:Body) do |xml|
xml.urn(:GetProductsBySkuRequest) do |xml|
xml.skuList skus.join(' ')
end
end
end
end
end
end

private
Expand Down

0 comments on commit b4a28dd

Please sign in to comment.