-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
autotask_api/lib/autotask_api/client.rb
Line 29 in 934cb57
| def create(xml) |
AutoTask is requiring an IntegrationCode to be passed in the header. I implemented it, but I feel it's hacky. Would you have a suggestion on how to better implement?
Here's how I did it.
def create(xml)
savon_client.call :create, message: "<Entities>#{xml}</Entities>",
attributes: { xmlns: NAMESPACE },
soap_header: {
'tns:AutotaskIntegrations' => {'tns:IntegrationCode' => ENV['IntegrationCode']}
}
end
Metadata
Metadata
Assignees
Labels
No labels