Last updated 10 months ago
Serves an eligible survey.
Successful response. Will return empty object if no eligible surveys are found. Otherwise the return type is based on the "device_type" parameter. (native_mobile, email, all others).
const response = await fetch('https://survey.pulseinsights.com/serve?identifier=PI-1234567890&device_type=desktop&udid=00000000-0000-4000-f000-000000000001', { method: 'GET', headers: {}, }); const data = await response.json();
{}