Module: Five9Tools::Update
- Included in:
- Admin::Client
- Defined in:
- lib/five9tools/admin/update.rb
Class Method Summary collapse
-
.async_update_campaign_dispositions(params = {}) ⇒ Object
Api request for asyncUpdateCampaignDispositions.
-
.async_update_crm_records(params = {}) ⇒ Object
Api request for asyncUpdateCrmRecords.
-
.update_configuration_translations(params = {}) ⇒ Object
Api request for updateConfigurationTranslations.
-
.update_contacts(params = {}) ⇒ Object
Api request for updateContacts.
-
.update_contacts_csv(params = {}) ⇒ Object
Api request for updateContactsCsv.
-
.update_contacts_ftp(params = {}) ⇒ Object
Api request for updateContactsFtp.
-
.update_crm_record(params = {}) ⇒ Object
Api request for updateCrmRecord.
-
.update_dispositions(params = {}) ⇒ Object
Api request for updateDispositions.
-
.update_dispositions_csv(params = {}) ⇒ Object
Api request for updateDispositionsCsv.
-
.update_dispositions_ftp(params = {}) ⇒ Object
Api request for updateDispositionsFtp.
Class Method Details
.async_update_campaign_dispositions(params = {}) ⇒ Object
Api request for asyncUpdateCampaignDispositions.
164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/five9tools/admin/update.rb', line 164 def async_update_campaign_dispositions(params = {}) if params.is_a?(Hash) begin res = self.call(:async_update_campaign_dispositions, message: params) res[:async_update_campaign_dispositions_response].values[0] rescue => e e.to_s end else "Implement something for simple use case" end end |
.async_update_crm_records(params = {}) ⇒ Object
Api request for asyncUpdateCrmRecords.
79 80 81 82 83 84 85 86 87 88 89 90 |
# File 'lib/five9tools/admin/update.rb', line 79 def async_update_crm_records(params = {}) if params.is_a?(Hash) begin res = self.call(:async_update_crm_records, message: params) res[:async_update_crm_records_response].values[0] rescue => e e.to_s end else "Implement something for simple use case" end end |
.update_configuration_translations(params = {}) ⇒ Object
Api request for updateConfigurationTranslations.
28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/five9tools/admin/update.rb', line 28 def update_configuration_translations(params = {}) if params.is_a?(Hash) begin res = self.call(:update_configuration_translations, message: params) res[:update_configuration_translations_response].values[0] rescue => e e.to_s end else "Implement something for simple use case" end end |
.update_contacts(params = {}) ⇒ Object
Api request for updateContacts.
147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/five9tools/admin/update.rb', line 147 def update_contacts(params = {}) if params.is_a?(Hash) begin res = self.call(:update_contacts, message: params) res[:update_contacts_response].values[0] rescue => e e.to_s end else "Implement something for simple use case" end end |
.update_contacts_csv(params = {}) ⇒ Object
Api request for updateContactsCsv.
130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'lib/five9tools/admin/update.rb', line 130 def update_contacts_csv(params = {}) if params.is_a?(Hash) begin res = self.call(:update_contacts_csv, message: params) res[:update_contacts_csv_response].values[0] rescue => e e.to_s end else "Implement something for simple use case" end end |
.update_contacts_ftp(params = {}) ⇒ Object
Api request for updateContactsFtp.
113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/five9tools/admin/update.rb', line 113 def update_contacts_ftp(params = {}) if params.is_a?(Hash) begin res = self.call(:update_contacts_ftp, message: params) res[:update_contacts_ftp_response].values[0] rescue => e e.to_s end else "Implement something for simple use case" end end |
.update_crm_record(params = {}) ⇒ Object
Api request for updateCrmRecord.
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/five9tools/admin/update.rb', line 45 def update_crm_record(params = {}) if params.is_a?(Hash) begin res = self.call(:update_crm_record, message: params) res[:update_crm_record_response].values[0] rescue => e e.to_s end else "Implement something for simple use case" end end |
.update_dispositions(params = {}) ⇒ Object
Api request for updateDispositions.
96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/five9tools/admin/update.rb', line 96 def update_dispositions(params = {}) if params.is_a?(Hash) begin res = self.call(:update_dispositions, message: params) res[:update_dispositions_response].values[0] rescue => e e.to_s end else "Implement something for simple use case" end end |
.update_dispositions_csv(params = {}) ⇒ Object
Api request for updateDispositionsCsv.
62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/five9tools/admin/update.rb', line 62 def update_dispositions_csv(params = {}) if params.is_a?(Hash) begin res = self.call(:update_dispositions_csv, message: params) res[:update_dispositions_csv_response].values[0] rescue => e e.to_s end else "Implement something for simple use case" end end |
.update_dispositions_ftp(params = {}) ⇒ Object
Api request for updateDispositionsFtp.
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/five9tools/admin/update.rb', line 11 def update_dispositions_ftp(params = {}) if params.is_a?(Hash) begin res = self.call(:update_dispositions_ftp, message: params) res[:update_dispositions_ftp_response].values[0] rescue => e e.to_s end else "Implement something for simple use case" end end |