README
This gem provides access to data from Channel Advisor (CA). It contains files generated by soap4r using the WSDL files provided on the Channel Advisor Developer Network web site and a thin wrapper to help with authorization and error handling.
How to Access CA
require 'rubygems'
require 'channel_advisor/inventory_service'
configatron.channel_advisor.account_id = 'YOUR ACCOUNT ID'
configatron.channel_advisor.developer_key = 'YOUR DEVELOPER KEY'
configatron.channel_advisor.password = 'YOUR API PASSWORD'
criteria = ChannelAdvisor::InventoryServiceSOAP::InventoryItemCriteria.new
criteria.skuStartsWith = 'SR123'
criteria.pageNumber = 1
criteria.pageSize = 10
inventory = ChannelAdvisor::InventoryService.new
result = inventory.getFilteredSkuList(criteria)
["SR123756282", "SR123666418", "SR1232641972"]
How to Generate the API Classes
* If there is a new service, add it to "services = %w(admin_service inventory_service ...)" in Rakefile
* Execute "rake generate"
* Remove all the "require" statements from the generated files.
Resources
developer.channeladvisor.com/display/cadn/ChannelAdvisor+Developer+Network