// archives

SOAP

This tag is associated with 15 posts

Clearing A Data Extension In ExactTarget Using PHP

The following is a short code sample of how to clear a data extension inside of ExactTarget. This is very useful for external applications that need to clear data extensions without the need executing a query or deleting every row one at a time. It should be noted that this only applies to Enterprise 2.0 [...]

Creating A Data Filter Via SOAP API In ExactTarget Using PHP

A newly added (or just now documented) feature of the ExactTarget SOAP API is the creation of Data Filters. A Data Filter is simply a set of simple logical operators strung together to create a query like filter. What really makes this powerful is that all ExactTarget accounts have Data Filters, which makes this a [...]

ExactTarget SOAP API Wrapper

Although having the ability to wrap the entire SOAP API would be nice I found it nearly impossible. However, I’ve made a simplified version that allows one to act on ExactTarget objects. It allows for Create, Update, Delete, Retrieve, and Upsert of an object. Again, it is simple but it will save in writing a [...]

How To Execute A Triggered Send With Additional Attributes Via SOAP API In ExactTarget Using PHP

This is an example of how to execute a triggered send within the ExactTarget platform. $wsdl = ‘https://webservice.exacttarget.com/etframework.wsdl’; try{ //Create the Soap Client $client = new ExactTargetSoapClient($wsdl, array(‘trace’=>1)); // Set username and password here $client->username = ‘username’; $client->password = ‘password’; //Define the subscriber $subscriber = new ExactTarget_Subscriber(); $subscriber->EmailAddress = ‘test@test.com’; $subscriber->SubscriberKey = ‘test@test.com’; //Define the [...]

How To Update A Query Activity In ExactTarget Via SOAP API In ExactTarget

try { $wsdl = ‘https://on.exacttarget.com/etframework.wsdl’; $client = new ExactTargetSoapClient($wsdl, array(‘trace’=>1)); $client->username = ‘username’; $client->password = ‘password’; //Define the query definition $query = new ExactTarget_QueryDefinition(); $query->ObjectID = ‘QueryID’; $sql = “SELECT TOP 10 FROM table”; $query->QueryText = $sql; //Set the targeted data extension $ibo = new ExactTarget_InteractionBaseObject(); $ibo->CustomerKey = ‘Target DE’; $ibo->Name = “Test Send”; $query->DataExtensionTarget [...]

How To Create A Query Activity In ExactTarget Via SOAP API In ExactTarget

{ $wsdl = ‘https://on.exacttarget.com/etframework.wsdl’; $client = new ExactTargetSoapClient($wsdl, array(‘trace’=>1)); $client->username = ‘username’; $client->password = ‘password’; //Define the query definition $query = new ExactTarget_QueryDefinition(); $query->Name = “Test Query”; $query->CustomerKey = “TestQuery”; $query->Description = “Test Query Description”; $query->TargetUpdateType = “Overwrite”; $query->TargetType = “DE”; $query->QueryText = “SELECT * FROM table”; //Set the targeted data extension $ibo = new [...]

How To Retrieve Folder ID Via SOAP API In ExactTarget Using PHP

try{ $wsdl = ‘https://on.exacttarget.com/etframework.wsdl’; //Create the Soap Client $client = new ExactTargetSoapClient($wsdl, array(‘trace’=>1)); //Set the username and password $client->username = ‘username’; $client->password = ‘password’; //First find the parent folder $filter = new ExactTarget_SimpleFilterPart(); $filter->Property = “Name”; $filter->SimpleOperator = ExactTarget_SimpleOperators::equals; $filter->Value = array(‘Data Extensions’); //Other possibilities include Emails, or any other folder name //Encode the filter [...]

How To Create Content Area Via SOAP API In ExactTarget Using PHP

[pre] try { $wsdl = ‘https://on.exacttarget.com/etframework.wsdl’; $client = new ExactTargetSoapClient($wsdl, array(‘trace’=>1)); $client->username = ‘username’; $client->password = ‘password’; $content_area = new ExactTarget_ContentArea(); $content_area->Name = ‘My Example Content Area’; $content_area->Content = ‘Hello World’; $content_area = new SoapVar($content_area, SOAP_ENC_OBJECT, ‘ContentArea’, “http://exacttarget.com/wsdl/partnerAPI”); //Setup and execute the request $request = new ExactTarget_CreateRequest(); $request->Objects = $content_area; $request->Options = NULL; $results = [...]

How To Execute Complex Filter Via SOAP API In ExactTarget Using PHP

[pre] $wsdl = ‘https://webservice.exacttarget.com/etframework.wsdl’; /* Create the Soap Client */ $client = new ExactTargetSoapClient($wsdl, array(‘trace’=>1)); /* Set username and password here */ $client->username = ‘username’; $client->password = ‘password’; $rr = new ExactTarget_RetrieveRequest(); $rr->ObjectType = “DataExtensionObject[ExampleDE]“; // ExampleDE is the name of the data extension $rr->Properties = array(); $rr->Properties[] = “SubscriberKey”;//Field you would like to return [...]

How To Create Folder Via SOAP API In ExactTarget Using PHP

try{ $wsdl = ‘https://on.exacttarget.com/etframework.wsdl’; //Create the Soap Client $client = new ExactTargetSoapClient($wsdl, array(‘trace’=>1)); //Set the username and password $client->username = ‘username’; $client->password = ‘password’; $folder = new ExactTarget_Folder(); $folder->Name = ‘My New Folder’; $folder->CustomerKey = ‘My New Folder’; $folder->Description = ‘An Example of a folder created through the API’; $folder->IsActive = true; $folder->IsEditable = true; [...]

Follow Us

Twitter Stream

Archives

UA-18598603-2