FuelSDK-Node-SOAP
FuelSDK-Node-SOAP copied to clipboard
FuelSoap.prototype.Perform assumes action=start
Action=start is not the only value allowed for perform operations, in the SOAP API. For example, there is also a ClearData action:
Clear Data from a Data Extension
<PerformRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI" xmlns:ns2="urn:fault.partner.exacttarget.com">
<Action>ClearData</Action>
<Definitions>
<Definition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="DataExtension">
<CustomerKey>Test Data Extension</CustomerKey>
</Definition>
</Definitions>
</PerformRequestMsg>
There can also be an Options node in there, at the same level as Action.
This prototype should have had an action and an options parameter. How about an overload to avoid breaking changes?