def send_survey(mode = 1, emails = nil, template_id = nil)
      url = ApiRequest.base_path("questionpro.survey.sendSurvey")
      result = self.class.get(url, body: {surveyID: self.survey_id, mode: mode, 
                                          emailGroupID: self.email_group_id, emails: emails, 
                                          templateID: self.template_id, template: template_id}.compact.to_json)

      self.full_response = result
      self.status = result['status']
      self.message = result['response']['result']
    end
def send_survey(mode = 1, emails = nil, template_id = nil)
      url = ApiRequest.base_path("questionpro.survey.sendSurvey")
      result = self.class.get(url, body: {surveyID: self.survey_id, mode: mode, 
                                          emailGroupID: self.email_group_id, emails: emails, 
                                          templateID: self.template_id, template: template_id}.compact.to_json)

      self.full_response = result
      self.status = result['status']
      self.message = result['response']['result']
    end
Send Specific Survey.
 Survey ID must be set inside the api request object.

 @param [Integer] mode (1).
 @param [Array<String>] emails to send to (nil).
 @param [Integer] template_id of email (nil).
 @return sets ApiRequest message attribute to "Message successful.".