fetchMagicPollSummary

List all Magic Polls and statistics.

POST data information:
This function can be used with an optional POST key called magicID. When magicID is defined more detailed results are added to the XML return.

Return data

This API call will return a multiple XML Magic Poll container if magicID is not defined (Sample return 1).

If magicID is defined it will return more detailed information (Sample return 2).

Sample return 1

XML-Return

<?xml version="1.0" encoding="utf-8"?>
<response>
<status>Success</status>
 <MagicPolls>
  <MagicPollInfo magicID="1365745486">
  <magicID>1365745486</magicID>
  <magicName>Magic Poll Question</magicName>
  <completedAnswers>
	<Summary>0</Summary>
	<Options>
		<Option>
			<Number>1</Number>
			<OptionText>Option 1</OptionText>
			<Result>0</Result>
			<Percent></Percent>
		</Option>
		<Option>
			<Number>2</Number>
			<OptionText>Option 2</OptionText>
			<Result>0</Result>
			<Percent></Percent>
		</Option>
	</Options>
  </completedAnswers>
  <stoppedAnswers>
		<Summary>0</Summary>
  </stoppedAnswers>
  </MagicPollInfo>
 </MagicPolls>
</response>

Key information 1

 magicID Id of the Magic Poll in Examinare.
magicName The question asked.
completedAnswers Completed answers in the Poll.
Options Options with results from the poll. If added Options. If no options this field is empty.
–       Number Identification number of the Polls Option.
–       Optiontext Text of the Polls Option
–       Result The result of the Poll Option
–       Percent The percentage of the Poll Option compared to Summary of Completed Answers.

Sample return 2

XML-Return

<?xml version="1.0" encoding="utf-8"?>
<response>
<status>Success</status>
<MagicPolls>
<MagicPollInfo magicID="1365745486">
<magicID>1365745486</magicID>
<magicName>TestPoll</magicName>
<completedAnswers>
	<Summary>5</Summary>
<Options>
	<Option>
		<Number>1</Number>
		<OptionText>Option 1</OptionText>
		<Result>2</Result>
		<Percent>40</Percent>
	</Option>
	<Option>
		<Number>2</Number>
		<OptionText>Option 2</OptionText>
		<Result>3</Result>
		<Percent>60</Percent>
	</Option>
</Options>
  <SMS>
	<answer>
		<id>MOBILE;+46XXXXXXXX.1381480943</id>
		<when>2013-10-11 10:42:23</when>
		<stamp>1381480943</stamp>
		<phrase>2</phrase>
		<from>+46XXXXXXXX</from>
	</answer>
	<answer>
		<id>MOBILE;+46XXXXXXXX.1381479624</id>
		<when>2013-10-11 10:20:24</when>
		<stamp>1381479624</stamp>
		<phrase>2</phrase>
		<from>+46XXXXXXXX</from>
	</answer>
	<answer>
		<id>MOBILE;+46XXXXXXXX.1381479600</id>
		<when>2013-10-11 10:20:00</when>
		<stamp>1381479600</stamp>
		<phrase>1</phrase>
		<from>+46XXXXXXXX</from>
	</answer>
  </SMS>
  <Twitter>
	<answer>
		<id>TWITTER;XXXXXXXX:388576542420267009.1381479489</id>
		<when>2013-10-11 10:18:09</when>
		<stamp>1381479489</stamp>
		<phrase>1</phrase>
		<from>XXXXXXXX</from>
	</answer>
  </Twitter>
  <Web>
	<answer>
		<id>WEBSITE;j186hntcn28efok6t6oeg94fv5;XXX.XXX.XXX.XXX.1381479661</id>
		<when>2013-10-11 10:21:01</when>
		<stamp>1381479661</stamp>
		<phrase>Option 2</phrase>
		<from>http://XXX.examinare.net/mp/1365745486/</from>
		<ip>XXX.XXX.XXX.XXX</ip>
	</answer>
  </Web>
 </completedAnswers>
 <stoppedAnswers>
	<Summary>0</Summary>
 </stoppedAnswers>
</MagicPollInfo>
</MagicPolls>
</response>

Key information 2

For generic fields in this section please check Key Information 1 since this part only handle the difference between Key information 1 and 2.

 SMS Container for SMS votes
–       Answer Container for individual SMS answer.
–       – id Id of this vote in Examinare.
–       – when Date of the vote in Y-M-D Time format
–       – stamp Unix Timestamp of the vote
–       – phrase Phrase sent in.
–       – from Phonenumber who sent it in.
 Twitter Container for Twitter votes.
–       Answer Container for individual Twitter answer.
–       – id Id of this vote in Examinare.
–       – when Date of the vote in Y-M-D Time format
–       – stamp Unix Timestamp of the vote
–       – phrase Phrase sent in.
–       – from TwitterID who sent it in.
 Web Container for Web votes
–       Answer Container for individual Web votes.
–       – id Id of this vote in Examinare.
–       – when Date of the vote in Y-M-D Time format
–       – stamp Unix Timestamp of the vote
–       – phrase Phrase sent in.
–       – from URL of the voting form.
–       – ip Ip-address of the device entering the voting.

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

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