Deprecation Notice
Api V3 is being deprecated on July 1st, 2023. Please consider updating to V5
GET /campaigns/:id/polls
Retrieves the polls and their associated options for a campaign.
{
"meta": {
"status": 200
},
"data": [
{
"id": 47,
"name": "Should pineapple go on pizza?",
"active": true,
"campaignId": 1337,
"createdAt": 1498169329000,
"updatedAt": 1498169329000,
"options":[
{
"id": 42,
"pollId": 47,
"name":"No",
"totalAmountRaised": 50,
"createdAt": 1498169329000,
"updatedAt": 1498169329000
},
{
"id": 44,
"pollId": 47,
"name":"Yes",
"totalAmountRaised": 50,
"createdAt": 1498169329000,
"updatedAt": 1498169329000
}
]
},
{
// ...
}
]
}
Examples
GET /campaigns/42/polls
Returns a list of polls with the campaign ID of 42.
curl https://tiltify.com/api/v3/campaigns/42/polls