Forum Discussion

mfeltscher's avatar
11 years ago

Fetch inactive polls from REST API

Hi there   Is it somehow possible to get a list of all inactive polls using the REST API? There is a call to get the active polls (as documented here) so in my opinions it should be possible for in...
  • VarunGrazitti's avatar
    11 years ago

    mfeltscher, you can get the list of all the polls in your community using the call, /restapi/vc/polls and then from the returned xml, you can parse the following node to get the active status of the poll. If it is false, the poll is inactive. 

     

    <active type="boolean">false</active>

     

    I hope this helps.