Rails magento API with savon - complex filters -
Rails magento API with savon - complex filters -
i trying import orders magento store rails app using savon , magento api. far here code:
require 'savon' client = savon.client(wsdl: "http://mywebsite.com/api/v2_soap?wsdl") session_id = client.call(:login, message: { username: "myapiuser", api_key: "myapipassword" }).body[:login_response][:login_return] orders = client.call(:sales_order_list, message: { session_id: session_id, complex_filters: [{ key: "created_at", operator: "gt", value: '2014-10-14 00:00:00' }] })
i need utilize complex filter find orders created after date. reason if seek pull orders @ 1 time overloads server. tried using complex filter above, still tries pull orders. passing filter in improper way? thought on how create work?
ruby-on-rails magento
Comments
Post a Comment