Class: Typeform::Api::Response

Inherits:
Client
  • Object
show all
Defined in:
lib/typeform/api/response.rb

Overview

users

Class Method Summary collapse

Methods inherited from Client

#connection, connection, connection=, parse

Class Method Details

.retrieve_responses(form_id, page_size: 1000) ⇒ Object

retrieve reponses by a form_id



9
10
11
# File 'lib/typeform/api/response.rb', line 9

def retrieve_responses(form_id, page_size: 1000)
  parse(JSON.parse(connection.get("forms/#{form_id}/responses?page_size=#{page_size}").body))
end