Alle endpoints

Ontwikkelaars / StrawPoll API / Responses

List comments

GET/forms/{slug}/comments

The discussion under a form with allowComments on, as the caller may read it. As the form's manager you get every comment (admin: true), newest 500. Drafts and forms without comments are not found.

Werkt zonder API-sleutel vanuit een browser; scripts sturen er een mee.

Parameters

Pad

  • slug string verplicht max. 20

    The form's public id, as in https://strawpoll.com/r/{slug}.

Antwoorden

The comments.

  • comments array of Comment
  • admin boolean

    Whether the caller manages the form.

  • public boolean

    Whether respondents read each other's comments.

  • me object | null

Probeer het

Sleutel aanmaken

Wordt vanuit je browser rechtstreeks naar de API verstuurd en nergens anders heen. Met ‘Onthouden’ blijft hij bewaard tot je dit tabblad sluit. Met een alleen-lezen-sleutel kun je de API verkennen zonder gegevens te wijzigen.

GET https://strawpoll.com/api/v4/forms/{slug}/comments

Verzoeken met een sleutel tellen mee voor de dagelijkse API-verzoeken van je abonnement.