GetPolls

Method Name: GetPolls.
Method description: Used to retrieve a list of Polls in your account. You can use the start and end attributes to page the result. You can also use the id attribute to specify a parent id, that you may have used when creating a poll to categorize your polls.

Request XML Payload

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

Response XML Payload

<?xml version="1.0" encoding="utf-8" ?>
<pd:pdResponse partnerGUID="3F2504E0-4F89-11D3-9A0C-0305E82C3301" xmlns:pd="http://api.polldaddy.com/pdapi.xsd">
  <pd:userCode>123456-FErKS5yu15scpSGmvip4JA==</pd:userCode>
  <pd:demands>
    <pd:demand id="GetPolls">
      <pd:polls total="1">
      	<pd:poll id="690432345" owner="60369789" created="2008-11-04T16:47:47.293" responses="5" folderID="17948644" closed="0"><![CDATA[Do you like surveys?]]></pd:poll>
      </pd:polls>
    </pd:demand>
  </pd:demands>
</pd:pdResponse>

%d bloggers like this: