The Polls API provides a functionality for obtaining and managing polls.
polls/
RESOURCE_URI
— URI is obtained from token exchange point.
Prefix | Endpoint | Description |
---|---|---|
RESOURCE_URI | polls/ | Getting a list of polls |
RESOURCE_URI | polls/add/ | Adding a poll |
RESOURCE_URI | polls/ID | Retrieving poll details |
RESOURCE_URI | polls/ID/edit/ | Editing a poll |
RESOURCE_URI | polls/ID/delete/ | Deleting a poll |
RESOURCE_URI | polls/ID/vote/ | Voting |
polls/
polls/ID
polls/add/
polls/ID/edit/
polls/ID/delete/
polls/ID/vote/
Name | Description |
---|---|
limit (o) |
Number of items expected in response. |
cursor (o) |
The value of the |
fields (o) |
@PollsItemFields |
Name | Description |
---|---|
items[] |
|
limit |
Number of returned items (items per page). |
next_cursor |
URL for the next portion of items (next page). |
prev_cursor |
URL for the previous portion of items (previous page). |
total_count |
Total number of items. |
Name | Description |
---|---|
fields (o) |
@PollsItemFields |
Name | Description |
---|---|
uid |
ID of a user who added the attachment. |
poll_id |
Poll ID. |
poll_uid |
ID of a user who created the poll. |
name |
Name of the poll. |
created_time ? |
Time when the poll was created. |
finish_time ? |
Time when the poll was finished. |
has_multi_choice ? |
True, if the poll provides an opportunity for multiple answers. |
has_own_choice ? |
True, if the poll provides an opportunity for a personal answer. |
can_vote ? |
Flag that describes whether the current user can vote in the poll. |
is_finished |
Flag that describes whether the poll is finished. |
votes_count |
Total number of votes. |
privacy |
Possible values:
|
button_text ? |
Button's caption. |
restrictions ? |
|
options[] ? |
Name | Description |
---|---|
gender |
Possible values:
|
age |
Allowed age of voters. |
location[] |
List of IDs of allowed locations. |
Name | Description |
---|---|
id |
Option ID. It is |
name |
Option title. |
votes_count |
Number of votes for the option. |