API Update: Get Poll Votes

Donncha

We have updated the Polldaddy API and added a new method to fetch individual poll votes.

The new method is GetPollVotes and can be configured to return any number of votes from any of your polls. It will also return any tags that have been attached to votes. This differs from GetPollResults which returns the final poll results as a summary of the votes.

The example code has been updated to include support for the new method, but to make the most of it you’ll also need to use GetPoll first. That will give you a list of the poll answers, including an “id” for each. That field is the “answer_id” returned by GetPollVotes.

A Pro or Corporate account is required to use the GETPollVotes API method.

We recommend caching the output from all the API methods locally for performance reasons.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.