Survey Send
This request is used to send a survey in real-time or scheduled.
URL
Required Parameters
Name
Value
Optional Parameters
Name
Value
Requests
<?php
// Prepare data for POST request
$fields = array(
'apiKey'=> 'YOUR API KEY',
'phoneNumbers'=> '+336xxxxxxxx',
'sondageIdent'=> 'SONDAGE_IDENT',
'scheduledDeliveryDate'=> '21/10/2014',
'time'=> 9,
'minute'=> 0
);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL,'https://api.smspartner.fr/v1/sondage/to/send');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_TIMEOUT, 10);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS,json_encode($fields));
$result = curl_exec($curl);
curl_close($curl);
// Process your response here
echo $result;
?>Response
Errors
Response Code
Description
Last updated