0

Would anyone know if there is a way to output the SOAP Envelope that is generated when using the Pythin Fuel-SDK, e.g. the SOAP envelope when making the below call:

getSub = ET_Client.ET_Subscriber()
getSub.auth_stub = stubObj
getSub.props = ["SubscriberKey", "EmailAddress", "Status"]
getSub.search_filter = {'Property' : 'SubscriberKey','SimpleOperator' : 'equals','Value' : SubscriberTestEmail};
getResponse = getSub.get()

1 Answer 1

0

You have it in the Marketing Cloud Documentation

<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Header>
    <Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
        <UsernameToken>
            <Username>USERNAME_GOES_HERE</Username>
            <Password>PASSWORD_GOES_HERE</Password>
        </UsernameToken>
    </Security>
</Header>
<Body>
    <RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
        <RetrieveRequest>
            <ObjectType>Subscriber</ObjectType>
            <Properties>CreatedDate</Properties>
            <Properties>Client.ID</Properties>
            <Properties>EmailAddress</Properties>
            <Properties>SubscriberKey</Properties>
            <Properties>Status</Properties>
            <Properties>UnsubscribedDate</Properties>
            <Properties>ID</Properties>
            <Properties>Client.PartnerClientKey</Properties>
            <Filter xsi:type="SimpleFilterPart">
                <Property>SubscriberKey</Property>
                <SimpleOperator>equals</SimpleOperator>
                <Value>SubscriberTestEmail</Value>
            </Filter>
        </RetrieveRequest>
    </RetrieveRequestMsg>
</Body>

Give it a try with Postman.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .