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

Thanks to Jill Crimmins @ Locus Interactive for helping us get started with this sample code.This sample application implements several high-level features and illustrates how to leverage the Vertical Response API. The sample implements the following functionality:

Prerequisites & Notes

Running The Sample

  1. Download and extract the VRAPI_ColdFusion.zip file contents and place them in the wwwroot folder
  2. Open VRAPI_lifecycle.cfm solution in a text editor.
  3. Enter your access identifiers
    1. From line 4, 9-10
      vr = createObject("webservice", "https://api.verticalresponse.com/wsdl/1.0/VRAPI.wsdl"); // WSDL location
      StructInsert(vr_loginarray, "username", ""); //username
      StructInsert(vr_loginarray, "password", ""); // password
    2. open VRAPI_Reporting.cfm and modify lines 4, 9-10
      vr = createObject("webservice", "https://api.verticalresponse.com/wsdl/1.0/VRAPI.wsdl"); // WSDL location
      StructInsert(vr_loginarray, "username", ""); //username
      StructInsert(vr_loginarray, "password", ""); // password
    3. In VRAPI_Reporting.cfm modify lines 33, 38, 42
      StructInsert(NVPair_email, "value", ""); //enter an email address value
      StructInsert(NVPair_fn, "value", ""); // enter First Name value
      StructInsert(NVPair_fn, "value", ""); // enter Last Name value

  4. Some variables are required for the test application to work. First Name, Last Name, Email Address are 3 variables that are used to add a member to the list and to send test messages.