support.supper.poll.getVotes
Read public vote totals for an exact Supper poll URI and CID. No authentication is required. Optional viewer is a public actor DID, not authentication, and adds that actor latest valid vote. Only support.supper.poll.vote records on support.supper.poll.poll are included. Member-only polls and votes are never exposed.
Details · query
| Kind | query |
|---|---|
| Authority | poll.supper.support |
| Indexed |
Query
query · GETParameters
query stringPublic support.supper.poll.poll AT URI.
CID of the exact poll revision whose choices are being tallied.
viewer
string · didOptional public actor DID whose currently selected vote is requested.
Output
application/jsonOne count per poll option in its original order, including zero-vote options. Counts sum to total.
minLength: 2maxLength: 10
minimum: 0
Exact public poll URI requested.
Exact public poll revision requested.
Number of distinct actors with a valid surviving vote on this exact revision.
minimum: 0
viewerVote
refRequested actor latest valid surviving vote, omitted if none exists.
Errors
InvalidRequest
The subject, revision or viewer is invalid.
NotFound
The exact public poll revision is unavailable.
#viewerVote
objectPublic record identity of the requested actor latest valid vote.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
A public vote authored by the repository owner on an exact Supper poll revision. Consumers count one valid vote per actor and subject URI/CID, choosing the greatest TID record key (URI breaks ties). A changed choice creates a new vote record; deleting it exposes any previous surviving valid vote. Validate that the subject is support.supper.poll.poll and the option exists. Never publish member-only votes in a public repository.
-
One poll of a content space the viewer reads, with its results counted now: each member's newest vote cast between opensAt and closesAt by a member the viewer may see.
-
Get a user's vote on a specific proposal, if they have voted
-
List votes for a specific governance proposal
-
us.off-the-clock.polls.vote
recordA member's answer to a us.off-the-clock.polls.poll in the same space. The member's newest vote counts; one with no entries is an abstention. Votes are records in the space, so every member who reads it can see who voted and how. A client may add createdAt, the time it cast the vote; the AppView trusts it up to five minutes before it indexes the vote and never after.