api.dizplai.com sends your API key in x-api-key. When a fan takes part, it also sends the fan’s token in Authorization: Bearer <the fan's token>. A file sent to an upload’s link takes neither. See Authentication.
Reading experiences
How do I list my experiences?
How do I list my experiences?
status, such as status=scheduled,live.How do I show the experiences for one collection?
How do I show the experiences for one collection?
include=experiences: its experiences come in the collection’s order.How do I get a poll's results?
How do I get a poll's results?
results hold the votes and percentages, when fans may see them.Why are a poll's results withheld?
Why are a poll's results withheld?
results_visibility, which your producers choose for each poll, says fans can’t see them yet. See Results.How often should my app read?
How often should my app read?
What language is an experience in?
What language is an experience in?
locale: for now, always en-GB. Dizplai doesn’t translate it.Taking part
How does a fan vote?
How does a fan vote?
Idempotency-Key and the option’s ID. The answer is 202, with a snapshot of the results that includes the vote.How do I know whether a fan has already voted?
How do I know whether a fan has already voted?
null until they’ve voted and the vote is counted: straight after a 202, keep showing the fan’s pick.What happens if a fan votes twice?
What happens if a fan votes twice?
202.What if the connection drops?
What if the connection drops?
Idempotency-Key. A vote is never counted twice, a message’s key is kept for 24 hours, and an upload’s for 5 minutes. See Errors and retries.How does a fan send a message?
How does a fan send a message?
Idempotency-Key. A voice note or photo takes three: create an upload, send the file to its link, then send the message. See Fan Voices.How does a fan see what happened to their message?
How does a fan see what happened to their message?
Can guests take part?
Can guests take part?
requires_sign_in is true, and every voice note and photo, needs a signed-in fan. See Guests.Setting up and errors
Can my API key ship in my app?
Can my API key ship in my app?
Where does the fan's token come from?
Where does the fan's token come from?
What should my app do when a request fails?
What should my app do when a request fails?
code, which says whether to retry. Retry rate_limited and unavailable once Retry-After has passed. See Errors and retries.
