Skip to content

Instantly share code, notes, and snippets.

@trepidity
Last active December 28, 2015 17:39
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 trepidity/7537734 to your computer and use it in GitHub Desktop.
Save trepidity/7537734 to your computer and use it in GitHub Desktop.
#sample_query.rb
require 'autotask_api'
client = AutotaskAPI::Client.new do |c|
c.basic_auth = ['user@example.com','mypassword']
c.wsdl = 'https://webservices.autotask.net/atservices/1.5/atws.wsdl'
end
query = AutotaskAPI::QueryXML.new do |query|
query.entity = 'contact'
query.field = 'firstname'
query.op = 'equals'
query.expression = 'Joe'
end
client.query
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment