def create_email_list (emails = [], email_group_name = nil)
      url = ApiRequest.base_path("questionpro.survey.createEmailGroup")
      result = self.class.get(url, body: {id: self.survey_id, emails: emails, 
                                          emailGroupName: email_group_name}.compact.to_json)

      self.full_response = result
      self.status = result['status']

      unless result['response']['result']['emailGroupID'].nil?
        self.email_group_id = result['response']['result']['emailGroupID']
      end
    end
def create_email_list (emails = [], email_group_name = nil)
      url = ApiRequest.base_path("questionpro.survey.createEmailGroup")
      result = self.class.get(url, body: {id: self.survey_id, emails: emails, 
                                          emailGroupName: email_group_name}.compact.to_json)

      self.full_response = result
      self.status = result['status']

      unless result['response']['result']['emailGroupID'].nil?
        self.email_group_id = result['response']['result']['emailGroupID']
      end
    end
Create Email List.
 Survey ID must be set inside the api request object.

 @param [Array<String>] emails ([]).
 @param [String] email_group_name (nil).
 @return sets ApiRequest email_group_id to the created email list id.