
Vertical Response API Usage in ColdFusion
A sample application that demonstrates how to build basic
functionality using the Vertical Response API and ColdFusion.
About This Sample
The included sample relies heavily on the underlying Java engine in order to perform its functions. If you are using the Enterprise API and have no need for a Partner Client Certificate, you can use Coldfusion's built-in web services functionality instead of this code. In order to properly provide the partner client certificate for the VerticalResponse Partner API, you will need to code using the underlying Java as described here.
The included sample code performs the following functions:
- 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 canvas
- Add HTML & text content to the campaign
- Attach list to campaign
- Send a test email for the campaign
- Launch campaign
Prerequisites & Notes
- Create a Vertical Response account (http://www.verticalresponse.com/)
- Contact us to have your account enabled for API access.
- If you are using the VerticalResponse Partner API you will also need the partner client certificate with a .p12 extension.
Running The Sample
- Download and extract the VRAPI_ColdFusion_9.zip file contents and place them in the wwwroot folder
- Open the vrapi-sample.cfm file in a text editor.
- Replace the default code with your account credentials on lines 18 and 19
- Replace the sample list recipient information on lines 94-106 with a valid email address.
- If you are using the VerticalResponse Partner API, uncomment and update lines 25-43 with the location of your .p12 certificate and its passphrase.