1

I'm trying to get a list of acceptable Send Classification's using Exact Target's SOAP API.

Our use case is that a user in a HubExchange app will be creating a TriggeredSend, and they will select the Send Classification from whatever they already have set up in their ET account.

We're currently using FuelSDK-PHP to integrate the SOAP API with our system, but we don't have any issues with adding other dependencies or using PHP's SOAP Client.

I see other people creating ExactTarget_SendClassifications in their code, but there isn't much explanation of what's behind that. I also found this, and this, but that only seems to cover creating Send Classifications.

Is there a way to just poll the user's account to see what Send Classifications are available?

1
  • I wanted to add the tag send-classification, but I don't have enough points...
    – user8094
    May 30, 2014 at 14:33

1 Answer 1

2

I've not done this with the SDK, but I do know it works with SOAP (which FUEL is wrapping). This soap envelop will get all send classifications.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Header>
      <fueloauth xmlns="http://exacttarget.com"> {***Replace this with OAUTH token****}  </fueloauth>
   </soapenv:Header>
   <soapenv:Body>
      <RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
         <!--Retrieve all the send classification-->
         <RetrieveRequest>
            <ObjectType>SendClassification    </ObjectType>
            <Properties>ObjectID    </Properties>
            <Properties>Client.ID    </Properties>
            <Properties>CustomerKey    </Properties>
            <Properties>Name    </Properties>
            <Properties>SendClassificationType    </Properties>
            <Properties>Description    </Properties>
            <Properties>CustomerKey    </Properties>
            <Properties>SenderProfile.CustomerKey    </Properties>
            <Properties>SenderProfile.ObjectID    </Properties>
            <Properties>DeliveryProfile.CustomerKey    </Properties>
            <Properties>DeliveryProfile.ObjectID    </Properties>
            <Properties>ArchiveEmail    </Properties>
         </RetrieveRequest>
      </RetrieveRequestMsg>
   </soapenv:Body>
</soapenv:Envelope>
0

You must log in to answer this question.

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