Need An Email Marketing Solution For All Of Your Customers?

Partner With VerticalResponse!

Sample Code

Our sample code will walk you through all the steps necessary to send an email campaign: logging in, creating a list to mail to, and launching an email campaign. There are language-specific requirements for each sample, but for each of them you’ll need to update the username and password with your credentials.

Ruby

The Ruby lifecycle sample code demonstrates all the steps needed to send out an email campaign. These examples require the soap4r-ruby1.9 gem to be installed.

Download Ruby Sample Code

PHP

This sample code allows you to test the full ‘life-cycle’ of VR API functionality. There are two scripts included, one that demonstrates 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 allows you to view the sent campaign statistics. This example code requires PHP 5 or higher.

Download PHP Sample Code

Perl

The 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.

Download Perl Sample Code

C# / .NET

This sample code allows you to test the full ‘lifecycle’ of VerticalResponse API functionality. The code will demonstrate how to log in, create and add members to a list, and create and launch an email campaign.

Download C# .NET 3.5/4.0 Sample Code

If you are a VerticalResponse Partner and have been provided SSL certificates, please see our C#/.NET Guide for help setting up those certificates in a .NET environment.

Java

Working with a SOAP web service in Java requires use of the Apache Axis Web Service Library. The sample code is written to generate and compile a set of stub code from our WSDL using the wsdl2java program included in the Axis library.

Note: The VerticalResponse API WSDL is RPC Encoded, which the Axis2 web services libraries do not support. Please be sure you’re using the Axis web service (latest version is 1.4 as of this writing).

Download Java Lifecycle Sample Code

If you are a VerticalResponse Partner and have been provided SSL certificates, please see our Java Guide for help setting up those certificates in a Java environment.

ColdFusion

The 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 9.

ColdFusion Sample Code – Uses Java Objects (Partner API or Enterprise API)
ColdFusion Sample Code – Uses Webservice (Enterprise API Only)