Module: Surveymonkey::Client::Survey
- Included in:
- Surveymonkey::Client
- Defined in:
- lib/surveymonkey_api/client/survey.rb
Overview
Survey endpoints
Instance Method Summary collapse
-
#survey_details(survey_id, options = {}) ⇒ Object
Return survey details (survey structure).
-
#survey_folders(options = {}) ⇒ Object
Return survey folders.
-
#survey_response(survey_id, response_id, options = {}) ⇒ Object
Return survey responses.
-
#survey_responses(survey_id, options = {}) ⇒ Object
Return all survey responses.
-
#surveys(options = {}) ⇒ Object
Return all surveys.
Instance Method Details
#survey_details(survey_id, options = {}) ⇒ Object
Return survey details (survey structure)
19 20 21 22 |
# File 'lib/surveymonkey_api/client/survey.rb', line 19 def survey_details(survey_id, = {}) response = self.class.get("/surveys/#{survey_id}/details", { query: }) response.parsed_response end |
#survey_folders(options = {}) ⇒ Object
Return survey folders
13 14 15 16 |
# File 'lib/surveymonkey_api/client/survey.rb', line 13 def survey_folders( = {}) response = self.class.get("/survey_folders", { query: }) response.parsed_response end |
#survey_response(survey_id, response_id, options = {}) ⇒ Object
Return survey responses
31 32 33 34 |
# File 'lib/surveymonkey_api/client/survey.rb', line 31 def survey_response(survey_id, response_id, = {}) response = self.class.get("/surveys/#{survey_id}/responses/#{response_id}/details", { query: }) response.parsed_response end |
#survey_responses(survey_id, options = {}) ⇒ Object
Return all survey responses
25 26 27 28 |
# File 'lib/surveymonkey_api/client/survey.rb', line 25 def survey_responses(survey_id, = {}) response = self.class.get("/surveys/#{survey_id}/responses/bulk", { query: }) response.parsed_response end |
#surveys(options = {}) ⇒ Object
Return all surveys
7 8 9 10 |
# File 'lib/surveymonkey_api/client/survey.rb', line 7 def surveys( = {}) response = self.class.get('/surveys', { query: }) response.parsed_response end |