The translation was generated automatically and may contain mistakes
Survey
The object describing the survey contains the following fields:
id
integer
A survey identifier to obtain information about it through a method polls.getById .
owner_id
integer
Survey owner ID.
created
integer
Date of creation in Unixtime format.
question
string
Text of the question.
votes
integer
Number of votes.
answers
array
An array of objects that contain information about response options. Each object contains the following fields:
- •
id(integer(b) the response identifier; - •
text(string(a) the text of the reply; - •
votes(integerThe number of people who voted for this answer; - •
rate(numberThe response rating.
anonymous
boolean
The survey is anonymous.
multiple
boolean
Whether the survey allows the choice of several answers.
answer_ids
array
Identifiers of response options selected by the current user.
end_date
integer
Date of completion of the survey at Unixtime. 0 if the interview is indefinite.
closed
boolean
The interview is completed.
is_board
boolean
Whether the survey is attached to the discussion.
can_edit
boolean
Can the survey be edited??
can_vote
boolean
Is it possible to vote in a poll??
can_report
boolean
You can complain about the survey.
can_share
boolean
Can the survey be shared??
author_id
integer
Interviewer ID.
photo
object
The photo is the background of the survey snippet. Object photos .
background
object
The background of the survey snippet. An object that contains fields:
- •
id(integer) is the background identifier. - •
type(stringA type of background. Possible values:gradient,tile. - •
angle(integer(fortype=gradient) the gradient angle on the X-AXIS. - •
color(stringA replacement color code (without #). - •
width(integer(fortype=tile) ширина плитки паттерна. - •
height(integer(fortype=tileThe height of the pattern tile. - •
images(array(fortype=tileimage of the pattern tile. Object array . - •
points(array(fortype=gradientThe gradient point. An array of objects, each containing fieldsposition(numberposition of the point, andcolor(string) — HEX-код цвета точки.
friends
array
Identifiers of 3 friends who voted in the survey.