Polls
A Poll object looks like:
{
// The unique identifier for the poll.
"id": 1023,
// The question/title of the poll.
"question": "What do you consider most important to your learning in this course?",
// A short description of the poll.
"description": "This poll is to determine what priorities the students in the course have.",
// The time at which the poll was created.
"created_at": "2014-01-07T15:16:18Z",
// The unique identifier for the user that created the poll.
"user_id": 105,
// An aggregate of the results of all associated poll sessions, with the poll
// choice id as the key, and the aggregated submission count as the value.
"total_results": {"543":20,"544":5,"545":17}
}List polls
GET /api/v1/polls
Example Response:
Get a single poll
GET /api/v1/polls/:id
Example Response:
Create a single poll
POST /api/v1/polls
Request Parameters:
Parameter
Type
Description
Example Response:
Update a single poll
PUT /api/v1/polls/:id
Request Parameters:
Parameter
Type
Description
Example Response:
Delete a poll
DELETE /api/v1/polls/:id
Last updated
Was this helpful?