Skip to content

Instantly share code, notes, and snippets.

@petedickson
Created March 16, 2011 19:00
Show Gist options
  • Save petedickson/873086 to your computer and use it in GitHub Desktop.
Save petedickson/873086 to your computer and use it in GitHub Desktop.
api_data_authenticate_user looks like...
def api_data_authenticate_user(username, password)
# Authenticates a user account in Infusionsoft
Thread.current[:api_conn].api_perform('DataService', 'authenticateUser', username, password)
end
and [the relevant lines from] api_perform look like...
def api_perform(class_type, method, *args)
begin
server = XMLRPC::Client.new3({'host' => @api_url, 'path' => "/api/xmlrpc", 'port' => 443, 'use_ssl' => true})
result = server.call("#{class_type}.#{method}", @api_key, *args)
.
.
.
end
return result
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment