API Update: Get Poll Votes

Posted by

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.

%d bloggers like this: