Class: HighLevel::Resources::Surveys
- Defined in:
- lib/high_level/resources/surveys.rb
Instance Method Summary collapse
-
#get_surveys(location_id: nil, skip: nil, limit: nil, type: nil, **_opts) ⇒ Object
Get Surveys.
-
#get_surveys_submissions(location_id: nil, page: nil, limit: nil, survey_id: nil, q: nil, start_at: nil, end_at: nil, **_opts) ⇒ Object
Get Surveys Submissions.
Methods inherited from Base
Constructor Details
This class inherits a constructor from HighLevel::Resources::Base
Instance Method Details
#get_surveys(location_id: nil, skip: nil, limit: nil, type: nil, **_opts) ⇒ Object
Get Surveys
20 21 22 23 24 25 26 27 |
# File 'lib/high_level/resources/surveys.rb', line 20 def get_surveys(location_id: nil, skip: nil, limit: nil, type: nil, **_opts) request( method: :get, path: "/surveys/", security: ["bearer"], params: { "locationId" => location_id, "skip" => skip, "limit" => limit, "type" => type }.compact ) end |
#get_surveys_submissions(location_id: nil, page: nil, limit: nil, survey_id: nil, q: nil, start_at: nil, end_at: nil, **_opts) ⇒ Object
Get Surveys Submissions
10 11 12 13 14 15 16 17 |
# File 'lib/high_level/resources/surveys.rb', line 10 def get_surveys_submissions(location_id: nil, page: nil, limit: nil, survey_id: nil, q: nil, start_at: nil, end_at: nil, **_opts) request( method: :get, path: "/surveys/submissions", security: ["bearer"], params: { "locationId" => location_id, "page" => page, "limit" => limit, "surveyId" => survey_id, "q" => q, "startAt" => start_at, "endAt" => end_at }.compact ) end |