Warning: API Version 1 is deprecated. Please use API Version 2.
Api Documentation

Polls

Polls on which users can vote
Retrieves a collection of polls.
Retrieves a single poll.
Creates a new poll. Only available to API keys without user authentication.
Updates an existing poll. Only available to API keys without user authentication.
Deletes a single poll. Only available to API keys without user authentication.
Json
XML
POST https://api.bundeling.com/V1/polls

Parameters

Body

NameDescriptionTypeNillableRequired
author_idThe user id of the authorintfalsetrue
titleThe title of the pollstringfalsetrue
textThe body of the poll.stringfalsetrue
startdateThe date on which this poll will start.datetimefalsetrue
enddateThe date on which this poll will end.datetimefalsetrue

Example request

Headers

Content-Type:application/json
Api-Key:RAegSX8yZfEbqSPM

Body

{
    "author_id": 14,
    "title": "Your vote counts",
    "text": "Make your choice and vote for one of these options...",
    "startdate": "2017-01-15T18:00:00+0000",
    "enddate": "2017-01-16T10:00:00+0000"
}

Example response

{
    "id": 14,
    "author_id": 15,
    "title": "Your vote counts",
    "text": "Make your choice and vote for one of these options...",
    "startdate": "2017-01-15T18:00:00+0000",
    "enddate": "2017-01-16T10:00:00+0000"
}