polls.getList

Description

Gets a list of polls.

Authentication

This method requires authentication without user credentials.

API Version

Version 1&2

Required parameters

  • None

Optional parameters

  • poll_id :
    The id number of a particular poll
  • poll_title :
    The title of the poll
  • poll_type :
    The poll type
  • user_id :
    The id of the user that created the poll
  • timestamp :
    Time the poll was created

Example response

<?xml version="1.0"?>
<response status="ok" time="Fri, 19 Dec 2008 15:25:22 +0000">
    <polls count="2" total="2">
        <poll>
            <poll_id>4</poll_id>
            <poll_title/>
            <poll_type/>
            <user_id>0</user_id>
            <timestamp>2007-05-30 10:26:11</timestamp>
            <choices/>
        </poll>
        <poll>
            <poll_id>11</poll_id>
            <poll_title><p>Do you like the page colors?</p></poll_title>
            <poll_type/>
            <user_id>0</user_id>
            <timestamp>2007-09-28 02:22:56</timestamp>
            <choices>
                <choice>
                    <vote_id>1</vote_id>
                    <text>Yes, keep it</text>
                    <vote_count>8</vote_count>
                    <link/>
                </choice>
                <choice>
                    <vote_id>2</vote_id>
                    <text>No, too much orange</text>
                    <vote_count>3</vote_count>
                    <link/>
                </choice>
                <choice>
                    <vote_id>3</vote_id>
                    <text>No, too much grey</text>
                    <vote_count>2</vote_count>
                    <link/>
                </choice>
                <choice>
                    <vote_id>4</vote_id>
                    <text>No, needs more color</text>
                    <vote_count>2</vote_count>
                    <link/>
                </choice>
            </choices>
        </poll>
    </polls>
</response>

polls.saveAnswer

Description

Saves a user’s response to a poll choice.

Authentication

This method requires authentication with ‘write’ permission.

API Version

Version 1&2

Required parameters

  • poll_id :
    The id of the poll which is being responded to
  • vote_id :
    The id of the choice which was selected as the response

Optional parameters

  • None

Example response

<?xml version="1.0"?>
<response status="ok" time="Fri, 19 Dec 2008 16:22:25 +0000">
    <polls count="1">
        <poll>
            <poll_id>11</poll_id>
        </poll>
    </polls>
</response>