Alle Endpunkte

Entwickler / 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.

Funktioniert im Browser ohne API-Schlüssel; Skripte schicken einen mit.

Parameter

Pfad

  • slug string Pflicht max. 20

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

Antworten

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

Ausprobieren

Schlüssel erstellen

Wird von deinem Browser direkt an die API gesendet und an keine andere Stelle. Mit „Merken“ bleibt er gespeichert, bis du diesen Tab schließt. Mit einem Nur-Lesen-Schlüssel kannst du die API erkunden, ohne Daten zu ändern.

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

Anfragen mit Schlüssel zählen gegen die täglichen API-Anfragen deines Tarifs.