
Vertical Response API Usage in Perl
A sample application that demonstrates how to build basic
functionality using the Vertical Response API and Perl.
About This Sample
This sample application implements several high-level features
and illustrates how to leverage the Vertical Response API. The sample
implements the following functionality:
- Logging into the Vertical Response system and attaining a
SessionID
- Creating a list
- Adding a record to the list
- Create an email campaign using the freeform
- Add HTML & text content to the campaign
- Attach list to campaign
- Send a test email for the campaign
- Launch campaign
- Get list of sent campaign
Prerequisites & Notes
- Create a Vertical Response account (http://www.verticalresponse.com/)
- Contact us to have your account enabled for API access.
- Optional Step: Vertical Response can provided you with a
certificate and a passphrase.
- The sample was tested on Mac OS X
- This sample will work on Perl 5.8.6 and above
- You must download the VR::API packaged from CPAN (http://search.cpan.org)
- There are two flavors of this, you can use the VR::API or the
VR::API::Partner which is specifically designed for the Partner API.
- Requires SOAP::Lite package installed
Running The Sample
- Download and extract the VRAPI_perl.zip file contents
- Open VRAPI_lifecycle.pl solution in a text editor.
- Enter your access identifiers:
- Open VRAPI_lifecycle.pl
- Put the correct path to your version of Perl, if you do not know the
path type in "whereis perl" to locate the path.
- From line 13-15
- open VRAPI_data.pl and modify lines 11-13
- In VRAPI_lifecycle.Perl modify lines 10-11
-
Run the application by typing
./VRAPI_lifecycle.pl