Todos los endpoints

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

Funciona sin clave de API desde un navegador; los scripts envían una.

Parámetros

Ruta

  • slug string obligatorio max. 20

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

Respuestas

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

Pruébalo

Crear una clave

Se envía desde tu navegador directamente a la API, a ningún otro sitio. Con «Recordar» se queda hasta que cierres esta pestaña. Con una clave de solo lectura puedes explorar sin cambiar nada.

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

Las peticiones con clave cuentan para las peticiones de API diarias de tu plan.