VerticalResponse API PHP Sample Code

Overview

This is a sample application that demonstrates how to build basic functionality using the VerticalResponse API in PHP. You can email API Support at api-support@verticalresponse.com if you have any questions.

This application implements the following functionalities:

Prerequisites & Notes

PHP Configuration

PHP must be configured with the following parameters:

-- with-openssl
-- enable-soap

Also recommended:

-- with-curl

In addition, the following param must be turned on for SOAP to be able to read files over the internet:

allow_url_fopen = On

After recompiling PHP, phpinfo() should echo something like the following:

Registered PHP Streams => php, file, http, ftp, compress.zlib, https, ftps
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters => string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, zlib.*

... with at least the https stream and the ssl socket parameters.

Running the sample code

Feel free to email API Support at api-support@verticalresponse.com if you have any questions!