Automatically send surveys to your customers via text message and collect reviews on all the major review sites.
Note: This version of the Client requires PHP 5.4 or greater.
- Send a Survey.
$apiKey = $argv[1];
// Declare Variables to initialize a Survey Model Object
$firstName = "Road";
$lastName = "Runner";
$email = "[email protected]";
$phone = "";
$groupName = "eComm";
$groupDesc = "eComm";
// Create a Survey Model Object
$objSurvey = new Survey($firstName, $lastName, $email, $phone, $groupName, $groupDesc);
// Create an API Client Object
$apiClient = new ApiClient($apiKey);
try {
$result = $apiClient->post("/sendsurvey", $objSurvey);
//Print Result
print_r ($result);
}
catch (Exception $e) {
echo "Caught exception: ", $e->getMessage(), "\n";
}
All other examples are available here.
This repo contains unit test scripts using Composer PHP Dependency Manager.
composer validate --strict
composer install --prefer-dist --no-progress --no-suggest
composer run-script test
The MIT License (MIT) Please see the license file for more information.
If you have found a security issue, please contact the maintainers directly at [email protected].