// archives

ExactTarget

This tag is associated with 27 posts

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 [...]

Using The Lookup Function In Server-side Javascript

When using dynamic content within emails on the ExactTarget platform it is often useful to pull data from Data Extensions in order to populate content. Since the Retrieve function is not available within emails, therefore, developers are forced to use the Lookup function. At first glance, the ExactTarget wiki sample code (found here) is a [...]

Using TreatAsContentArea With External APIs

If already don’t know about ExactTarget AMPScript TreatAsContentArea function, well you definitely should. It is an essential tool when sending large scale emails where several different sets of content are to be sent out depending on attributes of a subscriber. What makes TACA (TreatAsContentArea) so unique and useful is that is a caching function for [...]

How to use the Lookup Function In AMPScript

I would like to start by saying that AMPScript is a very powerful tool to use when creating dynamic emails within ExactTarget. It is well documented and has a diverse range of functionality to do the very simplest tasks to the most complex. One of the most common uses is to access data within Data [...]

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 = [...]

Follow Us

Recent Posts

The Concert of the Future
January 20, 2012
By JGirdler
Creating A Data Filter Via SOAP API In ExactTarget Using PHP
January 18, 2012
By Nick Holdren
Using The Lookup Function In Server-side Javascript
December 30, 2011
By Nick Holdren
Time to go Viral!
December 27, 2011
By JGirdler
Ticketfly API Wrapper for PHP
December 23, 2011
By Nick Holdren
Using TreatAsContentArea With External APIs
December 19, 2011
By Nick Holdren
LastFM API Wrapper for PHP
December 16, 2011
By Nick Holdren

Twitter Stream

Archives

UA-18598603-2