fetchResultsByUser

Fetch the results from the Survey with background data filtering.

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

surveyID Id of the Survey in Examinare.
timestamp1 Used in combination with timestamp2 to select votes between 2 dates. Needs to be in form of UNIX timestamp.
timestamp2 UNIX timestamp.
contactID contactID connected to the recipient. (Wildcard enabled)
email Email belonging to the recipient. (Wildcard enabled)
group Group name belonging to the recipient. (Wildcard enabled)
title Title belonging to the recipient. (Wildcard enabled)
company Company name belonging to the recipient. (Wildcard enabled)
company-title Recipients company title. (Wildcard enabled)
department Department in the company. (Wildcard enabled)
customer-group Customer group. (Wildcard enabled)
gender Se customer information.
address Address (Wildcard enabled)
state State (Wildcard enabled)
country Country (Wildcard enabled)
city City (Wildcard enabled)
postal-code Postal code (Wildcard enabled)

 

Wildcard enabled => Apply * to use Wildcard. Example : Nisse can be N*e

XML-Return

<?xml version="1.0" encoding="utf-8"?> 
<response> 
	<status>Success</status> 
	<result> 
		<surveyInfo surveyID="1315983192"> 
			<surveyID>1315983192</surveyID> 
			<surveyCount>2</surveyCount> 
		</surveyInfo>
	</result> 
	<results> 
		<question Number="1"> 
		<questionNumber>1</questionNumber> 
		<questionInfo>
			<questionText>Do you have a Customer Service system in place?||!linebreak!||(A process that ensures a minimum level of service)</questionText>
			<questionType>Multichoise_question</questionType>
			<questionTypeID>1</questionTypeID>
		</questionInfo>
		<alternative>
			<captionText>Yes</captionText>
			<numResult>0</numResult>
		</alternative>
		<alternative>
			<captionText>No</captionText>
			<numResult>2</numResult>
		</alternative>
		</question>
	</results>
</response>

PHP Example (With our PHP Wrapper Library.
<?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("fetchResults");
	
      
                        
	$api2->Data(array("surveyID"=>"REPLACE WITH YOUR SURVEY ID"));
	// Timestamps are not needed but good to use.
	//This example below is for results between 1 january 2015 and 31 december 2015.
	$api2->Data(array("timestamp1"=>1420070400));//01/01/2015 @ 12:00am (UTC)
	$api2->Data(array("timestamp2"=>1451606400));//01/01/2016 @ 12:00am (UTC)
						
	$result=$api2->Execute();
						
                        
	/* In $result you will now find all 
	returnable errors if any or the Survey Results ready to use.*/
                        
?>  

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

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