Sample Code

Ruby

RubyThe Ruby lifecycle sample code provides all the steps that are needed to send out an email campaign. There are two files. The first script goes through creating and launching an email campaign. The second script retrieves and displays a list of all sent email campaigns.


C# / .Net

C# /.netThis sample code allows you to test the full 'lifecycle' of VerticalResponse API functionality. The code will demonstrate how to create & add members to a list, create & launch a campaign, and download statistics for sent campaigns. The code was created using VisualStudio 2005.


Perl

PerlThe Perl Lifecycle example, goes through all the necessary steps in order to send out a message. It requires the SOAP::Lite library in order to run.


Java

JavaWe have two sets of sample code available in Java, the Lifecycle app (see C# description above) and a Command Line Interface app. The Java Lifecycle application is very similar to the C# version (see description above) - you can use it to try out the essential API methods you'll want to use to manipulate lists and campaigns. The Command Line Interface application allows you to experiment with various API methods interactively without having to compile every time you want to see the output of commands you issue.


PHP

phpThis sample code allows you to test the full 'life-cycle' of VR API functionality. There are two scripts available, one that will demonstrate how to create and add members to a list; create, preview and launch a campaign; and view the top domains for your list. The second script will allow you to view the sent campaign statistics. This example code requires PHP 5.


ColdFusion

Cold FusionThe ColdFusion Lifecycle example, goes through all the necessary steps in order to send out a message and view some of the reporting functionality. This sample code was developed using ColdFusion 8.