Module: Surveygizmo::Client::Contact

Included in:
Surveygizmo::Client
Defined in:
lib/surveygizmo/client/contact.rb

Overview

Defines methods related to a SurveyGizmo contact

Instance Method Summary collapse

Instance Method Details

#contact(survey_id, survey_campaign_id, id) ⇒ Object

Returns contact details for a given id

Parameters:

  • survey_id (Integer, String)

    Specify the survey

  • survey_campaign_id (Integer, String)

    Specify the campaign

  • id (Integer, String)

    Specify the user



18
19
20
# File 'lib/surveygizmo/client/contact.rb', line 18

def contact(survey_id, survey_campaign_id, id)
  get("survey/#{survey_id}/surveycampaign/#{survey_campaign_id}/contact/#{id}")
end

#contacts(survey_id, survey_campaign_id) ⇒ Object

List all contacts

Parameters:

  • survey_id (Integer, String)

    Specify the survey

  • survey_campaign_id (Integer, String)

    Specify the campaign



10
11
12
# File 'lib/surveygizmo/client/contact.rb', line 10

def contacts(survey_id, survey_campaign_id)
  get("survey/#{survey_id}/surveycampaign/#{survey_campaign_id}/contact")
end