Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@technogeeky
Last active June 9, 2016 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save technogeeky/1c6abedbd453d273313eeb7f2bf071fb to your computer and use it in GitHub Desktop.
Save technogeeky/1c6abedbd453d273313eeb7f2bf071fb to your computer and use it in GitHub Desktop.
how do I specify the other options?
def requests(job, session, data)
{
:customer_query_rq => {
:xml_attributes => { "requestID" =>"3", 'iterator' => "Start" },
# :name_filter => { :match_criterion => "Contains", :name => "SomeLastName" },
:active_status => "All",
:max_returned => 100
}
}
end
# GENERATES:
Next request is '{:customer_query_rq=>{:xml_attributes=>{"requestID"=>"3", "iterator"=>"Start"}, :active_status=>"All", :max_returned=>100}}'.
Sending request from job list_customers
<?xml version="1.0" encoding="ISO-8859-1"?>
<?qbxml version="7.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<CustomerQueryRq requestID="3" iterator="Start">
<ActiveStatus>All</ActiveStatus>
<MaxReturned>100</MaxReturned>
</CustomerQueryRq>
</QBXMLMsgsRq>
</QBXML>
# **the specification for this xml is here**:
https://developer-static.intuit.com/qbSDK-current/Common/newOSR/index.html
# **click on qbXML and then left dropdown to CustomerQuery**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment