Todos os endpoints

Desenvolvedores / 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 sem chave de API num navegador; scripts enviam uma.

Parâmetros

Caminho

  • slug string obrigatório max. 20

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

Respostas

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

Experimente

Criar uma chave

Enviada do seu navegador direto para a API, para nenhum outro lugar. Com “Lembrar”, fica até você fechar esta aba. Uma chave somente leitura permite explorar sem alterar nada.

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

Requisições com chave contam para as requisições de API diárias do seu plano.