The Surveywall API provides a solution for publishers to include Surveys into their application/website while maintaining full control over look and feel of the Surveys.
https://www.ayetstudios.com/surveys/surveywall_api/{adslotId}?external_identifier={YOUR_USER_IDENTIFIER}&q5=1995-05-31&q6=20500&q7=8&hash=88cd2108b5347d973cf39cdf9053d7dd42704876d8c9a9bd8e2d168259d3ddf7function generateHash($requestParams, $profilingDataValidationHash) {
// Remove the 'hash' parameter
unset($requestParams['hash']);
// Sort parameters by key
ksort($requestParams);
// Build query string
$queryString = http_build_query($requestParams);
// Calculate HMAC-SHA256 hash
$expectedHash = hash_hmac('sha256', $queryString, $profilingDataValidationHash);
return $expectedHash;
}
// Input data
$profilingDataValidationHash = "your-key";
$requestParams = [
"external_identifier" => "testuser1234",
"q5" => "1995-05-31",
"q6" => "20500",
"q7" => "8"
];
echo "https://www.ayetstudios.com/surveys/surveywall_api/1234?external_identifier=testuser1234&q5=1995-05-31&q6=20500&q7=8&hash=" . generateHash($requestParams, $profilingDataValidationHash);