|
|
Documentation Wiki > Developer Documentation > Web Service Guide > Technical Articles > SMS API Scenario Guide
SMS API Scenario GuideFrom $1Table of contents
(Click the banner to go to the related Docs.Code.ExactTarget.com page.) This document contains scenario and reference information that you can use when preparing to use the API with SMS messages. Unless otherwise specified, code samples in this document are .NET 2.0 (C#). This document is intended for developers using the ExactTarget Web Service API to enable SMS messages.
SMS MessagesThis document discusses API calls you can use with SMS messages. SMS messages can be created and sent from within the application. See SMS Messages for more information. Tools and PrerequisitesBefore you can use the ExactTarget API with SMS messages, you must have the following:
Sending ScenariosThe following scenarios cover the most common business processes around sending and triggering SMS messages with code samples. The send definition includes the content to be sent (referenced by CustomerKey), or you can use the Message property to override that content at send time. List-Send SMSYou use the following code to send an SMS message to a list as an MT message. // ************** List SEND (SMS) **************
//1. Create SMS triggered send object
ts = new SMSTriggeredSend();
//2. Set up the triggered send definition
ts.SMSTriggeredSendDefinition = new SMSTriggeredSendDefinition();
ts.SMSTriggeredSendDefinition.CustomerKey = "YourSMSSendID";
ts.Message = "Hello phone"; //optional
//3. Invoke the Web Service
results = partnerAPI.Create(null, new APIObject[] { ts }, out requestID, out status);
Triggered Send SMSYou use the following code to send an SMS message via a triggered send as an MT message. Sample .NET Code//Create a SMS TriggeredSend
SMSTriggeredSend ts = new SMSTriggeredSend();
ts.Number = "1-123-456-7890";
ts.Message = "TEST SMS";
SMSTriggeredSendDefinition tssd= new SMSTriggeredSendDefinition();
tssd.CustomerKey = "12345";
ts.SMSTriggeredSendDefinition = tssd;
Subscriber sub = new Subscriber();
sub.SubscriberKey = "1-123-456-7890";//The Subscriber Key of a record on the All SMS Subscribers List
ts.Subscriber = sub;
string requestID = String.Empty;
string status = String.Empty;
//Call the Create method on the SMSTriggeredSend object
CreateResults[] results = client.Create(null, new APIObject[] { ts }, out requestID, out status);
Sample Java Codepublic void testCreateSMSTriggeresSend() throws RemoteException {
Soap stub = null;
stub = init();
SMSTriggeredSend smsTriggeredSend = null;
smsTriggeredSend = new SMSTriggeredSend();
SMSTriggeredSendDefinition smsTriggeredSendDefinition = new SMSTriggeredSendDefinition();
smsTriggeredSendDefinition.setCustomerKey("CustomerKey of Defintion"); //Defined in UI
Subscriber subscriber = new Subscriber();
subscriber.setSubscriberKey("Key_for_SMS_Number"); //Unique Identifier for SMS Number
smsTriggeredSend.setNumber("1231221"); //SMS Number
smsTriggeredSend.setMessage("Welcome To ET");
smsTriggeredSend.setSubscriber(subscriber); //Set Subscriber to SMSTriggeredSend
smsTriggeredSend.setSMSTriggeredSendDefinition(smsTriggeredSendDefinition); //Set Defintion
CreateRequest createRequest = new CreateRequest();
createRequest.setOptions(new CreateOptions());
APIObject[] apiObjects = {smsTriggeredSend};
createRequest.setObjects(apiObjects);
CreateResponse createResponse = stub.create(createRequest);
if (createResponse != null) {
System.out.println("OverallStatus ::: " + createResponse.getOverallStatus());
}
Triggered Send to Multiple Mobile Numbers from a Data ExtensionSMSTriggeredSendDefinition tsd = new SMSTriggeredSendDefinition();
tsd.Name = "NewTriggeredSend";
tsd.CustomerKey = "CustomeKey";
tsd.SendToList = true;
tsd.SendToListSpecified = true;
DataExtension de = new DataExtension();
de.ObjectID = "12345";
tsd.DataExtension = de;
List pub = new List();
pub.ID = 55021;
pub.IDSpecified = true;
tsd.Publication = pub;
client = CreatePartnerAPI("username", password);
APIObject[] apiObjects2 = { tsd };
String requestId2 = null;
String overAllStatus2 = null;
CreateResult[] results2 = client.Create(new CreateOptions(), apiObjects2, out requestId2, out overAllStatus2);
SMS Send with a Specified From Short CodeYou can specify a From short code when you send an SMS message using the API. You must specify a short code only when that short code is not the default short code for the account. If multiple defaults are defined within an account or if no default is defined in an account with multiple short codes, the account deliberately leaves that information undefined. NOTE: Every short or long code that can be used for an account must be provisioned by ExactTarget, and you must follow the standard approval procedures to receive additional short or long codes. To specify a From short code, insert the following line of code into one of the above examples: ts.FromAddress="12345" The SOAP envelope below provides an example of how to structure your API call: <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<CreateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options></Options>
<Objects xsi:type="SMSTriggeredSend">
<ObjectID xsi:nil="true"></ObjectID>
<SMSTriggeredSendDefinition>
<ObjectID xsi:nil="true"></ObjectID>
<CustomerKey>CustomerKey</CustomerKey>
</SMSTriggeredSendDefinition>
<Subscriber>
<ObjectID xsi:nil="true"></ObjectID>
<SubscriberKey>15555555555</SubscriberKey>
<Attributes>
<Name>firstname</Name>
<Value>Angel</Value>
</Attributes>
<Locale>
<ObjectID xsi:nil="true"></ObjectID>
<LocaleCode>en_us</LocaleCode>
</Locale>
</Subscriber>
<Message>testing %%= NOW() =%% </Message>
<Number>15555555555</Number>
<FromAddress>12345</FromAddress>
</Objects>
</CreateRequest>
</s:Body>
Capturing Information from an MO Message, Sending an MT Response, and Adding a Subscriber to an Email ListThe sample code below demonstrates how to capture information from an MO message. The subscriber takes sends an MO message to a short code with a keyword and an email address. The code adds the email address to a list, sends a triggered MT message, and sends a confirmation email. This requires the following actions:
Be sure to assign the value of CustomerKey to both the name and verb for SendSMSMOKeyword. SOAP EnvelopesCreate SendSMSMOKeyDefinition<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-09T17:21:13Z</wsu:Created>
<wsu:Expires>2011-02-09T17:26:13Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*****</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*******</wsse:Password>
<wsse:Nonce>OcnkFlt10XesvJb2NC9O69rgYcc=</wsse:Nonce>
<wsu:Created>2011-02-09T17:21:13Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<CreateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SendSMSMOKeyword">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:CustomerKey>SMSSend</ns1:CustomerKey>
<ns1:Message>Congratulations! This is your first SMS Message</ns1:Message>
<ns1:ScriptErrorMessage>Sorry! We have a script error</ns1:ScriptErrorMessage>
</ns1:Objects>
</CreateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Update SendSMSMoKeyDefinition<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-09T17:48:11Z</wsu:Created>
<wsu:Expires>2011-02-09T17:53:11Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*****</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*****</wsse:Password>
<wsse:Nonce>tx0i+p1C0ZUYXqzg1g1c5oweL38=</wsse:Nonce>
<wsu:Created>2011-02-09T17:48:11Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<UpdateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SendSMSMOKeyword">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:CustomerKey>SMSSend</ns1:CustomerKey>
<ns1:Message>This is the new updated message</ns1:Message>
<ns1:ScriptErrorMessage>This is the new update script error message</ns1:ScriptErrorMessage>
</ns1:Objects>
</UpdateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Retrieve SendSMSMoKeyDefinition<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-09T17:53:12Z</wsu:Created>
<wsu:Expires>2011-02-09T17:58:12Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*******</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">******</wsse:Password>
<wsse:Nonce>Orl9wG69rtnWzKnfgc0+A59slrA=</wsse:Nonce>
<wsu:Created>2011-02-09T17:53:12Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ObjectType>SendSMSMOKeyword</ObjectType>
<Properties>Client.ID</Properties>
<Properties>Createddate</Properties>
<Properties>ModifiedDate</Properties>
<Properties>ObjectId</Properties>
<Properties>IsDefaultKeyWord</Properties>
<Properties>Message</Properties>
<Properties>ScripterrorMessage</Properties>
</RetrieveRequest>
</RetrieveRequestMsg>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Delete SendSMSMoKeyDefinition<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-09T17:55:28Z</wsu:Created>
<wsu:Expires>2011-02-09T18:00:28Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*****</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">****</wsse:Password>
<wsse:Nonce>P0ntMa3LCoIOEUoXXGYyDmvSQ/M=</wsse:Nonce>
<wsu:Created>2011-02-09T17:55:28Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<DeleteRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SendSMSMOKeyword">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:CustomerKey>SMSSend</ns1:CustomerKey>
</ns1:Objects>
</DeleteRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Create SendEmailMOKeyDefinition<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-09T18:30:06Z</wsu:Created>
<wsu:Expires>2011-02-09T18:35:06Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>******</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*******</wsse:Password>
<wsse:Nonce>vV3upRpOgzkICEK4r0WdAf2lkh0=</wsse:Nonce>
<wsu:Created>2011-02-09T18:30:06Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<CreateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SendEmailMOKeyword">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID
xsi:nil="true"/>
<ns1:CustomerKey>SendEmailAction</ns1:CustomerKey>
<ns1:IsDefaultKeyword>false</ns1:IsDefaultKeyword>
<ns1:SuccessMessage>Thank You. Success Message.</ns1:SuccessMessage>
<ns1:MissingEmailMessage>There was a missing Email Message</ns1:MissingEmailMessage>
<ns1:FailureMessage>There was a failure message</ns1:FailureMessage>
<ns1:TriggeredSend>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:CustomerKey>237</ns1:CustomerKey>
</ns1:TriggeredSend>
</ns1:Objects>
</CreateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Update SendEmailMOKeyDefinition<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-09T18:41:51Z</wsu:Created>
<wsu:Expires>2011-02-09T18:46:51Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*********</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">
*******</wsse:Password>
<wsse:Nonce>1/KXK8v+VI4kPlhgx2MecUjLuhI=</wsse:Nonce>
<wsu:Created>2011-02-09T18:41:51Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<UpdateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SendEmailMOKeyword">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID
xsi:nil="true"/>
<ns1:CustomerKey>SendEmailAction</ns1:CustomerKey>
<ns1:IsDefaultKeyword>true</ns1:IsDefaultKeyword>
<ns1:SuccessMessage>This is a changed success message</ns1:SuccessMessage>
<ns1:MissingEmailMessage>This is a changed Missing Email Message</ns1:MissingEmailMessage>
<ns1:FailureMessage>This is a changed failure message</ns1:FailureMessage>
<ns1:TriggeredSend>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:CustomerKey>238</ns1:CustomerKey>
</ns1:TriggeredSend>
</ns1:Objects>
</UpdateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Retrieve SendEmailMOKeyDefinition<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-09T18:43:50Z</wsu:Created>
<wsu:Expires>2011-02-09T18:48:50Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*******</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">********</wsse:Password>
<wsse:Nonce>j41KU2X3qEdcijEhlfJ5M+1dyD0=</wsse:Nonce>
<wsu:Created>2011-02-09T18:43:50Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ObjectType>SendEmailMOKeyword</ObjectType>
<Properties>RowID</Properties>
<Properties>Client.ID</Properties>
<Properties>CreatedDate</Properties>
<Properties>ModifiedDate</Properties>
<Properties>CustomerKey</Properties>
<Properties>IsDefaultKeyword</Properties>
<Properties>SuccessMessage</Properties>
<Properties>MissingEmailMessage</Properties>
<Properties>FailureMessage</Properties>
<Properties>TriggeredSend.CustomerKey</Properties>
</RetrieveRequest>
</RetrieveRequestMsg>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Delete SendEmailMOKeyDefinition<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-09T18:44:54Z</wsu:Created>
<wsu:Expires>2011-02-09T18:49:54Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*****</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*****</wsse:Password>
<wsse:Nonce>39/FynS1ffvKXO5P/vUX/MLIpfo=</wsse:Nonce>
<wsu:Created>2011-02-09T18:44:54Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<DeleteRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SendEmailMOKeyword">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:CustomerKey>SendEmailAction</ns1:CustomerKey>
</ns1:Objects>
</DeleteRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Create HelpMOKeyDefinition<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-09T19:18:36Z</wsu:Created>
<wsu:Expires>2011-02-09T19:23:36Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>********</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">
*******</wsse:Password>
<wsse:Nonce>1G9T14Rkv39KEcN9lfB4w/z9FW8=</wsse:Nonce>
<wsu:Created>2011-02-09T19:18:36Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<CreateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:HelpMOKeyword">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:CustomerKey>HelpActionTest</ns1:CustomerKey>
<ns1:IsDefaultKeyword>false</ns1:IsDefaultKeyword>
<ns1:FriendlyName>friend</ns1:FriendlyName>
<ns1:DefaultHelpMessage>This is our default help message</ns1:DefaultHelpMessage>
<ns1:MenuText>This is a menu text</ns1:MenuText>
<ns1:MoreChoicesPrompt>This is for more choice promt</ns1:MoreChoicesPrompt>
</ns1:Objects>
</CreateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Update HelpMOKeyDefinition<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-09T19:21:44Z</wsu:Created>
<wsu:Expires>2011-02-09T19:26:44Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*********</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*********</wsse:Password>
<wsse:Nonce>e9T7Yd/TgzR2UslpMYYT/9jaurM=</wsse:Nonce>
<wsu:Created>2011-02-09T19:21:44Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<UpdateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:HelpMOKeyword">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:CustomerKey>HelpActionTest</ns1:CustomerKey>
<ns1:IsDefaultKeyword>true</ns1:IsDefaultKeyword>
<ns1:FriendlyName>newfriend</ns1:FriendlyName>
<ns1:DefaultHelpMessage>Changed default Help message</ns1:DefaultHelpMessage>
<ns1:MenuText>Changed menu text</ns1:MenuText>
<ns1:MoreChoicesPrompt>Changed more choices</ns1:MoreChoicesPrompt>
</ns1:Objects>
</UpdateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Retrieve HelpMOKeyDefinition<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-09T19:24:54Z</wsu:Created>
<wsu:Expires>2011-02-09T19:29:54Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*******</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*******</wsse:Password>
<wsse:Nonce>BhUsEp+gnnLrchgy7+kqHZyUaEI=</wsse:Nonce>
<wsu:Created>2011-02-09T19:24:54Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ObjectType>SendSMSMOKeyword</ObjectType>
<Properties>Client.ID</Properties>
<Properties>Createddate</Properties>
<Properties>ModifiedDate</Properties>
<Properties>ObjectId</Properties>
<Properties>IsDefaultKeyWord</Properties>
<Properties>Message</Properties>
<Properties>ScripterrorMessage</Properties>
</RetrieveRequest>
</RetrieveRequestMsg>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Delete HelpMOKeyDefinition<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-09T20:39:02Z</wsu:Created>
<wsu:Expires>2011-02-09T20:44:02Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*****</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">******</wsse:Password>
<wsse:Nonce>CCLxDSYyV1cSpKeSmy0uYNjxoqo=</wsse:Nonce>
<wsu:Created>2011-02-09T20:39:02Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<DeleteRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:HelpMOKeyword">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:CustomerKey>TestTesthelp</ns1:CustomerKey>
</ns1:Objects>
</DeleteRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Create SMS Shared Keyword<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T21:56:58Z</wsu:Created>
<wsu:Expires>2011-02-10T22:01:58Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*****</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*****</wsse:Password>
<wsse:Nonce>1evhDtzsL/AfiorB+4sd+lEW23A=</wsse:Nonce>
<wsu:Created>2011-02-10T21:56:58Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<CreateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SMSSharedKeyword">
<ns1:Client>
<ns1:ClientID>115040</ns1:ClientID>
</ns1:Client>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:ShortCode>12345</ns1:ShortCode>
<ns1:SharedKeyword>Keyword</ns1:SharedKeyword>
</ns1:Objects>
</CreateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Update SMS Keyword<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T21:59:36Z</wsu:Created>
<wsu:Expires>2011-02-10T22:04:36Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*****</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*****$</wsse:Password>
<wsse:Nonce>eWGZ4/tIPcsZeykdPFlwEOUwv0Q=</wsse:Nonce>
<wsu:Created>2011-02-10T21:59:36Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<UpdateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SMSSharedKeyword">
<ns1:Client>
<ns1:ClientID>12345</ns1:ClientID>
</ns1:Client>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:ShortCode>12345</ns1:ShortCode>
<ns1:SharedKeyword>Keyword</ns1:SharedKeyword>
<ns1:EffectiveDate>2011-01-20T16:10:26.027Z</ns1:EffectiveDate>
<ns1:ExpireDate>2014-01-20T16:18:07.473Z</ns1:ExpireDate>
<ns1:ReturnToPoolDate>2014-02-20T16:18:08.269Z</ns1:ReturnToPoolDate>
</ns1:Objects>
</UpdateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Retrieve SMS Keyword<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T21:59:55Z</wsu:Created>
<wsu:Expires>2011-02-10T22:04:55Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*****</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*****</wsse:Password>
<wsse:Nonce>iXVRLLs0iCKNXnGdYBm0cG60qGU=</wsse:Nonce>
<wsu:Created>2011-02-10T21:59:55Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<RetrieveRequestMsg
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ClientIDs>
<ClientID>12345</ClientID>
</ClientIDs>
<ObjectType>SMSSharedKeyword</ObjectType>
<Properties>ShortCode</Properties>
<Properties>SharedKeyword</Properties>
<Properties>RequestDate</Properties>
<Properties>EffectiveDate</Properties>
<Properties>ExpireDate</Properties>
<Properties>ReturnToPoolDate</Properties>
<ns1:Filter
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI" xsi:type="ns1:SimpleFilterPart">
<ns1:Property>Client.ID</ns1:Property>
<ns1:SimpleOperator>equals</ns1:SimpleOperator>
<ns1:Value>12345</ns1:Value>
</ns1:Filter>
</RetrieveRequest>
</RetrieveRequestMsg>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Delete SMS Keyword<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T22:00:05Z</wsu:Created>
<wsu:Expires>2011-02-10T22:05:05Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*****</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*****</wsse:Password>
<wsse:Nonce>9Y3TL43XMDEN9RTPnU6Y79F6M1s=</wsse:Nonce>
<wsu:Created>2011-02-10T22:00:05Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<DeleteRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SMSSharedKeyword">
<ns1:Client>
<ns1:ID>12345</ns1:ID>
</ns1:Client>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:ShortCode>12345</ns1:ShortCode>
<ns1:SharedKeyword>TroyTest</ns1:SharedKeyword>
</ns1:Objects>
</DeleteRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Create SMS Blacklist<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T22:28:00Z</wsu:Created>
<wsu:Expires>2011-02-10T22:33:00Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>****</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">******</wsse:Password>
<wsse:Nonce>5GWof7Z5HgWf/w3hJVw3/T47BCg=</wsse:Nonce>
<wsu:Created>2011-02-10T22:28:00Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<CreateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SMSKeywordBlacklistEntry">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:Keyword>GbemeNatiDread</ns1:Keyword>
</ns1:Objects>
</CreateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Retrieve SMS Blacklist<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T22:28:35Z</wsu:Created>
<wsu:Expires>2011-02-10T22:33:35Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*****</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*****</wsse:Password>
<wsse:Nonce>Yvw7aGlJfps6d6DiqXHLANd60sc=</wsse:Nonce>
<wsu:Created>2011-02-10T22:28:35Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ObjectType>SMSKeywordBlacklistEntry</ObjectType>
<Properties>ID</Properties>
<Properties>Keyword</Properties>
<Properties>Keyword</Properties>
<Properties>ModifiedDate</Properties>
</RetrieveRequest>
</RetrieveRequestMsg>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Update SMS Blacklist<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T22:32:27Z</wsu:Created>
<wsu:Expires>2011-02-10T22:37:27Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>jkhsmstester</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">Kwame12$</wsse:Password>
<wsse:Nonce>w/isqYoUTLwcdatL7BkJNAqH/k8=</wsse:Nonce>
<wsu:Created>2011-02-10T22:32:27Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<UpdateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SMSKeywordBlacklistEntry">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:Keyword>TroyTest2</ns1:Keyword>
</ns1:Objects>
</UpdateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Delete SMS Blacklist<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T22:32:51Z</wsu:Created>
<wsu:Expires>2011-02-10T22:37:51Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*****</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">
******</wsse:Password>
<wsse:Nonce>xlog1wiH4IMD7mqQjkMFpksRRJs=</wsse:Nonce>
<wsu:Created>2011-02-10T22:32:51Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<DeleteRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SMSKeywordBlacklistEntry">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>11</ns1:ID>
<ns1:ObjectID xsi:nil="true"/>
</ns1:Objects>
</DeleteRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Create SMS List Send<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-11T15:39:25Z</wsu:Created>
<wsu:Expires>2011-02-11T15:44:25Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>******</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">******</wsse:Password>
<wsse:Nonce>Fq09u6K9AegpQohayD9ihimmLhE=</wsse:Nonce>
<wsu:Created>2011-02-11T15:39:25Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<CreateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SMSTriggeredSendDefinition">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID
xsi:nil="true"/>
<ns1:CustomerKey>blacksmith</ns1:CustomerKey>
<ns1:Name>ListSendSMSSMS</ns1:Name>
<ns1:Publication>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>613210</ns1:ID>
<ns1:ObjectID
xsi:nil="true"/>
</ns1:Publication>
<ns1:DataExtension>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID>84f3b549-f532-e011-a72c-001cc494c760</ns1:ObjectID>
</ns1:DataExtension>
<ns1:Content>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>74598</ns1:ID>
<ns1:ObjectID xsi:nil="true"/>
</ns1:Content>
<ns1:SendToList>true</ns1:SendToList>
</ns1:Objects>
</CreateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Update SMS List Send<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-11T15:45:07Z</wsu:Created>
<wsu:Expires>2011-02-11T15:50:07Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*********</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*******</wsse:Password>
<wsse:Nonce>Z+/NaRIxGcpigTUBNsYK7a1uuXk=</wsse:Nonce>
<wsu:Created>2011-02-11T15:45:07Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<UpdateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SMSTriggeredSendDefinition">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID
xsi:nil="true"/>
<ns1:CustomerKey>blacksmith</ns1:CustomerKey>
<ns1:Name>ListSendSMSSMS</ns1:Name>
<ns1:Publication>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>12345</ns1:ID>
<ns1:ObjectID
xsi:nil="true"/>
</ns1:Publication>
<ns1:DataExtension>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID>1669c129-a62d-e011-a72c-001cc494c760</ns1:ObjectID>
</ns1:DataExtension>
<ns1:Content>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>12345</ns1:ID>
<ns1:ObjectID xsi:nil="true"/>
</ns1:Content>
<ns1:SendToList>true</ns1:SendToList>
</ns1:Objects>
</UpdateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Retrieve SMS List Send<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-11T15:47:55Z</wsu:Created>
<wsu:Expires>2011-02-11T15:52:55Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*********</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">
******</wsse:Password>
<wsse:Nonce>f4eZs++4xr0LTqE3A53ONeztCyg=</wsse:Nonce>
<wsu:Created>2011-02-11T15:47:55Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ObjectType>SMSTriggeredSendDefinition</ObjectType>
<Properties>ObjectID</Properties>
<Properties>CustomerKey</Properties>
<Properties>Client.ID</Properties>
<Properties>Name</Properties>
<Properties>Description</Properties>
<Properties>Publication.ID</Properties>
<Properties>CreatedDate</Properties>
<Properties>CreatedBy</Properties>
<Properties>ModifiedDate</Properties>
<Properties>ModifiedBy</Properties>
<Properties>Content.ID</Properties>
</RetrieveRequest>
</RetrieveRequestMsg>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Delete SMS List Send<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-11T15:53:00Z</wsu:Created>
<wsu:Expires>2011-02-11T15:58:00Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username></wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"></wsse:Password>
<wsse:Nonce>TIecQZ8CAaNBFxc3VgMclxTKyvg=</wsse:Nonce>
<wsu:Created>2011-02-11T15:53:00Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<DeleteRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SMSTriggeredSendDefinition">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:CustomerKey>blacksmith</ns1:CustomerKey>
</ns1:Objects>
</DeleteRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Sending a Triggered SMS Message from a Third-Party Web CallThe sample code below sends a triggered MT message following a web event, such as a landing page or a developer environment. This requires the following actions:
Set the SendToList property on the SMSTriggeredSend object to True if you want to send to a list and False if you want to send to a single subscriber. SOAP EnvelopesCreate Single-Send Triggered Send<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T22:41:38Z</wsu:Created>
<wsu:Expires>2011-02-10T22:46:38Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*********</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*********</wsse:Password>
<wsse:Nonce>U4yKBl17gHh+I1xtpWCVHNfrVtc=</wsse:Nonce>
<wsu:Created>2011-02-10T22:41:38Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<CreateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SMSTriggeredSendDefinition">
<ns1:Client>
<ns1:ID>115040</ns1:ID>
</ns1:Client>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID
xsi:nil="true"/>
<ns1:CustomerKey>12345</ns1:CustomerKey>
<ns1:Name>SMSTesting12345</ns1:Name>
<ns1:Publication>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>613346</ns1:ID>
<ns1:ObjectID
xsi:nil="true"/>
</ns1:Publication>
<ns1:DataExtension>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID
xsi:nil="true"/>
</ns1:DataExtension>
<ns1:Content>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>20375</ns1:ID>
<ns1:ObjectID xsi:nil="true"/>
</ns1:Content>
<ns1:SendToList>false</ns1:SendToList>
</ns1:Objects>
</CreateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Retrieve Single-Send Triggered Send<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T22:50:19Z</wsu:Created>
<wsu:Expires>2011-02-10T22:55:19Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*********</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*********</wsse:Password>
<wsse:Nonce>Z0t8GwPaePcnL/jGCAaqgij9Bds=</wsse:Nonce>
<wsu:Created>2011-02-10T22:50:19Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ObjectType>SMSTriggeredSendDefinition</ObjectType>
<Properties>ObjectID</Properties>
<Properties>CustomerKey</Properties>
<Properties>Client.ID</Properties>
<Properties>Name</Properties>
<Properties>Description</Properties>
<Properties>Publication.ID</Properties>
<Properties>CreatedDate</Properties>
<Properties>CreatedBy</Properties>
<Properties>ModifiedDate</Properties>
<Properties>ModifiedBy</Properties>
<Properties>Content.ID</Properties>
</RetrieveRequest>
</RetrieveRequestMsg>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Update Single-Send Triggered Send<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T22:55:54Z</wsu:Created>
<wsu:Expires>2011-02-10T23:00:54Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*********</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*********</wsse:Password>
<wsse:Nonce>41q5zlbKtd1eAHarNvUqCMGCegU=</wsse:Nonce>
<wsu:Created>2011-02-10T22:55:54Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<UpdateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SMSTriggeredSendDefinition">
<ns1:ModifiedDate
xsi:nil="true"/> <ns1:ObjectID
xsi:nil="true"/>
<ns1:CustomerKey>12345</ns1:CustomerKey>
<ns1:Name>ListSend</ns1:Name>
<ns1:Publication>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>4165</ns1:ID>
<ns1:ObjectID
xsi:nil="true"/>
</ns1:Publication>
<ns1:Content>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>1148</ns1:ID>
<ns1:ObjectID xsi:nil="true"/>
</ns1:Content>
<ns1:SendToList>false</ns1:SendToList>
</ns1:Objects>
</UpdateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Delete Single-Send Triggered Send<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T22:44:54Z</wsu:Created>
<wsu:Expires>2011-02-10T22:49:54Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*********</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">
********</wsse:Password>
<wsse:Nonce>2zaUu7uBj/4iJ9z0Bh5jpa4heGI=</wsse:Nonce>
<wsu:Created>2011-02-10T22:44:54Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<DeleteRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:SMSTriggeredSendDefinition">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:CustomerKey>12345</ns1:CustomerKey>
</ns1:Objects>
</DeleteRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Retrieve Tracking Information from SMS SendsThe sample code below demonstrates how to retrieve tracking information regarding your SMS sends. You can retrieve the following tracking information:
Take the following actions to set up this use case:
MT RetrieveYou can retrieve the following information for an MT message:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-11T16:03:43Z</wsu:Created>
<wsu:Expires>2011-02-11T16:08:43Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>**********</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*******</wsse:Password>
<wsse:Nonce>a1JERck6AFvNHeYDX0YzlWo4TlA=</wsse:Nonce>
<wsu:Created>2011-02-11T16:03:43Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ObjectType>SMSMTEvent</ObjectType>
<Properties>ObjectID</Properties>
<Properties>Client.ID</Properties>
<Properties>SMSTriggeredSend.SmsSendId</Properties>
<Properties>MOCode</Properties>
<Properties>EventDate</Properties>
<Properties>Subscriber.ID</Properties>
<Properties>Subscriber.SubscriberKey</Properties>
<Properties>SMSTriggeredSend.SMSTriggeredSendDefinition.ObjectID</Properties>
<Properties>SMSTriggeredSend.SMSTriggeredSendDefinition.CustomerKey</Properties>
<Properties>Subscriber.PrimarySMSAddress.Address</Properties>
</RetrieveRequest>
</RetrieveRequestMsg>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
MO RetrieveYou can retrieve the following information for an MO message:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-11T16:05:25Z</wsu:Created>
<wsu:Expires>2011-02-11T16:10:25Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>****</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">
****</wsse:Password>
<wsse:Nonce>NcBIlWm+4uroYiquzlUwPBj2FMA=</wsse:Nonce>
<wsu:Created>2011-02-11T16:05:25Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ClientIDs/>
<ObjectType>SMSMOEvent</ObjectType>
<Properties>ObjectID</Properties>
<Properties>Client.ID</Properties>
<Properties>MobileTelephoneNumber</Properties>
<Properties>MOCode</Properties>
<Properties>EventDate</Properties>
<Properties>Message</Properties>
<Properties>KeyWord.CustomerKey</Properties>
</RetrieveRequest>
</RetrieveRequestMsg>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Sending MT Messages to Double Opt-In SubscribersThe sample code below demonstrates how to add subscribers to a double opt-in subscriber list and send them an MT message. It also includes code to allow subscribers to unsubscribe via MO message. This requires the following actions:
Create SMSPublicationUnsubMODefinition<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T19:16:29Z</wsu:Created>
<wsu:Expires>2011-02-10T19:21:29Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*********</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">******</wsse:Password>
<wsse:Nonce>c+CRDERnM3By9DpSAt5FN+zUqMM=</wsse:Nonce>
<wsu:Created>2011-02-10T19:16:29Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<CreateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:UnsubscribeFromSMSPublicationMOKeyword">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:CustomerKey>PublicationUnsubActionNew</ns1:CustomerKey>
<ns1:IsDefaultKeyword>false</ns1:IsDefaultKeyword>
<ns1:AllUnsubSuccessMessage>Susccessful Unsub</ns1:AllUnsubSuccessMessage>
<ns1:InvalidPublicationMessage>You sent an invalid publication</ns1:InvalidPublicationMessage>
<ns1:SingleUnsubSuccessMessage>Single Unsub successful</ns1:SingleUnsubSuccessMessage>
</ns1:Objects>
</CreateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Update SMSPublicationUnsubMODefinition<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T19:17:39Z</wsu:Created>
<wsu:Expires>2011-02-10T19:22:39Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>********</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">******</wsse:Password>
<wsse:Nonce>yC3IPvw79j+fIopeehzUHgRJ/iQ=</wsse:Nonce>
<wsu:Created>2011-02-10T19:17:39Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<UpdateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:UnsubscribeFromSMSPublicationMOKeyword">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:CustomerKey>PublicationUnsubAction1</ns1:CustomerKey>
<ns1:IsDefaultKeyword>false</ns1:IsDefaultKeyword>
<ns1:AllUnsubSuccessMessage>ghhhhh</ns1:AllUnsubSuccessMessage>
<ns1:InvalidPublicationMessage/>
<ns1:SingleUnsubSuccessMessage>ffgggg</ns1:SingleUnsubSuccessMessage>
</ns1:Objects>
</UpdateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Retrieve SMSPublicationUnsubMODefinition<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T20:11:54Z</wsu:Created>
<wsu:Expires>2011-02-10T20:16:54Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*******</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">****</wsse:Password>
<wsse:Nonce>jF2IMXnUDxaSviL2xuSVts1Ocyw=</wsse:Nonce>
<wsu:Created>2011-02-10T20:11:54Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ClientIDs>
<ID>114991</ID>
</ClientIDs>
<ObjectType>UnsubscribeFromSMSPublicationMOKeyword</ObjectType>
<Properties>UnsubscribeFromSMSPublicationMOKeyword.CreatedDate</Properties>
<Properties>UnsubscribeFromSMSPublicationMOKeyword.ModifiedDate</Properties>
<Properties>UnsubscribeFromSMSPublicationMOKeyword.CustomerKey</Properties>
<Properties>UnsubscribeFromSMSPublicationMOKeyword.IsDefaultKeyword</Properties>
<Properties>UnsubscribeFromSMSPublicationMOKeyword.AllUnsubSuccessMessage</Properties>
<Properties>UnsubscribeFromSMSPublicationMOKeyword.InvalidPublicationMessage</Properties>
<Properties>UnsubscribeFromSMSPublicationMOKeyword.InvalidPublicationMessage</Properties>
<Properties>UnsubscribeFromSMSPublicationMOKeyword.SingleUnsubSuccessMessage</Properties>
<Properties>Client.ID</Properties>
</RetrieveRequest>
</RetrieveRequestMsg>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Delete SMSPublicationUnsubMODefinition<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T20:50:26Z</wsu:Created>
<wsu:Expires>2011-02-10T20:55:26Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*******</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*******</wsse:Password>
<wsse:Nonce>TTx7CMG7NO/4a1AFG2PlCfmc5Ks=</wsse:Nonce>
<wsu:Created>2011-02-10T20:50:26Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<DeleteRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:UnsubscribeFromSMSPublicationMOKeyword">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:CustomerKey>PublicationUnsubAction1</ns1:CustomerKey>
<ns1:AllUnsubSuccessMessage/>
<ns1:InvalidPublicationMessage/>
<ns1:SingleUnsubSuccessMessage/>
</ns1:Objects>
</DeleteRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Create SMS Double Opt-InNote that you cannot set a Next keyword for this call, as the double opt-in requires the use of the same keyword twice in a row. <?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T21:38:28Z</wsu:Created>
<wsu:Expires>2011-02-10T21:43:28Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*******</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">
*******</wsse:Password>
<wsse:Nonce>BjUU8pYOMdhOvEQJgUjwoWhdSW0=</wsse:Nonce>
<wsu:Created>2011-02-10T21:38:28Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<CreateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:DoubleOptInMOKeyword">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID
xsi:nil="true"/>
<ns1:CustomerKey>xujdhbhdgg</ns1:CustomerKey>
<ns1:DefaultPublication>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>12345</ns1:ID>
<ns1:ObjectID
xsi:nil="true"/>
</ns1:DefaultPublication>
<ns1:InvalidPublicationMessage>Invalid Publication Message(required)</ns1:InvalidPublicationMessage>
<ns1:InvalidResponseMessage>Invalid Response Message(required)</ns1:InvalidResponseMessage>
<ns1:MissingPublicationMessage>Missing Publication Message(required)</ns1:MissingPublicationMessage>
<ns1:NeedPublicationMessage>Need Publication Message(required)</ns1:NeedPublicationMessage>
<ns1:PromptMessage>Prompt Message(required)</ns1:PromptMessage>
<ns1:SuccessMessage>Success Message(required)</ns1:SuccessMessage>
<ns1:UnexpectedErrorMessage>Unexpected Error Message(required)</ns1:UnexpectedErrorMessage>
<ns1:ValidPublications>
<ns1:ValidPublication>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>12345</ns1:ID>
<ns1:ObjectID
xsi:nil="true"/>
</ns1:ValidPublication>
<ns1:ValidPublication>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>12345</ns1:ID>
<ns1:ObjectID
xsi:nil="true"/>
</ns1:ValidPublication>
<ns1:ValidPublication>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>12345</ns1:ID>
<ns1:ObjectID xsi:nil="true"/>
</ns1:ValidPublication>
</ns1:ValidPublications>
<ns1:ValidResponses>
<ns1:ValidResponse>Yes, Y, Yea</ns1:ValidResponse>
</ns1:ValidResponses>
</ns1:Objects>
</CreateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Update SMS Double Opt-In<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T22:31:14Z</wsu:Created>
<wsu:Expires>2011-02-10T22:36:14Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>********</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*****</wsse:Password>
<wsse:Nonce>xep6gCldpp9HhznB5G6S6vBWvb4=</wsse:Nonce>
<wsu:Created>2011-02-10T22:31:14Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<UpdateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:DoubleOptInMOKeyword">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID
xsi:nil="true"/>
<ns1:CustomerKey>APIDOUBLEOPTIN</ns1:CustomerKey>
<ns1:DefaultPublication>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>12345</ns1:ID>
<ns1:ObjectID
xsi:nil="true"/>
</ns1:DefaultPublication>
<ns1:InvalidPublicationMessage>Invalid Publication Message(required)Chng</ns1:InvalidPublicationMessage>
<ns1:InvalidResponseMessage>Invalid Response Message(required)Chng</ns1:InvalidResponseMessage>
<ns1:MissingPublicationMessage>Missing Publication Message(required)Chng</ns1:MissingPublicationMessage>
<ns1:NeedPublicationMessage>Need Publication Message(required)Chng</ns1:NeedPublicationMessage>
<ns1:PromptMessage>Prompt Message(required)chng</ns1:PromptMessage>
<ns1:SuccessMessage>Success Message(required)Chng</ns1:SuccessMessage>
<ns1:UnexpectedErrorMessage>Unexpected Error Message(required)Chng</ns1:UnexpectedErrorMessage>
<ns1:ValidPublications>
<ns1:ValidPublication>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>12345</ns1:ID>
<ns1:ObjectID
xsi:nil="true"/>
</ns1:ValidPublication>
<ns1:ValidPublication>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>12345</ns1:ID>
<ns1:ObjectID
xsi:nil="true"/>
</ns1:ValidPublication>
<ns1:ValidPublication>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>12345</ns1:ID>
<ns1:ObjectID xsi:nil="true"/>
</ns1:ValidPublication>
</ns1:ValidPublications>
<ns1:ValidResponses>
<ns1:ValidResponse>Yes, Y, Yea, Yessir</ns1:ValidResponse>
</ns1:ValidResponses>
</ns1:Objects>
</UpdateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Retrieve SMS Double Opt-In<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T23:07:10Z</wsu:Created>
<wsu:Expires>2011-02-10T23:12:10Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>**********</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">
********</wsse:Password>
<wsse:Nonce>wm5V4P7cXtLhB2/LzzfcbaI47L8=</wsse:Nonce>
<wsu:Created>2011-02-10T23:07:10Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ObjectType>DoubleOptInMOKeyword</ObjectType>
<Properties>DoubleOptInMOKeyword.Client.ID</Properties>
<Properties>DoubleOptInMOKeyword.Createddate</Properties>
<Properties>DoubleOptInMOKeyword.ModifiedDate</Properties>
<Properties>DoubleOptInMOKeyword.CustomerKey</Properties>
<Properties>DoubleOptInMOKeyword.IsDefaultKeyword</Properties>
<Properties>DoubleOptInMOKeyword.InvalidPublicationMessage</Properties>
<Properties>DoubleOptInMOKeyword.InvalidResponseMessage</Properties>
<Properties>DoubleOptInMOKeyword.MissingPublicationMessage</Properties>
<Properties>DoubleOptInMOKeyword.NeedPublicationMessage</Properties>
<Properties>DoubleOptInMOKeyword.PromptMessage</Properties>
<Properties>DoubleOptInMOKeyword.SuccessMessage</Properties>
<Properties>DoubleOptInMOKeyword.UnexpectedErrorMessage</Properties>
<Properties>DoubleOptInMOKeyword.ValidPublications</Properties>
<Properties>DoubleOptInMOKeyword.ValidResponses</Properties>
<Properties>DoubleOptInMOKeyword.DefaultPublication.ID</Properties>
</RetrieveRequest>
</RetrieveRequestMsg>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Delete SMS Double Opt-In<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-10T23:10:25Z</wsu:Created>
<wsu:Expires>2011-02-10T23:15:25Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*****</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*******</wsse:Password>
<wsse:Nonce>jhbU3Lj6xwx9USHmhpJyuuLr+hg=</wsse:Nonce>
<wsu:Created>2011-02-10T23:10:25Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<DeleteRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options/>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:DoubleOptInMOKeyword">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID
xsi:nil="true"/>
<ns1:CustomerKey>DoubleOptIn</ns1:CustomerKey>
<ns1:DefaultPublication>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ID>12345</ns1:ID>
<ns1:ObjectID
xsi:nil="true"/>
</ns1:DefaultPublication>
<ns1:InvalidPublicationMessage/>
<ns1:InvalidResponseMessage/>
<ns1:MissingPublicationMessage/>
<ns1:NeedPublicationMessage/>
<ns1:PromptMessage/>
<ns1:SuccessMessage/>
<ns1:UnexpectedErrorMessage/>
<ns1:ValidPublications>
<ns1:ValidPublication>
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
</ns1:ValidPublication>
</ns1:ValidPublications>
<ns1:ValidResponses>
<ns1:ValidResponse/>
</ns1:ValidResponses>
</ns1:Objects>
</DeleteRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Manage the Status of SMS SubscribersThe sample code below demonstrates how to change the status of SMS subscribers from Active to Inactive or from Inactive to Active. This includes adding a subscriber in an Unsubscribed status to prevent them from receiving any messages. You must have custom functionality enabled for your account in order to manage SMS subscriber status via the API. Please contact your ExactTarget representative or the Global Support team to have this functionality enabled. Add SMS Subscriber to ALLSMSSUBSCRIBERS as Unsubscribed<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-11T18:06:35Z</wsu:Created>
<wsu:Expires>2011-02-11T18:11:35Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*****</wsse:Username>
<wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*****</wsse:Password>
<wsse:Nonce>AoMvr6LTetUZ2vOU8sRgmjfVmbg=</wsse:Nonce>
<wsu:Created>2011-02-11T18:06:35Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<CreateRequest
xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options>
<SaveOptions>
<SaveOption>
<PropertyName>Subscriber</PropertyName>
<SaveAction>UpdateAdd</SaveAction>
</SaveOption>
</SaveOptions>
</Options>
<ns1:Objects
xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI"
xsi:type="ns1:Subscriber">
<ns1:ModifiedDate
xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:SubscriberKey>15555555555</ns1:SubscriberKey>
<ns1:Status>Unsubscribed</ns1:Status>
<ns1:PrimarySMSAddress>
<ns1:Address>15555555555</ns1:Address>
<ns1:Statuses>
<ns1:Status>
<ns1:Status>OptedOut</ns1:Status>
</ns1:Status>
</ns1:Statuses>
<ns1:Carrier>Verizon</ns1:Carrier>
</ns1:PrimarySMSAddress>
</ns1:Objects>
</CreateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Add a Subscriber (Including Mobile Number and Email Address) to a Publication List as Unsubscribed<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Timestamp>
<wsu:Created>2011-02-11T18:14:35Z</wsu:Created>
<wsu:Expires>2011-02-11T18:19:35Z</wsu:Expires>
</wsu:Timestamp>
<wsse:UsernameToken>
<wsse:Username>*****</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">*****</wsse:Password>
<wsse:Nonce>nQofv5ub7GFkX1H1+BIxp0W2BEE=</wsse:Nonce>
<wsu:Created>2011-02-11T18:14:35Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<CreateRequest xmlns="http://exacttarget.com/wsdl/partnerAPI">
<Options>
<SaveOptions>
<SaveOption>
<PropertyName>Publication.Subscribers</PropertyName>
<SaveAction>UpdateAdd</SaveAction>
</SaveOption>
</SaveOptions>
</Options>
<ns1:Objects xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI" xsi:type="ns1:Publication">
<ns1:ModifiedDate xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:ID>11111</ns1:ID>
<ns1:Subscribers>
<ns1:Subscriber>
<ns1:ModifiedDate xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:SubscriberKey>12345</ns1:SubscriberKey>
<ns1:PrimarySMSAddress>
<ns1:Address>15555555555</ns1:Address>
<ns1:Statuses>
<ns1:Status>
<ns1:Status>OptedOut</ns1:Status>
</ns1:Status>
</ns1:Statuses>
</ns1:PrimarySMSAddress>
<ns1:PrimaryEmailAddress>
<ns1:Address>acruz@example.com</ns1:Address>
<ns1:Statuses>
<ns1:Status>
<ns1:Status>OptedOut</ns1:Status>
</ns1:Status>
</ns1:Statuses>
</ns1:PrimaryEmailAddress>
</ns1:Subscriber>
<ns1:Subscriber>
<ns1:ModifiedDate xsi:nil="true"/>
<ns1:ObjectID xsi:nil="true"/>
<ns1:SubscriberKey>123456</ns1:SubscriberKey>
<ns1:PrimarySMSAddress>
<ns1:Address>15555555555</ns1:Address>
<ns1:Statuses>
<ns1:Status>
<ns1:Status>OptedOut</ns1:Status>
</ns1:Status>
</ns1:Statuses>
</ns1:PrimarySMSAddress>
<ns1:PrimaryEmailAddress>
<ns1:Address>jdoe@example.com</ns1:Address>
</ns1:PrimaryEmailAddress>
</ns1:Subscriber>
</ns1:Subscribers>
</ns1:Objects>
</CreateRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
This page was last updated by Ryan Williams on Mon, 09 Jan 2012 18:53:32 GMT. If you require assistance with the ExactTarget application, please contact Global Support. If you wish to send Ryan direct feedback, fill out the form below:
Tags: (Edit tags)
|
Powered by MindTouch 2010 |