Developers » Poll
Objects List › Poll
Object describes poll and contains following fields:

id
integer
Poll ID.
owner_id
integer
Poll owner ID.
created
integer
Creation date in Unixtime.
question
string
Question text.
votes
integer
Votes count.
answers
array
Poll options. Array of objects with following fields:
  • id (integer) — option ID;
  • text (string) — option text;
  • votes (integer) — voters count;
  • rate (number) — option rate.
anonymous
boolean
If the poll is anonymous.
multiple
boolean
If the poll allows multiple choice.
answer_ids
array
Current user's chosen answers.
end_date
integer
End date in Unixtime. 0 if poll's lifetime not limited.
closed
boolean
If the poll is closed.
is_board
boolean
If the poll is attached to a board.
can_edit
boolean
If the poll can be edited by current user.
can_vote
boolean
If current user can vote.
can_report
boolean
If current user can report the poll.
can_share
boolean
If current user can share the poll.
author_id
integer
Poll author's ID.
photo
object
Poll's photo. Photo object.
background
object
Poll's background. Object with following fields:
  • id (integer) — background ID.
  • type (string) — background type. Possible values: gradient, tile.
  • angle (integer) — (for type = gradient) gradient angle for X axe.
  • color (string) — HEX-code for alternative color (without #).
  • width (integer) — (for type = tile) tile's width.
  • height (integer) — (for type = tile) tile's height.
  • images (array) — (for type = tile) tile's image. Image object array.
  • points (array) — (for type = gradient) gradient's points. Array of objects containing position (number) field and color (string) field.
friends
array
IDs of 3 friends voted the poll.