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

Gaat vanuit je browser rechtstreeks naar de API, nergens anders heen. Met ‘Onthouden’ blijft hij tot je dit tabblad sluit. Met een alleen-lezen-sleutel kijk je rond zonder iets te veranderen.

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

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