Some code for the reddit r/imposter game.
Contains 5 notes to choose from with text
and note-id
:
<gremlin-note id="$(note-id)">$(text)</gremlin-note>
A CSRF-token
is given:
<gremlin-app csrf="$(CSRF-token)">
Expects note-id
and CSRF-token
:
{"undefined": "undefined", "note_id": $(note-id), "csrf_token": $(CSRF-token)}
Use GET request to receive the CSRF-token
and then submit your note
with POST:
{"note": $(note), "csrf_token": $(CSRF-token)}
There seems to be a time limit for this endpoint of 3 minutes.