GetPollComments

Method Name: GetPollComments.
Method description: Used to retrieve the Poll Comments. A list node can be used, similar to getpolls, to page the result, or you can use a poll node with the poll id.

Request XML Payload

<?xml version="1.0" encoding="utf-8" ?>
<pd:pdRequest xmlns:pd="http://api.polldaddy.com/pdapi.xsd" partnerGUID="3F2504E0-4F89-11D3-9A0C-0305E82C3301">
	<pd:userCode>123456-FErKS5yu15scpSGmvip4JA==</pd:userCode>
	<pd:demands>
		<pd:demand id="GetPollComments">
			<pd:list end="10" start="0" id="7654321" />
		</pd:demand>
	</pd:demands>
</pd:pdRequest>

Response XML Payload

<?xml version="1.0" encoding="utf-8" ?>
<pd:pdResponse xmlns:pd="http://api.polldaddy.com/pdapi.xsd" partnerGUID="3F2504E0-4F89-11D3-9A0C-0305E82C3301">
	<pd:userCode>123456-FErKS5yu15scpSGmvip4JA==</pd:userCode>
	<pd:demands>
		<pd:demand id="GetPollComments"/>
		<pd:comments id="7654321" total="3">
			<pd:comment id="12345" parent="7654321" type="1">
				<pd:name>Johnny Mac</pd:name>
				<pd:email>johnnymac@gmail.com</pd:email>
				<pd:text>I have no idea!</pd:text>
				<pd:url>johnnymac.weebly.com</pd:url>
				<pd:date>2010-02-10 10:46:32</pd:date>
				<pd:ip>147.22.87.56</pd:ip>
			</pd:comment>
			<pd:comment id="12346" parent="7654321" type="1">
				<pd:name>Richard Dunne</pd:name>
				<pd:email>DickyDunne@ymail.com</pd:email>
				<pd:text>Yay, I love polls and I love to comment more</pd:text>
				<pd:url/>
				<pd:date>2010-02-10 04:27:56</pd:date>
				<pd:ip>100.22.43.87</pd:ip>
			</pd:comment>
			<pd:comment id="12347" parent="7654321" type="1">
				<pd:name>YAYA Mikey</pd:name>
				<pd:email>yaya.mikey@verizon.net</pd:email>
				<pd:text>This is a great poll!</pd:text>
				<pd:url>http://Iliketoblog.wordpress.com</pd:url>
				<pd:date>2010-02-09 19:52:24</pd:date>
				<pd:ip>122.23.123.247</pd:ip>
			</pd:comment>
		</pd:comments>
	</pd:demands>
</pd:pdResponse>

%d bloggers like this: