ModerateComment

Method Name: ModerateComment.
Method description: Used to moderate a poll’s comment. The attribute method is used to moderate the comment, where a value of 1 adds a comment and 2 rejects a comment.

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="ModerateComment">
                       <pd:comments id="7654321">
                               <pd:comment id="23234" method="1"/>
                       </pd:comments>
		</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="ModerateComment"/>
	</pd:demands>
</pd:pdResponse>
Advertisements

%d bloggers like this: