PollDaddy Wiki

 

XML API Documentation

Page history last edited by Eoin Gallagher 6 mos ago

Introduction

PollDaddy exposes some of its functionality via an Application Programming Interface (API). This document is a reference for that functionality, and aims to serve as a reference for developers building tools that interact with PollDaddy.

 

Table of Contents


 

Concepts

 

Authentication

To access the the API methods you will need a PollDaddy account.. if you do not have one already, go here.

You will need to request an API key or partnerGUID from the following here. Your API key is essentially a GUID. This informs the us where the request is coming from.

You will also need a Usercode so we know who is making the request. You can request the Usercode once you have the API key and you PollDaddy account login details (email/password).

 

If more than one user is going to use this key to access the API, then you must submit a unique User ID. This is usually an ID that is used on a partners system to identify a user. Submit this partner user id when creating an account.

 

 

HTTP POST XML requests

To make a request to the API, you need to construct in you language of choice, a http POST request where the payload is XML.

This XML payload must conform to the XSD Stylesheet here.

The HTTP POST request also must set the content type to "text/xml".

Send the request to https://api.polldaddy.com/

 

 

API Request Method Types

There are 3 different request mthod types:

  • pdInitiate - Simply used to login and retrieve PollDaddy Usercode
  • pdAccess - Used to access methods where the PollDaddy Usercode is not necessary
    • GetUserCode
    • CreateAccount
  • pdRequest - Used to access the bulk of the API methods and needs a PollDaddy Usercode
    • GetPoll
    • GetPolls
    • DeletePoll
    • CreatePoll
    • UpdatePoll
    • GetPollResults
    • ResetPollResults
    • GetPollComments
    • ModerateComment
    • GetAccount
    • UpdateAccount
    • GetPack
    • GetPacks
    • DeletePack
    • CreatePack
    • UpdatePack
    • GetStyle
    • GetStyles
    • DeleteStyle
    • CreateStyle
    • UpdateStyle
    • GetSurveys
    • GetFolders

 

 

 

How do I report bugs and issues with the PollDaddy API?

You can see the list of existing issues right here.  Please check to be sure your issue hasn't already been reported.  Vote up an existing issue or add an example to it if it describes your bug, or report a new issue if need be.

 

 

pdInitiate Method(s)

 

Method name:  Not applicable.

Method description: Verfiys Users PollDaddy login details, creates a PollDaddy API Usercode and returns it in the response XML payload.
 

Request XML Payload:

 

<?xml version="1.0" encoding="utf-8" ?>

<pd:pdInitiate partnerGUID="3F2504E0-4F89-11D3-9A0C-0305E82C3301" partnerUserID="0" xmlns:pd="http://api.polldaddy.com/pdapi.xsd">

  <pd:Email>polldaddy@example.com</pd:Email>

  <pd:Password>secretpassword</pd:Password>

</pd:pdInitiate>

 

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:pdResponse>

 

-----------------------------------------------------------------------------------------------------------------------------------

 

pdAccess Method(s)

 

Method name:  GetUserCode.

Method description: Used to retreive the PollDaddy API Usercode.
 

Request XML Payload:

 

<?xml version="1.0" encoding="utf-8" ?>

<pd:pdAccess partnerGUID="3F2504E0-4F89-11D3-9A0C-0305E82C3301" partnerUserID="0" xmlns:pd="http://api.polldaddy.com/pdapi.xsd">

  <pd:demands>

    <pd:demand id="GetUserCode"/>

  </pd:demands>

</pd:pdAccess>

 

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:pdResponse>

 

-----------------------------------------------------------------------------------------------------------------------------------

 

pdRequest Methods

 

Method name:  GetPoll.

Method description: Used to retreive the Poll XML. Go here to see full explanation of Poll XML.
 

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="GetPoll">

      <pd:poll id="690432265" />

    </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="GetPoll">

      <pd:poll id="690432265">

        <pd:question><![CDATA[Do you like polls?]]></pd:question>

        <pd:multipleChoice>no</pd:multipleChoice>

        <pd:randomiseAnswers>yes</pd:randomiseAnswers>

        <pd:otherAnswer>yes</pd:otherAnswer>

        <pd:resultsType>percent</pd:resultsType>

        <pd:blockRepeatVotersType>cookie</pd:blockRepeatVotersType>

        <pd:comments>moderate</pd:comments>

        <pd:makePublic>yes</pd:makePublic>

        <pd:closePoll>yes</pd:closePoll>

        <pd:closePollNow>no</pd:closePollNow>

        <pd:closeDate>2008-11-30T00:42:00</pd:closeDate>

        <pd:styleID>15</pd:styleID>

        <pd:packID>11577</pd:packID>

        <pd:folderID>140644</pd:folderID>

        <pd:languageID>30</pd:languageID>

        <pd:mediaType>0</pd:mediaType>

        <pd:mediaCode/>

        <pd:answers>

          <pd:answer id="2783737" mediaType="0" mediaCode=""><![CDATA[Yes]]></pd:answer>

          <pd:answer id="2937738" mediaType="0" mediaCode=""><![CDATA[No]]></pd:answer>

        </pd:answers>

      <pd:poll>

    </pd:demand>

  </pd:demands>

</pd:pdResponse>

 

                              ---------------------------------------------------------------

 

Method Name:  GetPolls.

Method description: Used to retreive a list of a user's polls. The list node is optional, the start and end attributes are used to page the list, while the id attribute is used to list polls by their parent ID.
 

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:demand id="GetPolls">

    <pd:polls>

      <pd:poll id="690432345" owner="60369789" created="2008-11-04T16:47:47.293" responses="5" folderID="17948644"><![CDATA[Do you like surveys?]]></pd:poll>

    </pd:polls>

  </pd:demand>

</pd:pdResponse>

 

                              ---------------------------------------------------------------

 

Method name:  DeletePoll.

Method description: Used to delete a Poll.
 

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="DeletePoll">

      <pd:poll id="690432265" />

    </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:pdResponse>

 

                              ---------------------------------------------------------------

 

Method Name:  CreatePoll.

Method description: Used to create a Poll. Go here to see full explanation of Poll XML.
 

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="CreatePoll">

      <pd:poll>

        <pd:question><![CDATA[Do you like surveys?]]></pd:question>

        <pd:multipleChoice>no</pd:multipleChoice>

        <pd:randomiseAnswers>yes</pd:randomiseAnswers>

        <pd:otherAnswer>yes</pd:otherAnswer>

        <pd:resultsType>percent</pd:resultsType>

        <pd:blockRepeatVotersType>cookie</pd:blockRepeatVotersType>

        <pd:comments>moderate</pd:comments>

        <pd:makePublic>yes</pd:makePublic>

        <pd:closePoll>yes</pd:closePoll>

        <pd:closePollNow>no</pd:closePollNow>

        <pd:closeDate>2008-11-30T00:42:00</pd:closeDate>

        <pd:styleID>1</pd:styleID>

        <pd:packID>0</pd:packID>

        <pd:folderID>0</pd:folderID>

        <pd:languageID>0</pd:languageID>

        <pd:mediaType>0</pd:mediaType>

        <pd:mediaCode/>

        <pd:answers>

          <pd:answer mediaType="0" mediaCode=""><![CDATA[Yes]]></pd:answer>

          <pd:answer mediaType="0" mediaCode=""><![CDATA[No]]></pd:answer>

        </pd:answers>       

      </pd:poll>

    </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="CreatePoll">

      <pd:poll id="690432345">

        <pd:question><![CDATA[Do you like surveys?]]></pd:question>

        <pd:multipleChoice>no</pd:multipleChoice>

        <pd:randomiseAnswers>yes</pd:randomiseAnswers>

        <pd:otherAnswer>yes</pd:otherAnswer>

        <pd:resultsType>percent</pd:resultsType>

        <pd:blockRepeatVotersType>cookie</pd:blockRepeatVotersType>

        <pd:comments>moderate</pd:comments>

        <pd:makePublic>yes</pd:makePublic>

        <pd:closePoll>yes</pd:closePoll>

        <pd:closePollNow>no</pd:closePollNow>

        <pd:closeDate>2008-11-30T00:42:00</pd:closeDate>

        <pd:styleID>1</pd:styleID>

        <pd:packID>0</pd:packID>

        <pd:folderID>0</pd:folderID>

        <pd:languageID>0</pd:languageID>

        <pd:mediaType>0</pd:mediaType>

        <pd:mediaCode/>

        <pd:answers>

          <pd:answer id="2783789" mediaType="0" mediaCode=""><![CDATA[Yes]]></pd:answer>

          <pd:answer id="2937790" mediaType="0" mediaCode=""><![CDATA[No]]></pd:answer>

        </pd:answers>       

      </pd:poll>

    </pd:demand>

  </pd:demands>

</pd:pdResponse>

 

                              ---------------------------------------------------------------

 

Method Name:  UpdatePoll.

Method description: Used to update a Poll. Go here to see full explanation of Poll XML.
 

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="UpdatePoll">

      <pd:poll id="690432345">

        <pd:question><![CDATA[Do you like surveys?]]></pd:question>

        <pd:multipleChoice>no</pd:multipleChoice>

        <pd:randomiseAnswers>no</pd:randomiseAnswers>

        <pd:otherAnswer>no</pd:otherAnswer>

        <pd:resultsType>percent</pd:resultsType>

        <pd:blockRepeatVotersType>cookie</pd:blockRepeatVotersType>

        <pd:comments>moderate</pd:comments>

        <pd:makePublic>no</pd:makePublic>

        <pd:closePoll>yes</pd:closePoll>

        <pd:closePollNow>no</pd:closePollNow>

        <pd:closeDate>2008-12-30T00:42:00</pd:closeDate>

        <pd:styleID>5</pd:styleID>

        <pd:packID>0</pd:packID>

        <pd:folderID>0</pd:folderID>

        <pd:languageID>0</pd:languageID>

        <pd:mediaType>0</pd:mediaType>

        <pd:mediaCode/>

        <pd:answers>

          <pd:answer id="2783789" mediaType="0" mediaCode=""><![CDATA[I sure do!]]></pd:answer>

          <pd:answer id="2937790" mediaType="0" mediaCode=""><![CDATA[What are surveys]]></pd:answer>

          <pd:answer mediaType="0" mediaCode=""><![CDATA[Sometimes]]></pd:answer>

        </pd:answers>       

      </pd:poll>

    </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:demand id="UpdatePoll">

      <pd:poll id="690432345">

        <pd:question><![CDATA[Do you like surveys?]]></pd:question>

        <pd:multipleChoice>no</pd:multipleChoice>

        <pd:randomiseAnswers>no</pd:randomiseAnswers>

        <pd:otherAnswer>no</pd:otherAnswer>

        <pd:resultsType>percent</pd:resultsType>

        <pd:blockRepeatVotersType>cookie</pd:blockRepeatVotersType>

        <pd:comments>moderate</pd:comments>

        <pd:makePublic>no</pd:makePublic>

        <pd:closePoll>yes</pd:closePoll>

        <pd:closePollNow>no</pd:closePollNow>

        <pd:closeDate>2008-12-30T00:42:00</pd:closeDate>

        <pd:styleID>5</pd:styleID>

        <pd:packID>0</pd:packID>

        <pd:folderID>0</pd:folderID>

        <pd:languageID>0</pd:languageID>

        <pd:mediaType>0</pd:mediaType>

        <pd:mediaCode/>

        <pd:answers>

          <pd:answer id="2783789" mediaType="0" mediaCode=""><![CDATA[I sure do!]]></pd:answer>

          <pd:answer id="2937790" mediaType="0" mediaCode=""><![CDATA[What are surveys]]></pd:answer>

          <pd:answer id="2937899" mediaType="0" mediaCode=""><![CDATA[Sometimes]]></pd:answer>

        </pd:answers>       

      </pd:poll>

    </pd:demand>

</pd:pdResponse>

 

                              ---------------------------------------------------------------

 

 

Method Name:  GetPollResults.

Method description: Used to retreive a Poll's results.
 

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="GetPollResults">

      <pd:result id="690432345"></pd:result>

    </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:demand id="GetPollResults">

    <pd:result id="690432345">

      <pd:answers>

        <pd:answer total="2" percent="33.33"><![CDATA[I sure do!]]></pd:answer>

        <pd:answer total="1" percent="16.67"><![CDATA[What are surveys]]></pd:answer>

        <pd:answer total="1" percent="16.67"><![CDATA[Sometimes]]></pd:answer>

      </pd:answers>

      <pd:otherAnswers>

        <pd:otherAnswer><![CDATA[I think they are great]]></pd:otherAnswer>

      </pd:otherAnswers>

    </pd:result>

  </pd:demand>

</pd:pdResponse>

 

                              ---------------------------------------------------------------

 

Method Name:  ResetPollResults.

Method description: Used to reset a polls results.
 

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="ResetPollResults">

      <pd:result id="690432345"></pd:result>

    </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:demand id="ResetPollResults" />

</pd:pdResponse>

 

                              ---------------------------------------------------------------

 

Method Name:  GetPollComments.

Method description: Used to retrieve a poll's list of comments.
 

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="GetPollComments">

      <pd:comments id="690432345">

    </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="getpollcomments">

      <pd:comments id="690432265">

        <pd:comment id="5076044" type="1">

          <pd:name><![CDATA[Charle Swan]]></pd:name>

          <pd:email><![CDATA[cs@gmail.com]]></pd:email>

          <pd:text><![CDATA[What a great poll]]></pd:text>

          <pd:url />

          <pd:date>2008-06-05T07:07:37.770</pd:date>

        </pd:comment>

        <pd:comment id="5024045" type="2">

          <pd:name><![CDATA[John Gallagher]]></pd:name>

          <pd:email><![CDATA[jgl@gmail.com]]></pd:email>

          <pd:text><![CDATA[I think your poll rocks!]]></pd:text>

          <pd:url><![CDATA[www.jg.com]]></pd:url>

          <pd:date>2008-06-04T10:05:41.347</pd:date>

        </pd:comment>

      </pd:comments>

    </pd:demand>

  </pd:demands>

</pd:pdResponse>

 

                              ---------------------------------------------------------------

 

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 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="ModerateComment">

      <pd:comments id="690432265">

        <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 partnerGUID="3F2504E0-4F89-11D3-9A0C-0305E82C3301" xmlns:pd="http://api.polldaddy.com/pdapi.xsd">

  <pd:userCode>123456-FErKS5yu15scpSGmvip4JA==</pd:userCode>

</pd:pdResponse>

 

                              ---------------------------------------------------------------

 

Method Name:  GetAccount.

Method description: Used to retrieve account information.
 

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="GetAccount">

    </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:demand id="GetAccount">

      <pd:account id="756973">

        <pd:userName>tomthumb</pd:userName>

        <pd:email>tomthumb@gmail.com</pd:email>

        <pd:password>secretpassword</pd:password>

        <pd:firstName>Tom</pd:firstName>

        <pd:lastName>Thumb</pd:lastName>

        <pd:countryCode>US</pd:countryCode>

        <pd:gender>male</pd:gender>

        <pd:yearOfBirth>1975</pd:yearOfBirth>

        <pd:websiteURL>http://www.google.com</pd:websiteURL>

        <pd:avatarURL></pd:avatarURL>

        <pd:bio>I am a small man with a big heart...</pd:bio>

      </pd:account>

    </pd:demand>

</pd:pdResponse>

 

                              ---------------------------------------------------------------

 

Method Name:  UpdateAccount.

Method description: Used to update a PollDaddy account information.
 

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="UpdateAccount">

      <pd:account id="756973">

        <pd:userName>tomthumb</pd:userName>

        <pd:email>tomthumb@gmail.com</pd:email>

        <pd:password>secretpassword</pd:password>

        <pd:firstName>Tom</pd:firstName>

        <pd:lastName>Thumb</pd:lastName>

        <pd:countryCode>IE</pd:countryCode>

        <pd:gender>female</pd:gender>

        <pd:yearOfBirth>1985</pd:yearOfBirth>

        <pd:websiteURL>http://www.lidl.com</pd:websiteURL>

        <pd:avatarURL></pd:avatarURL>

        <pd:bio>I am a small woman witha bigger heart...</pd:bio>

      </pd:account>

    </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="UpdateAccount">

      <pd:account id="75697">

        <pd:userName>tomthumb</pd:userName>

        <pd:email>tomthumb@gmail.com</pd:email>

        <pd:password>secretpassword</pd:password>

        <pd:firstName>Tom</pd:firstName>

        <pd:lastName>Thumb</pd:lastName>

        <pd:countryCode>IE</pd:countryCode>

        <pd:gender>female</pd:gender>

        <pd:yearOfBirth>1985</pd:yearOfBirth>

        <pd:websiteURL>http://www.lidl.com</pd:websiteURL>

        <pd:avatarURL></pd:avatarURL>

        <pd:bio>I am a small woman with big ideas...</pd:bio>

      </pd:account>

    </pd:demand>

  </pd:demands>

</pd:pdResponse>

 

                              ---------------------------------------------------------------

 

Method Name:  GetPack.

Method description: Used to retreive a user language pack.
 

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="GetPack">

      <pd:pack id="324234" />

    </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="GetPack">

       <pd:pack date="2008-02-12T10:20:00" id="324234">

          <pack type="user">

            <title>Test Pack</title>

            <phrase phraseID="1">View Resultz</phrase>

            <phrase phraseID="2">Thank you for voting!</phrase>

            <phrase phraseID="3">Return 2 Poll</phrase>

            <phrase phraseID="4">Other:</phrase>

            <phrase phraseID="5">Thank you, we have already counted your vote.</phrase>

            <phrase phraseID="6">Total Votes:</phrase>

            <phrase phraseID="7">votes</phrase>

            <phrase phraseID="8">Poll Closed</phrase>

            <phrase phraseID="9">Vote</phrase>

            <phrase phraseID="10">Please choose an answer first!</phrase>

            <phrase phraseID="11">Commentz</phrase>

          </pack>

        </pd:pack>

     </pd:demand>

  </pd:demands>

</pd:pdResponse>

 

                              ---------------------------------------------------------------

 

Method Name:  GetPacks.

Method description: Used to retrieve a list of a users language packs.
 

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="GetPacks">

    </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="GetPacks">

      <pd:packs>

        <pd:pack date="2008-02-12T10:20:00" id="324234">

          <pack type="user">

            <title>Test Pack</title>

            <phrase phraseID="1">View Resultz</phrase>

            <phrase phraseID="2">Thank you for voting!</phrase>

            <phrase phraseID="3">Return 2 Poll</phrase>

            <phrase phraseID="4">Other:</phrase>

            <phrase phraseID="5">Thank you, we have already counted your vote.</phrase>

            <phrase phraseID="6">Total Votes:</phrase>

            <phrase phraseID="7">votes</phrase>

            <phrase phraseID="8">Poll Closed</phrase>

            <phrase phraseID="9">Vote</phrase>

            <phrase phraseID="10">Please choose an answer first!</phrase>

            <phrase phraseID="11">Commentz</phrase>

          </pack>

        </pd:pack>

        <pd:pack date="2008-02-14T13:23:00" id="324245">

          <pack type="user">

            <title>Test Pack 2</title>

            <phrase phraseID="1">View Results</phrase>

            <phrase phraseID="2">Thank you for voting!</phrase>

            <phrase phraseID="3">Return to the Poll</phrase>

            <phrase phraseID="4">Other:</phrase>

            <phrase phraseID="5">Thank you, we have already counted your vote.</phrase>

            <phrase phraseID="6">Total Votes:</phrase>

            <phrase phraseID="7">votes</phrase>

            <phrase phraseID="8">Poll is closed</phrase>

            <phrase phraseID="9">Vote</phrase>

            <phrase phraseID="10">Choose an answer first!</phrase>

            <phrase phraseID="11">Comments</phrase>

          </pack>

        </pd:pack>

      </pd:packs>

    </pd:demand>

  </pd:demands>

</pd:pdResponse>

 

                              ---------------------------------------------------------------

 

Method Name:  DeletePack.

Method description: Used to delete a Pack.
 

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="DeletePack">

      <pd:pack id="324234" />

    </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:pdResponse>

 

                              ---------------------------------------------------------------

 

Method Name:  CreatePack.

Method description: Used to create a Pack.
 

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="CreatePack">

      <pd:pack>

        <pack type="user">

          <title>Test Pack 3</title>

          <phrase phraseID="1">View Results</phrase>

          <phrase phraseID="2">Thank you for voting!</phrase>

          <phrase phraseID="3">Return to the Poll</phrase>

          <phrase phraseID="4">Other:</phrase>

          <phrase phraseID="5">Thank you, we have already counted your vote.</phrase>

          <phrase phraseID="6">Total Votes:</phrase>

          <phrase phraseID="7">votes</phrase>

          <phrase phraseID="8">Poll is closed</phrase>

          <phrase phraseID="9">Vote</phrase>

          <phrase phraseID="10">Choose an answer first!</phrase>

          <phrase phraseID="11">Comments</phrase>

        </pack>

      </pd:pack>

    </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="CreatePack">

      <pd:pack id="32423" date="2008-04-12T10:03:00">

        <pack type="user">

          <title>Test Pack 3</title>

          <phrase phraseID="1">View Results</phrase>

          <phrase phraseID="2">Thank you for voting!</phrase>

          <phrase phraseID="3">Return to the Poll</phrase>

          <phrase phraseID="4">Other:</phrase>

          <phrase phraseID="5">Thank you, we have already counted your vote.</phrase>

          <phrase phraseID="6">Total Votes:</phrase>

          <phrase phraseID="7">votes</phrase>

          <phrase phraseID="8">Poll is closed</phrase>

          <phrase phraseID="9">Vote</phrase>

          <phrase phraseID="10">Choose an answer first!</phrase>

          <phrase phraseID="11">Comments</phrase>

        </pack>

      </pd:pack>

    </pd:demand>

  </pd:demands>

</pd:pdResponse>

 

                              ---------------------------------------------------------------

 

Method Name:  UpdatePack.

Method description: Used to update a Pack.
 

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="UpdatePack">

      <pd:pack id="32423">

        <pack type="user">

          <title>Test Pack 3</title>

          <phrase phraseID="1">View Votes</phrase>

          <phrase phraseID="2">Thanks for voting!</phrase>

          <phrase phraseID="3">Return to vote</phrase>

          <phrase phraseID="4">Other:</phrase>

          <phrase phraseID="5">Thanks, but you have already voted.</phrase>

          <phrase phraseID="6">Total:</phrase>

          <phrase phraseID="7">votes</phrase>

          <phrase phraseID="8">Poll is currently closed</phrase>

          <phrase phraseID="9">Vote</phrase>

          <phrase phraseID="10">Choose one of the answers first!</phrase>

          <phrase phraseID="11">Commentz</phrase>

        </pack>

      </pd:pack>

    </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="UpdatePack">

      <pd:pack id="32423" date="2008-04-12T12:11:02">

        <pack type="user">

          <title>Test Pack 3</title>

          <phrase phraseID="1">View Votes</phrase>

          <phrase phraseID="2">Thanks for voting!</phrase>

          <phrase phraseID="3">Return to vote</phrase>

          <phrase phraseID="4">Other:</phrase>

          <phrase phraseID="5">Thanks, but you have already voted.</phrase>

          <phrase phraseID="6">Total:</phrase>

          <phrase phraseID="7">votes</phrase>

          <phrase phraseID="8">Poll is currently closed</phrase>

          <phrase phraseID="9">Vote</phrase>

          <phrase phraseID="10">Choose one of the answers first!</phrase>

          <phrase phraseID="11">Commentz</phrase>

        </pack>

      </pd:pack>

    </pd:demand>

  </pd:demands>

</pd:pdResponse>

 

                              ---------------------------------------------------------------

Method Name:  GetStyle.

Method description: Used to retreive a custom poll style.
 

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="GetStyle">

      <pd:style id="88789" />

    </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="GetStyle">

      <pd:style id="88789">

        <pd:title>test style 1</pd:title>

        <data>

          <pds-box>

            <background background-color="#FFFFFF" background-image="" background-repeat="no-repeat" background-position="top left" />

            <border border-width="2px" border-style="solid" border-color="#C0C0C0" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="0px" margin-left="0px" />

            <padding padding-top="15px" padding-right="15px" padding-bottom="15px" padding-left="15px" />

            <scale width="270" />

          </pds-box>

          <pds-question-top>

            <font font-style="normal" line-height="14px" font-weight="bold" font-family="Verdana" font-size="12px" text-decoration="none" color="#333333" />

            <border border-width="0px" border-style="none" border-color="#000000" />

            <background background-color="Transparent" background-image="" background-repeat="no-repeat" background-position="left top" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="10px" margin-left="0px" />

            <padding padding-top="0px" padding-right="0px" padding-bottom="0px" padding-left="0px" />

          </pds-question-top>

          <pds-answer>

            <font font-style="normal" line-height="24px" font-weight="normal" font-family="Verdana" font-size="11px" text-decoration="none" color="#555555" />

            <background background-color="Transparent" background-image="" background-repeat="repeat-x" background-position="top left" />

            <border border-width="0px" border-style="none" border-color="#FFFFFF" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="0px" margin-left="0px" />

            <padding padding-top="0px" padding-right="0px" padding-bottom="0px" padding-left="0px" />

          </pds-answer>

          <pds-textfield>

            <font font-style="normal" font-family="Verdana" line-height="12px" font-weight="normal" font-size="12px" text-decoration="none" color="#333333" />

            <background background-color="#FFFFFF" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="1px" border-style="solid" border-color="#999999" />

            <margin margin-top="1px" margin-right="1px" margin-bottom="15px" margin-left="1px" />

            <padding padding-top="1px" padding-right="5px" padding-bottom="1px" padding-left="1px" />

            <scale width="150" />

          </pds-textfield>

          <pds-answer-feedback>

            <background background-color="#F0F0F0" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="0px" border-style="solid" border-color="#999999" />

            <padding padding-top="1px" padding-right="1px" padding-bottom="1px" padding-left="1px" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="0px" margin-left="0px" />

          </pds-answer-feedback>

          <pds-answer-feedback-bar>

            <background background-color="#909090" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="0px" border-style="solid" border-color="#999999" />

            <padding padding-top="0px" padding-right="0px" padding-bottom="0px" padding-left="0px" />

            <margin margin-top="3px" margin-right="3px" margin-bottom="3px" margin-left="3px" />

          </pds-answer-feedback-bar>

          <pds-totalvotes-inner>

            <font font-style="normal" font-family="Verdana" line-height="20px" font-weight="bold" font-size="12px" text-decoration="none" color="#333333" />

            <background background-color="#F0F0F0" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="0px" border-style="solid" border-color="#F0F0F0" />

            <padding padding-top="2px" padding-right="2px" padding-bottom="2px" padding-left="2px" />

          </pds-totalvotes-inner>

        </data>

      </pd:style>

     </pd:demand>

  </pd:demands>

</pd:pdResponse>

 

                              ---------------------------------------------------------------

 

Method Name:  GetStyles.

Method description: Used to retrieve a list of a users custom poll styles.
 

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="GetStyles">

    </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="GetStyles">

      <pd:styles>

        <pd:style id="534597" type="0">

          <pd:title>Franchise1</pd:title>

          <pd:date>1/12/2009 8:32:34 PM</pd:date>

        </pd:style>

        <pd:style id="88789" type="0">

          <pd:title>test style 1</pd:title>

          <pd:date>1/9/2009 8:02:26 PM</pd:date>

        </pd:style>

        <pd:style id="4345348" type="0">

          <pd:title>Business</pd:title>

          <pd:date>6/11/2008 12:39:10 PM</pd:date>

        </pd:style>

        <pd:style id="41654647" type="0">

          <pd:title>aBusiness_poll</pd:title>

          <pd:date>11/6/2008 7:34:48 PM</pd:date>

        </pd:style>

      </pd:styles>

    </pd:demand>

  </pd:demands>

</pd:pdResponse>

 

                              ---------------------------------------------------------------

 

Method Name:  DeleteStyle.

Method description: Used to delete a users custom poll style.
 

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="DeleteStyle">

      <pd:pack id="534597" />

    </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:pdResponse>

 

                              ---------------------------------------------------------------

 

Method Name:  CreateStyle.

Method description: Used to create a custom poll style.
 

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="CreateStyle">

      <pd:style>

        <pd:title>Another test style</pd:title>

        <data>

          <pds-box>

            <background background-color="#FFFFFF" background-image="" background-repeat="no-repeat" background-position="top left" />

            <border border-width="2px" border-style="solid" border-color="#C0C0C0" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="0px" margin-left="0px" />

            <padding padding-top="15px" padding-right="15px" padding-bottom="15px" padding-left="15px" />

            <scale width="270" />

          </pds-box>

          <pds-question-top>

            <font font-style="normal" line-height="14px" font-weight="bold" font-family="Verdana" font-size="12px" text-decoration="none" color="#333333" />

            <border border-width="0px" border-style="none" border-color="#000000" />

            <background background-color="Transparent" background-image="" background-repeat="no-repeat" background-position="left top" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="10px" margin-left="0px" />

            <padding padding-top="0px" padding-right="0px" padding-bottom="0px" padding-left="0px" />

          </pds-question-top>

          <pds-answer>

            <font font-style="normal" line-height="24px" font-weight="normal" font-family="Verdana" font-size="11px" text-decoration="none" color="#555555" />

            <background background-color="Transparent" background-image="" background-repeat="repeat-x" background-position="top left" />

            <border border-width="0px" border-style="none" border-color="#FFFFFF" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="0px" margin-left="0px" />

            <padding padding-top="0px" padding-right="0px" padding-bottom="0px" padding-left="0px" />

          </pds-answer>

          <pds-textfield>

            <font font-style="normal" font-family="Verdana" line-height="12px" font-weight="normal" font-size="12px" text-decoration="none" color="#333333" />

            <background background-color="#FFFFFF" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="1px" border-style="solid" border-color="#999999" />

            <margin margin-top="1px" margin-right="1px" margin-bottom="15px" margin-left="1px" />

            <padding padding-top="1px" padding-right="5px" padding-bottom="1px" padding-left="1px" />

            <scale width="150" />

          </pds-textfield>

          <pds-answer-feedback>

            <background background-color="#F0F0F0" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="0px" border-style="solid" border-color="#999999" />

            <padding padding-top="1px" padding-right="1px" padding-bottom="1px" padding-left="1px" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="0px" margin-left="0px" />

          </pds-answer-feedback>

          <pds-answer-feedback-bar>

            <background background-color="#909090" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="0px" border-style="solid" border-color="#999999" />

            <padding padding-top="0px" padding-right="0px" padding-bottom="0px" padding-left="0px" />

            <margin margin-top="3px" margin-right="3px" margin-bottom="3px" margin-left="3px" />

          </pds-answer-feedback-bar>

          <pds-totalvotes-inner>

            <font font-style="normal" font-family="Verdana" line-height="20px" font-weight="bold" font-size="12px" text-decoration="none" color="#333333" />

            <background background-color="#F0F0F0" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="0px" border-style="solid" border-color="#F0F0F0" />

            <padding padding-top="2px" padding-right="2px" padding-bottom="2px" padding-left="2px" />

          </pds-totalvotes-inner>

        </data>

      </pd:style>

    </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="CreateStyle">

      <pd:style id="88790">

        <pd:title>Another test style</pd:title>

        <data>

          <pds-box>

            <background background-color="#FFFFFF" background-image="" background-repeat="no-repeat" background-position="top left" />

            <border border-width="2px" border-style="solid" border-color="#C0C0C0" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="0px" margin-left="0px" />

            <padding padding-top="15px" padding-right="15px" padding-bottom="15px" padding-left="15px" />

            <scale width="270" />

          </pds-box>

          <pds-question-top>

            <font font-style="normal" line-height="14px" font-weight="bold" font-family="Verdana" font-size="12px" text-decoration="none" color="#333333" />

            <border border-width="0px" border-style="none" border-color="#000000" />

            <background background-color="Transparent" background-image="" background-repeat="no-repeat" background-position="left top" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="10px" margin-left="0px" />

            <padding padding-top="0px" padding-right="0px" padding-bottom="0px" padding-left="0px" />

          </pds-question-top>

          <pds-answer>

            <font font-style="normal" line-height="24px" font-weight="normal" font-family="Verdana" font-size="11px" text-decoration="none" color="#555555" />

            <background background-color="Transparent" background-image="" background-repeat="repeat-x" background-position="top left" />

            <border border-width="0px" border-style="none" border-color="#FFFFFF" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="0px" margin-left="0px" />

            <padding padding-top="0px" padding-right="0px" padding-bottom="0px" padding-left="0px" />

          </pds-answer>

          <pds-textfield>

            <font font-style="normal" font-family="Verdana" line-height="12px" font-weight="normal" font-size="12px" text-decoration="none" color="#333333" />

            <background background-color="#FFFFFF" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="1px" border-style="solid" border-color="#999999" />

            <margin margin-top="1px" margin-right="1px" margin-bottom="15px" margin-left="1px" />

            <padding padding-top="1px" padding-right="5px" padding-bottom="1px" padding-left="1px" />

            <scale width="150" />

          </pds-textfield>

          <pds-answer-feedback>

            <background background-color="#F0F0F0" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="0px" border-style="solid" border-color="#999999" />

            <padding padding-top="1px" padding-right="1px" padding-bottom="1px" padding-left="1px" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="0px" margin-left="0px" />

          </pds-answer-feedback>

          <pds-answer-feedback-bar>

            <background background-color="#909090" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="0px" border-style="solid" border-color="#999999" />

            <padding padding-top="0px" padding-right="0px" padding-bottom="0px" padding-left="0px" />

            <margin margin-top="3px" margin-right="3px" margin-bottom="3px" margin-left="3px" />

          </pds-answer-feedback-bar>

          <pds-totalvotes-inner>

            <font font-style="normal" font-family="Verdana" line-height="20px" font-weight="bold" font-size="12px" text-decoration="none" color="#333333" />

            <background background-color="#F0F0F0" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="0px" border-style="solid" border-color="#F0F0F0" />

            <padding padding-top="2px" padding-right="2px" padding-bottom="2px" padding-left="2px" />

          </pds-totalvotes-inner>

        </data>

      </pd:style>

    </pd:demand>

  </pd:demands>

</pd:pdResponse>

 

                              ---------------------------------------------------------------

 

Method Name:  UpdateStyle.

