GET https://api.tilt.com/campaigns/CMP12345
200 OK
{
"campaign": {
"id": 1,
"guid": "CMP12345",
"title": "Senior Prank: Dumpsville College",
"description": "Let's get payback on that greedy shmuck!",
"questions": [
{
"guid": "QUE12345",
"type": "dropdown",
"text": "What type of prank should we pull?",
"options": [
{
"guid": "OPT12345",
"text": "Flood the library with crickets"
},
{
"guid": "OPT23456",
"text": "Toilet paper the auditorium"
},
{
"guid": "OPT45678",
"text": "Put the principal's car on the roof"
}
]
},
{
"guid": "QUE23456",
"type": "field",
"text": "How many hours can you dedicate this week?"
}
]
}
}
POST https://api.tilt.com/campaigns/CMP1234/contributions
{
"contribution": {
"amount": 1000,
"answers": [
{
"question_guid": "QUE12345",
"option_guid": "OPT12345",
"answer": "Flood the library with crickets"
},
{
"question_guid": "QUE23456",
"answer": 4
}
]
}
}