MattParr / python-atws

Autotask Web Services python module
MIT License
32 stars 10 forks source link

Add support for impersonation (v1.6) #60

Open hoerup opened 5 years ago

hoerup commented 5 years ago

According to 1.6 specification, certain operations can be impersonated by adding a soap header

<AutotaskIntegrations xmlns="http://autotask.net/ATWS/v1_6/">
    <IntegrationCode>
        [substituteTrackingIdentifierhere]
    </IntegrationCode>
    <ImpersonateAsResourceID>
        [substituteIDofRESOURCETOIMPERSONATEhere]
    </ImpersonateAsResourceID>
</AutotaskIntegrations>
MattParr commented 5 years ago

A property in the wrapper would make sense for most workflows.