Method description: Used to update a users custome poll style.
 

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="UpdatePack">

      <pd:style id="88790">

        <pd:title>Poll Style</pd:title>

        <data>

          <pds-box>

            <background background-color="#FFFF00" background-image="" background-repeat="no-repeat" background-position="top left" />

            <border border-width="2px" border-style="solid" border-color="#C0C0C0" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="0px" margin-left="0px" />

            <padding padding-top="15px" padding-right="15px" padding-bottom="15px" padding-left="15px" />

            <scale width="270" />

          </pds-box>

          <pds-question-top>

            <font font-style="normal" line-height="14px" font-weight="bold" font-family="Verdana" font-size="12px" text-decoration="none" color="#334433" />

            <border border-width="0px" border-style="none" border-color="#000000" />

            <background background-color="Transparent" background-image="" background-repeat="no-repeat" background-position="left top" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="10px" margin-left="0px" />

            <padding padding-top="0px" padding-right="0px" padding-bottom="0px" padding-left="0px" />

          </pds-question-top>

          <pds-answer>

            <font font-style="normal" line-height="24px" font-weight="normal" font-family="Verdana" font-size="11px" text-decoration="none" color="#522255" />

            <background background-color="Transparent" background-image="" background-repeat="repeat-x" background-position="top left" />

            <border border-width="0px" border-style="none" border-color="#FFFFFF" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="0px" margin-left="0px" />

            <padding padding-top="0px" padding-right="0px" padding-bottom="0px" padding-left="0px" />

          </pds-answer>

          <pds-textfield>

            <font font-style="normal" font-family="Verdana" line-height="12px" font-weight="normal" font-size="12px" text-decoration="none" color="#344333" />

            <background background-color="#FFFFFF" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="1px" border-style="solid" border-color="#999999" />

            <margin margin-top="1px" margin-right="1px" margin-bottom="15px" margin-left="1px" />

            <padding padding-top="1px" padding-right="5px" padding-bottom="1px" padding-left="1px" />

            <scale width="150" />

          </pds-textfield>

          <pds-answer-feedback>

            <background background-color="#F0F0F0" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="0px" border-style="solid" border-color="#999999" />

            <padding padding-top="1px" padding-right="1px" padding-bottom="1px" padding-left="1px" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="0px" margin-left="0px" />

          </pds-answer-feedback>

          <pds-answer-feedback-bar>

            <background background-color="#909090" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="0px" border-style="solid" border-color="#999999" />

            <padding padding-top="0px" padding-right="0px" padding-bottom="0px" padding-left="0px" />

            <margin margin-top="3px" margin-right="3px" margin-bottom="3px" margin-left="3px" />

          </pds-answer-feedback-bar>

          <pds-totalvotes-inner>

            <font font-style="normal" font-family="Verdana" line-height="20px" font-weight="bold" font-size="12px" text-decoration="none" color="#333333" />

            <background background-color="#F0F0F0" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="0px" border-style="solid" border-color="#F0F0F0" />

            <padding padding-top="2px" padding-right="2px" padding-bottom="2px" padding-left="2px" />

          </pds-totalvotes-inner>

        </data>

      </pd:style>

    </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="UpdatePack">

      <pd:style id="88790">

        <pd:title>Poll Style</pd:title>

        <data>

          <pds-box>

            <background background-color="#FFFF00" background-image="" background-repeat="no-repeat" background-position="top left" />

            <border border-width="2px" border-style="solid" border-color="#C0C0C0" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="0px" margin-left="0px" />

            <padding padding-top="15px" padding-right="15px" padding-bottom="15px" padding-left="15px" />

            <scale width="270" />

          </pds-box>

          <pds-question-top>

            <font font-style="normal" line-height="14px" font-weight="bold" font-family="Verdana" font-size="12px" text-decoration="none" color="#334433" />

            <border border-width="0px" border-style="none" border-color="#000000" />

            <background background-color="Transparent" background-image="" background-repeat="no-repeat" background-position="left top" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="10px" margin-left="0px" />

            <padding padding-top="0px" padding-right="0px" padding-bottom="0px" padding-left="0px" />

          </pds-question-top>

          <pds-answer>

            <font font-style="normal" line-height="24px" font-weight="normal" font-family="Verdana" font-size="11px" text-decoration="none" color="#522255" />

            <background background-color="Transparent" background-image="" background-repeat="repeat-x" background-position="top left" />

            <border border-width="0px" border-style="none" border-color="#FFFFFF" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="0px" margin-left="0px" />

            <padding padding-top="0px" padding-right="0px" padding-bottom="0px" padding-left="0px" />

          </pds-answer>

          <pds-textfield>

            <font font-style="normal" font-family="Verdana" line-height="12px" font-weight="normal" font-size="12px" text-decoration="none" color="#344333" />

            <background background-color="#FFFFFF" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="1px" border-style="solid" border-color="#999999" />

            <margin margin-top="1px" margin-right="1px" margin-bottom="15px" margin-left="1px" />

            <padding padding-top="1px" padding-right="5px" padding-bottom="1px" padding-left="1px" />

            <scale width="150" />

          </pds-textfield>

          <pds-answer-feedback>

            <background background-color="#F0F0F0" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="0px" border-style="solid" border-color="#999999" />

            <padding padding-top="1px" padding-right="1px" padding-bottom="1px" padding-left="1px" />

            <margin margin-top="0px" margin-right="0px" margin-bottom="0px" margin-left="0px" />

          </pds-answer-feedback>

          <pds-answer-feedback-bar>

            <background background-color="#909090" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="0px" border-style="solid" border-color="#999999" />

            <padding padding-top="0px" padding-right="0px" padding-bottom="0px" padding-left="0px" />

            <margin margin-top="3px" margin-right="3px" margin-bottom="3px" margin-left="3px" />

          </pds-answer-feedback-bar>

          <pds-totalvotes-inner>

            <font font-style="normal" font-family="Verdana" line-height="20px" font-weight="bold" font-size="12px" text-decoration="none" color="#333333" />

            <background background-color="#F0F0F0" background-image="" background-repeat="repeat-x" background-position="left top" />

            <border border-width="0px" border-style="solid" border-color="#F0F0F0" />

            <padding padding-top="2px" padding-right="2px" padding-bottom="2px" padding-left="2px" />

          </pds-totalvotes-inner>

        </data>

      </pd:style>

    </pd:demand>

  </pd:demands>

</pd:pdResponse>

 

                              ---------------------------------------------------------------

 

 

----------------------------------------------------------------------------------------------------------------------------------- 

 

Authors

This document is maintained by Eoin Gallagher, PollDaddy's API Lead.  You can reach him via email at eoin [@] polldaddy.com.

Comments (0)

You don't have permission to comment on this page.