Parametri
Percorso
slugstring obbligatorio max. 20The form's public id, as in
https://strawpoll.com/r/{slug}.idstring (uuid) obbligatorio
Corpo della richiesta application/json
namestringemailstring (email) obbligatoriocodestringweightnumberHow many times this person's answers count.
Predefinito:
1
Risposte
The invite.
idstring (uuid)formIdstring (uuid)inviteListIdstring (uuid) | nulltypestringmanualfor unique codes.Uno tra:
emailmanualnamestring | nullemailstring | nullphonestring | nullcodestring | nullinvitedbooleanWhether the invite was emailed.
weightnumberHow many times this person's answers count.
responseIdstring (uuid) | nullAlways null in a secret ballot.
createdAtstring (date-time)respondedAtstring (date-time) | nullAlways null in a secret ballot.
respondedboolean | nullWhether the invite or code was used. Null while a secret ballot is open: which ones were used shows once it has closed, and until then the list only tells how many, as
respondedCountnext todata. Not on newly created ones.
Provalo
Inviata dal tuo browser direttamente all’API, da nessun’altra parte. Con «Ricorda» viene conservata finché non chiudi questa scheda. Con una chiave di sola lettura puoi esplorare senza cambiare nulla.
https://strawpoll.com/api/v4/forms/{slug}/invites/{id}Incolla una chiave API per inviare le richieste che ne hanno bisogno.
Le richieste con chiave contano nelle richieste API giornaliere del tuo piano.