widgrensitasobi-defold
widgrensit/asobi-defold/asobi.api.votes
asobi match votes over REST. A project reaches it as client.votes.
- GitHub: widgrensit/asobi-defold — pinned to
v1.18.1- Pick a release from widgrensit/asobi-defold releases and add its Source code (zip) URL (or a packaged
.zipasset, if the library ships one) togame.projectunder[project]dependencies, then Fetch Libraries in the Defold editor. - Run
bunx @defold-typescript/cli resolveto materialize its types. - Import it under a namespace alias of your choice:
import * as api_votes from "asobi.api.votes"
- Pick a release from widgrensit/asobi-defold releases and add its Source code (zip) URL (or a packaged
Functions
list_for_match(client: Client, match_id: string, callback?: HttpCallback)
Fetches a match's votes.
Parameters
client:Client— The client.match_id:string— The match's id.callback?:HttpCallback— Receives the votes, or the error.
get(client: Client, vote_id: string, callback?: HttpCallback)
Fetches one vote.
Parameters
client:Client— The client.vote_id:string— The vote's id.callback?:HttpCallback— Receives the vote, or the error.