sendSurvey (SMS)

Send SMS invitations to recipients.

POST data information:
(Red information is mandatory), all POST data captions are case-sensitive.

surveyID Id of the Survey in Examinare.
user_* contactID from the contact information. * needs to be changed into numbers. For example user_1, user_2 etc.
delivery_message Message to be sent by SMS.
delivery_by Must be set to SMS.
schedule Schedule this SMS to later. Must contain a UNIX Timestamp

XML-Return

<?xml version="1.0" encoding="utf-8"?>
<response> 
<status>Success</status>
<reports> 
	<report> 
		<contactID>UA1317237650U4e8373923c16b</contactID>
 		<status>ADDED</status>
  	</report>
   <report>
   		<contactID>UE1317299990U4e8373923c70c</contactID>
   		<status>ERROR</status>
   </report>
</reports>
</response>

PHP Example
<?php 						
	include_once("examinare-api.php");
	$key["apicompany"]="XXXX";						
	$key["apikey"]="YYYYYY";	
							
	/* Change the top information 
	according to your account details. */
						
	$api2 = new ExaminareAPIConnector($key["apicompany"],$key["apikey"],"");
	$api2->setCommand("sendSurvey");
	$details = Array();
	$details["surveyID"]="SURVEYID";
	$details["user_1"]="ContactID";
    $details["delivery_message"]=$emailmessage["body"];
	$details["delivery_subject"]=$emailmessage["subject"];	
	$details["delivery_by"]="SMS";// Must be set otherwise it will be sent by Email.
	
                        
	$api2->Data($details);
						
	$result=$api2->Execute();
						
                        
	/* In $result you will now find all 
	returnable errors if any or the send ID.*/
                        
?>                       

We are just a phone-call away(or an email/chat).

Contact us by email, phone or chat.
Contact Examinare Support