clicksend_client 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +78 -0
  4. data/Rakefile +8 -0
  5. data/clicksend_client-1.0.1.gem +0 -0
  6. data/clicksend_client.gemspec +45 -0
  7. data/docs/Account.md +15 -0
  8. data/docs/AccountApi.md +433 -0
  9. data/docs/AccountForgotPasswordVerify.md +10 -0
  10. data/docs/AccountRechargeApi.md +330 -0
  11. data/docs/AccountVerify.md +10 -0
  12. data/docs/Address.md +14 -0
  13. data/docs/Attachment.md +12 -0
  14. data/docs/Contact.md +23 -0
  15. data/docs/ContactApi.md +416 -0
  16. data/docs/ContactList.md +8 -0
  17. data/docs/ContactListApi.md +398 -0
  18. data/docs/ContactListImport.md +9 -0
  19. data/docs/CountriesApi.md +50 -0
  20. data/docs/CreditCard.md +13 -0
  21. data/docs/DateBefore.md +8 -0
  22. data/docs/DeliveryIssue.md +12 -0
  23. data/docs/DeliveryIssuesApi.md +119 -0
  24. data/docs/DeliveryReceiptRule.md +12 -0
  25. data/docs/DetectAddressApi.md +62 -0
  26. data/docs/Email.md +15 -0
  27. data/docs/EmailAddress.md +8 -0
  28. data/docs/EmailCampaign.md +15 -0
  29. data/docs/EmailDeliveryReceiptRulesApi.md +286 -0
  30. data/docs/EmailFrom.md +9 -0
  31. data/docs/EmailMarketingApi.md +793 -0
  32. data/docs/EmailRecipient.md +9 -0
  33. data/docs/EmailSMSAddress.md +10 -0
  34. data/docs/EmailTemplateNew.md +9 -0
  35. data/docs/EmailTemplateUpdate.md +9 -0
  36. data/docs/EmailToSmsApi.md +395 -0
  37. data/docs/FAXApi.md +401 -0
  38. data/docs/FAXDeliveryReceiptRulesApi.md +286 -0
  39. data/docs/FaxMessage.md +15 -0
  40. data/docs/FaxMessageCollection.md +9 -0
  41. data/docs/Fields.md +8 -0
  42. data/docs/FieldsFields.md +23 -0
  43. data/docs/ForgotPassword.md +8 -0
  44. data/docs/ForgotUsername.md +9 -0
  45. data/docs/InboundFAXRulesApi.md +286 -0
  46. data/docs/InboundFaxRule.md +12 -0
  47. data/docs/InboundSMSRule.md +14 -0
  48. data/docs/InboundSMSRulesApi.md +286 -0
  49. data/docs/MMSApi.md +228 -0
  50. data/docs/MasterEmailTemplatesApi.md +290 -0
  51. data/docs/MmsCampaign.md +14 -0
  52. data/docs/MmsCampaignApi.md +338 -0
  53. data/docs/MmsMessage.md +17 -0
  54. data/docs/MmsMessageCollection.md +9 -0
  55. data/docs/NumberApi.md +183 -0
  56. data/docs/PostLetter.md +14 -0
  57. data/docs/PostLetterApi.md +227 -0
  58. data/docs/PostPostcard.md +9 -0
  59. data/docs/PostPostcardApi.md +227 -0
  60. data/docs/PostRecipient.md +16 -0
  61. data/docs/PostReturnAddressApi.md +284 -0
  62. data/docs/ReferralAccountApi.md +65 -0
  63. data/docs/ResellerAccount.md +15 -0
  64. data/docs/ResellerAccountApi.md +230 -0
  65. data/docs/ResellerAccountTransferCredit.md +10 -0
  66. data/docs/SMSApi.md +999 -0
  67. data/docs/SMSDeliveryReceiptRulesApi.md +286 -0
  68. data/docs/SearchApi.md +68 -0
  69. data/docs/SmsCampaign.md +12 -0
  70. data/docs/SmsCampaignApi.md +338 -0
  71. data/docs/SmsMessage.md +16 -0
  72. data/docs/SmsMessageCollection.md +8 -0
  73. data/docs/SmsTemplate.md +9 -0
  74. data/docs/StatisticsApi.md +104 -0
  75. data/docs/StrippedString.md +8 -0
  76. data/docs/Subaccount.md +18 -0
  77. data/docs/SubaccountApi.md +338 -0
  78. data/docs/TimezonesApi.md +65 -0
  79. data/docs/TransactionalEmailApi.md +237 -0
  80. data/docs/TransferCreditApi.md +62 -0
  81. data/docs/UploadApi.md +65 -0
  82. data/docs/UploadFile.md +8 -0
  83. data/docs/Url.md +8 -0
  84. data/docs/UserEmailTemplatesApi.md +284 -0
  85. data/docs/VoiceApi.md +547 -0
  86. data/docs/VoiceDeliveryReceiptRulesApi.md +286 -0
  87. data/docs/VoiceMessage.md +18 -0
  88. data/docs/VoiceMessageCollection.md +8 -0
  89. data/lib/clicksend_client.rb +121 -0
  90. data/lib/clicksend_client/api/account_api.rb +447 -0
  91. data/lib/clicksend_client/api/account_recharge_api.rb +346 -0
  92. data/lib/clicksend_client/api/contact_api.rb +463 -0
  93. data/lib/clicksend_client/api/contact_list_api.rb +427 -0
  94. data/lib/clicksend_client/api/countries_api.rb +71 -0
  95. data/lib/clicksend_client/api/delivery_issues_api.rb +139 -0
  96. data/lib/clicksend_client/api/detect_address_api.rb +77 -0
  97. data/lib/clicksend_client/api/email_delivery_receipt_rules_api.rb +310 -0
  98. data/lib/clicksend_client/api/email_marketing_api.rb +829 -0
  99. data/lib/clicksend_client/api/email_to_sms_api.rb +423 -0
  100. data/lib/clicksend_client/api/fax_api.rb +425 -0
  101. data/lib/clicksend_client/api/fax_delivery_receipt_rules_api.rb +310 -0
  102. data/lib/clicksend_client/api/inbound_fax_rules_api.rb +310 -0
  103. data/lib/clicksend_client/api/inbound_sms_rules_api.rb +310 -0
  104. data/lib/clicksend_client/api/master_email_templates_api.rb +323 -0
  105. data/lib/clicksend_client/api/mms_api.rb +243 -0
  106. data/lib/clicksend_client/api/mms_campaign_api.rb +361 -0
  107. data/lib/clicksend_client/api/number_api.rb +213 -0
  108. data/lib/clicksend_client/api/post_letter_api.rb +248 -0
  109. data/lib/clicksend_client/api/post_postcard_api.rb +248 -0
  110. data/lib/clicksend_client/api/post_return_address_api.rb +307 -0
  111. data/lib/clicksend_client/api/referral_account_api.rb +85 -0
  112. data/lib/clicksend_client/api/reseller_account_api.rb +253 -0
  113. data/lib/clicksend_client/api/search_api.rb +92 -0
  114. data/lib/clicksend_client/api/sms_api.rb +1032 -0
  115. data/lib/clicksend_client/api/sms_campaign_api.rb +361 -0
  116. data/lib/clicksend_client/api/sms_delivery_receipt_rules_api.rb +310 -0
  117. data/lib/clicksend_client/api/statistics_api.rb +119 -0
  118. data/lib/clicksend_client/api/subaccount_api.rb +361 -0
  119. data/lib/clicksend_client/api/timezones_api.rb +85 -0
  120. data/lib/clicksend_client/api/transactional_email_api.rb +260 -0
  121. data/lib/clicksend_client/api/transfer_credit_api.rb +77 -0
  122. data/lib/clicksend_client/api/upload_api.rb +84 -0
  123. data/lib/clicksend_client/api/user_email_templates_api.rb +307 -0
  124. data/lib/clicksend_client/api/voice_api.rb +570 -0
  125. data/lib/clicksend_client/api/voice_delivery_receipt_rules_api.rb +310 -0
  126. data/lib/clicksend_client/api_client.rb +389 -0
  127. data/lib/clicksend_client/api_error.rb +38 -0
  128. data/lib/clicksend_client/configuration.rb +209 -0
  129. data/lib/clicksend_client/models/account.rb +295 -0
  130. data/lib/clicksend_client/models/account_forgot_password_verify.rb +219 -0
  131. data/lib/clicksend_client/models/account_verify.rb +220 -0
  132. data/lib/clicksend_client/models/address.rb +270 -0
  133. data/lib/clicksend_client/models/attachment.rb +250 -0
  134. data/lib/clicksend_client/models/contact.rb +345 -0
  135. data/lib/clicksend_client/models/contact_list.rb +190 -0
  136. data/lib/clicksend_client/models/contact_list_import.rb +207 -0
  137. data/lib/clicksend_client/models/credit_card.rb +265 -0
  138. data/lib/clicksend_client/models/date_before.rb +185 -0
  139. data/lib/clicksend_client/models/delivery_issue.rb +240 -0
  140. data/lib/clicksend_client/models/delivery_receipt_rule.rb +250 -0
  141. data/lib/clicksend_client/models/email.rb +277 -0
  142. data/lib/clicksend_client/models/email_address.rb +189 -0
  143. data/lib/clicksend_client/models/email_campaign.rb +287 -0
  144. data/lib/clicksend_client/models/email_from.rb +200 -0
  145. data/lib/clicksend_client/models/email_recipient.rb +200 -0
  146. data/lib/clicksend_client/models/email_sms_address.rb +215 -0
  147. data/lib/clicksend_client/models/email_template_new.rb +205 -0
  148. data/lib/clicksend_client/models/email_template_update.rb +200 -0
  149. data/lib/clicksend_client/models/fax_message.rb +262 -0
  150. data/lib/clicksend_client/models/fax_message_collection.rb +207 -0
  151. data/lib/clicksend_client/models/fields.rb +184 -0
  152. data/lib/clicksend_client/models/fields_fields.rb +335 -0
  153. data/lib/clicksend_client/models/forgot_password.rb +189 -0
  154. data/lib/clicksend_client/models/forgot_username.rb +194 -0
  155. data/lib/clicksend_client/models/inbound_fax_rule.rb +250 -0
  156. data/lib/clicksend_client/models/inbound_sms_rule.rb +280 -0
  157. data/lib/clicksend_client/models/mms_campaign.rb +272 -0
  158. data/lib/clicksend_client/models/mms_message.rb +294 -0
  159. data/lib/clicksend_client/models/mms_message_collection.rb +207 -0
  160. data/lib/clicksend_client/models/post_letter.rb +267 -0
  161. data/lib/clicksend_client/models/post_postcard.rb +209 -0
  162. data/lib/clicksend_client/models/post_recipient.rb +302 -0
  163. data/lib/clicksend_client/models/reseller_account.rb +295 -0
  164. data/lib/clicksend_client/models/reseller_account_transfer_credit.rb +220 -0
  165. data/lib/clicksend_client/models/sms_campaign.rb +242 -0
  166. data/lib/clicksend_client/models/sms_message.rb +279 -0
  167. data/lib/clicksend_client/models/sms_message_collection.rb +192 -0
  168. data/lib/clicksend_client/models/sms_template.rb +205 -0
  169. data/lib/clicksend_client/models/stripped_string.rb +190 -0
  170. data/lib/clicksend_client/models/subaccount.rb +325 -0
  171. data/lib/clicksend_client/models/upload_file.rb +190 -0
  172. data/lib/clicksend_client/models/url.rb +190 -0
  173. data/lib/clicksend_client/models/voice_message.rb +316 -0
  174. data/lib/clicksend_client/models/voice_message_collection.rb +192 -0
  175. data/lib/clicksend_client/version.rb +15 -0
  176. data/spec/api/account_api_spec.rb +131 -0
  177. data/spec/api/account_recharge_api_spec.rb +107 -0
  178. data/spec/api/contact_api_spec.rb +129 -0
  179. data/spec/api/contact_list_api_spec.rb +123 -0
  180. data/spec/api/countries_api_spec.rb +46 -0
  181. data/spec/api/delivery_issues_api_spec.rb +60 -0
  182. data/spec/api/detect_address_api_spec.rb +47 -0
  183. data/spec/api/email_delivery_receipt_rules_api_spec.rb +98 -0
  184. data/spec/api/email_marketing_api_spec.rb +213 -0
  185. data/spec/api/email_to_sms_api_spec.rb +122 -0
  186. data/spec/api/fax_api_spec.rb +125 -0
  187. data/spec/api/fax_delivery_receipt_rules_api_spec.rb +98 -0
  188. data/spec/api/inbound_fax_rules_api_spec.rb +98 -0
  189. data/spec/api/inbound_sms_rules_api_spec.rb +98 -0
  190. data/spec/api/master_email_templates_api_spec.rb +99 -0
  191. data/spec/api/mms_api_spec.rb +84 -0
  192. data/spec/api/mms_campaign_api_spec.rb +109 -0
  193. data/spec/api/number_api_spec.rb +76 -0
  194. data/spec/api/post_letter_api_spec.rb +84 -0
  195. data/spec/api/post_postcard_api_spec.rb +84 -0
  196. data/spec/api/post_return_address_api_spec.rb +97 -0
  197. data/spec/api/referral_account_api_spec.rb +48 -0
  198. data/spec/api/reseller_account_api_spec.rb +85 -0
  199. data/spec/api/search_api_spec.rb +49 -0
  200. data/spec/api/sms_api_spec.rb +259 -0
  201. data/spec/api/sms_campaign_api_spec.rb +109 -0
  202. data/spec/api/sms_delivery_receipt_rules_api_spec.rb +98 -0
  203. data/spec/api/statistics_api_spec.rb +57 -0
  204. data/spec/api/subaccount_api_spec.rb +109 -0
  205. data/spec/api/timezones_api_spec.rb +48 -0
  206. data/spec/api/transactional_email_api_spec.rb +88 -0
  207. data/spec/api/transfer_credit_api_spec.rb +47 -0
  208. data/spec/api/upload_api_spec.rb +48 -0
  209. data/spec/api/user_email_templates_api_spec.rb +97 -0
  210. data/spec/api/voice_api_spec.rb +157 -0
  211. data/spec/api/voice_delivery_receipt_rules_api_spec.rb +98 -0
  212. data/spec/api_client_spec.rb +226 -0
  213. data/spec/configuration_spec.rb +42 -0
  214. data/spec/models/account_forgot_password_verify_spec.rb +53 -0
  215. data/spec/models/account_spec.rb +83 -0
  216. data/spec/models/account_verify_spec.rb +53 -0
  217. data/spec/models/address_spec.rb +77 -0
  218. data/spec/models/attachment_spec.rb +65 -0
  219. data/spec/models/contact_list_import_spec.rb +47 -0
  220. data/spec/models/contact_list_spec.rb +41 -0
  221. data/spec/models/contact_spec.rb +131 -0
  222. data/spec/models/credit_card_spec.rb +71 -0
  223. data/spec/models/date_before_spec.rb +41 -0
  224. data/spec/models/delivery_issue_spec.rb +65 -0
  225. data/spec/models/delivery_receipt_rule_spec.rb +65 -0
  226. data/spec/models/email_address_spec.rb +41 -0
  227. data/spec/models/email_campaign_spec.rb +83 -0
  228. data/spec/models/email_from_spec.rb +47 -0
  229. data/spec/models/email_recipient_spec.rb +47 -0
  230. data/spec/models/email_sms_address_spec.rb +53 -0
  231. data/spec/models/email_spec.rb +83 -0
  232. data/spec/models/email_template_new_spec.rb +47 -0
  233. data/spec/models/email_template_update_spec.rb +47 -0
  234. data/spec/models/fax_message_collection_spec.rb +47 -0
  235. data/spec/models/fax_message_spec.rb +83 -0
  236. data/spec/models/fields_fields_spec.rb +131 -0
  237. data/spec/models/fields_spec.rb +41 -0
  238. data/spec/models/forgot_password_spec.rb +41 -0
  239. data/spec/models/forgot_username_spec.rb +47 -0
  240. data/spec/models/inbound_fax_rule_spec.rb +65 -0
  241. data/spec/models/inbound_sms_rule_spec.rb +77 -0
  242. data/spec/models/mms_campaign_spec.rb +77 -0
  243. data/spec/models/mms_message_collection_spec.rb +47 -0
  244. data/spec/models/mms_message_spec.rb +95 -0
  245. data/spec/models/post_letter_spec.rb +77 -0
  246. data/spec/models/post_postcard_spec.rb +47 -0
  247. data/spec/models/post_recipient_spec.rb +89 -0
  248. data/spec/models/reseller_account_spec.rb +83 -0
  249. data/spec/models/reseller_account_transfer_credit_spec.rb +53 -0
  250. data/spec/models/sms_campaign_spec.rb +65 -0
  251. data/spec/models/sms_message_collection_spec.rb +41 -0
  252. data/spec/models/sms_message_spec.rb +89 -0
  253. data/spec/models/sms_template_spec.rb +47 -0
  254. data/spec/models/stripped_string_spec.rb +41 -0
  255. data/spec/models/subaccount_spec.rb +101 -0
  256. data/spec/models/upload_file_spec.rb +41 -0
  257. data/spec/models/url_spec.rb +41 -0
  258. data/spec/models/voice_message_collection_spec.rb +41 -0
  259. data/spec/models/voice_message_spec.rb +101 -0
  260. data/spec/spec_helper.rb +111 -0
  261. metadata +568 -0
@@ -0,0 +1,284 @@
1
+ # ClickSendClient::UserEmailTemplatesApi
2
+
3
+ All URIs are relative to *https://rest.clicksend.com/v3*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**email_template_delete**](UserEmailTemplatesApi.md#email_template_delete) | **DELETE** /email/templates/{template_id} | Delete user email template
8
+ [**email_template_get**](UserEmailTemplatesApi.md#email_template_get) | **GET** /email/templates/{template_id} | Get specific user email template
9
+ [**email_template_post**](UserEmailTemplatesApi.md#email_template_post) | **POST** /email/templates | Create email template
10
+ [**email_template_put**](UserEmailTemplatesApi.md#email_template_put) | **PUT** /email/templates/{template_id} | Update email template
11
+ [**email_templates_get**](UserEmailTemplatesApi.md#email_templates_get) | **GET** /email/templates | Get all user email templates
12
+
13
+
14
+ # **email_template_delete**
15
+ > String email_template_delete(template_id)
16
+
17
+ Delete user email template
18
+
19
+ Delete user email template
20
+
21
+ ### Example
22
+ ```ruby
23
+ # load the gem
24
+ require 'clicksend_client'
25
+ # setup authorization
26
+ ClickSendClient.configure do |config|
27
+ # Configure HTTP basic authorization: BasicAuth
28
+ config.username = 'YOUR USERNAME'
29
+ config.password = 'YOUR PASSWORD'
30
+ end
31
+
32
+ api_instance = ClickSendClient::UserEmailTemplatesApi.new
33
+
34
+ template_id = 56 # Integer | Email template id
35
+
36
+
37
+ begin
38
+ #Delete user email template
39
+ result = api_instance.email_template_delete(template_id)
40
+ p result
41
+ rescue ClickSendClient::ApiError => e
42
+ puts "Exception when calling UserEmailTemplatesApi->email_template_delete: #{e}"
43
+ end
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+ Name | Type | Description | Notes
49
+ ------------- | ------------- | ------------- | -------------
50
+ **template_id** | **Integer**| Email template id |
51
+
52
+ ### Return type
53
+
54
+ **String**
55
+
56
+ ### Authorization
57
+
58
+ [BasicAuth](../README.md#BasicAuth)
59
+
60
+ ### HTTP request headers
61
+
62
+ - **Content-Type**: application/json
63
+ - **Accept**: application/json
64
+
65
+
66
+
67
+ # **email_template_get**
68
+ > String email_template_get(template_id)
69
+
70
+ Get specific user email template
71
+
72
+ Get specific user email templates
73
+
74
+ ### Example
75
+ ```ruby
76
+ # load the gem
77
+ require 'clicksend_client'
78
+ # setup authorization
79
+ ClickSendClient.configure do |config|
80
+ # Configure HTTP basic authorization: BasicAuth
81
+ config.username = 'YOUR USERNAME'
82
+ config.password = 'YOUR PASSWORD'
83
+ end
84
+
85
+ api_instance = ClickSendClient::UserEmailTemplatesApi.new
86
+
87
+ template_id = 56 # Integer | Email template id
88
+
89
+
90
+ begin
91
+ #Get specific user email template
92
+ result = api_instance.email_template_get(template_id)
93
+ p result
94
+ rescue ClickSendClient::ApiError => e
95
+ puts "Exception when calling UserEmailTemplatesApi->email_template_get: #{e}"
96
+ end
97
+ ```
98
+
99
+ ### Parameters
100
+
101
+ Name | Type | Description | Notes
102
+ ------------- | ------------- | ------------- | -------------
103
+ **template_id** | **Integer**| Email template id |
104
+
105
+ ### Return type
106
+
107
+ **String**
108
+
109
+ ### Authorization
110
+
111
+ [BasicAuth](../README.md#BasicAuth)
112
+
113
+ ### HTTP request headers
114
+
115
+ - **Content-Type**: application/json
116
+ - **Accept**: application/json
117
+
118
+
119
+
120
+ # **email_template_post**
121
+ > String email_template_post(email_template)
122
+
123
+ Create email template
124
+
125
+ Create email template
126
+
127
+ ### Example
128
+ ```ruby
129
+ # load the gem
130
+ require 'clicksend_client'
131
+ # setup authorization
132
+ ClickSendClient.configure do |config|
133
+ # Configure HTTP basic authorization: BasicAuth
134
+ config.username = 'YOUR USERNAME'
135
+ config.password = 'YOUR PASSWORD'
136
+ end
137
+
138
+ api_instance = ClickSendClient::UserEmailTemplatesApi.new
139
+
140
+ email_template = ClickSendClient::EmailTemplateNew.new # EmailTemplateNew | Email template model
141
+
142
+
143
+ begin
144
+ #Create email template
145
+ result = api_instance.email_template_post(email_template)
146
+ p result
147
+ rescue ClickSendClient::ApiError => e
148
+ puts "Exception when calling UserEmailTemplatesApi->email_template_post: #{e}"
149
+ end
150
+ ```
151
+
152
+ ### Parameters
153
+
154
+ Name | Type | Description | Notes
155
+ ------------- | ------------- | ------------- | -------------
156
+ **email_template** | [**EmailTemplateNew**](EmailTemplateNew.md)| Email template model |
157
+
158
+ ### Return type
159
+
160
+ **String**
161
+
162
+ ### Authorization
163
+
164
+ [BasicAuth](../README.md#BasicAuth)
165
+
166
+ ### HTTP request headers
167
+
168
+ - **Content-Type**: application/json
169
+ - **Accept**: application/json
170
+
171
+
172
+
173
+ # **email_template_put**
174
+ > String email_template_put(template_id, email_template)
175
+
176
+ Update email template
177
+
178
+ Update email template
179
+
180
+ ### Example
181
+ ```ruby
182
+ # load the gem
183
+ require 'clicksend_client'
184
+ # setup authorization
185
+ ClickSendClient.configure do |config|
186
+ # Configure HTTP basic authorization: BasicAuth
187
+ config.username = 'YOUR USERNAME'
188
+ config.password = 'YOUR PASSWORD'
189
+ end
190
+
191
+ api_instance = ClickSendClient::UserEmailTemplatesApi.new
192
+
193
+ template_id = 56 # Integer | Email template id
194
+
195
+ email_template = ClickSendClient::EmailTemplateUpdate.new # EmailTemplateUpdate | Email template model
196
+
197
+
198
+ begin
199
+ #Update email template
200
+ result = api_instance.email_template_put(template_id, email_template)
201
+ p result
202
+ rescue ClickSendClient::ApiError => e
203
+ puts "Exception when calling UserEmailTemplatesApi->email_template_put: #{e}"
204
+ end
205
+ ```
206
+
207
+ ### Parameters
208
+
209
+ Name | Type | Description | Notes
210
+ ------------- | ------------- | ------------- | -------------
211
+ **template_id** | **Integer**| Email template id |
212
+ **email_template** | [**EmailTemplateUpdate**](EmailTemplateUpdate.md)| Email template model |
213
+
214
+ ### Return type
215
+
216
+ **String**
217
+
218
+ ### Authorization
219
+
220
+ [BasicAuth](../README.md#BasicAuth)
221
+
222
+ ### HTTP request headers
223
+
224
+ - **Content-Type**: application/json
225
+ - **Accept**: application/json
226
+
227
+
228
+
229
+ # **email_templates_get**
230
+ > String email_templates_get(opts)
231
+
232
+ Get all user email templates
233
+
234
+ Get all user email templates
235
+
236
+ ### Example
237
+ ```ruby
238
+ # load the gem
239
+ require 'clicksend_client'
240
+ # setup authorization
241
+ ClickSendClient.configure do |config|
242
+ # Configure HTTP basic authorization: BasicAuth
243
+ config.username = 'YOUR USERNAME'
244
+ config.password = 'YOUR PASSWORD'
245
+ end
246
+
247
+ api_instance = ClickSendClient::UserEmailTemplatesApi.new
248
+
249
+ opts = {
250
+ page: 1, # Integer | Page number
251
+ limit: 10 # Integer | Number of records per page
252
+ }
253
+
254
+ begin
255
+ #Get all user email templates
256
+ result = api_instance.email_templates_get(opts)
257
+ p result
258
+ rescue ClickSendClient::ApiError => e
259
+ puts "Exception when calling UserEmailTemplatesApi->email_templates_get: #{e}"
260
+ end
261
+ ```
262
+
263
+ ### Parameters
264
+
265
+ Name | Type | Description | Notes
266
+ ------------- | ------------- | ------------- | -------------
267
+ **page** | **Integer**| Page number | [optional] [default to 1]
268
+ **limit** | **Integer**| Number of records per page | [optional] [default to 10]
269
+
270
+ ### Return type
271
+
272
+ **String**
273
+
274
+ ### Authorization
275
+
276
+ [BasicAuth](../README.md#BasicAuth)
277
+
278
+ ### HTTP request headers
279
+
280
+ - **Content-Type**: application/json
281
+ - **Accept**: application/json
282
+
283
+
284
+
@@ -0,0 +1,547 @@
1
+ # ClickSendClient::VoiceApi
2
+
3
+ All URIs are relative to *https://rest.clicksend.com/v3*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**voice_cancel_all_put**](VoiceApi.md#voice_cancel_all_put) | **PUT** /voice/cancel-all | Update all voice messages as cancelled
8
+ [**voice_cancel_by_message_id_put**](VoiceApi.md#voice_cancel_by_message_id_put) | **PUT** /voice/{message_id}/cancel | Update voice message status as cancelled
9
+ [**voice_history_export_get**](VoiceApi.md#voice_history_export_get) | **GET** /voice/history/export | Export voice history
10
+ [**voice_history_get**](VoiceApi.md#voice_history_get) | **GET** /voice/history | Get all voice history
11
+ [**voice_lang_get**](VoiceApi.md#voice_lang_get) | **GET** /voice/lang | Get all voice languages
12
+ [**voice_price_post**](VoiceApi.md#voice_price_post) | **POST** /voice/price | Calculate voice price
13
+ [**voice_receipts_get**](VoiceApi.md#voice_receipts_get) | **GET** /voice/receipts | Get all delivery receipts
14
+ [**voice_receipts_post**](VoiceApi.md#voice_receipts_post) | **POST** /voice/receipts | Add a delivery receipt
15
+ [**voice_receipts_read_put**](VoiceApi.md#voice_receipts_read_put) | **PUT** /voice/receipts-read | Mark delivery receipts as read
16
+ [**voice_send_post**](VoiceApi.md#voice_send_post) | **POST** /voice/send | Send voice message(s)
17
+
18
+
19
+ # **voice_cancel_all_put**
20
+ > String voice_cancel_all_put
21
+
22
+ Update all voice messages as cancelled
23
+
24
+ Update all voice messages as cancelled
25
+
26
+ ### Example
27
+ ```ruby
28
+ # load the gem
29
+ require 'clicksend_client'
30
+ # setup authorization
31
+ ClickSendClient.configure do |config|
32
+ # Configure HTTP basic authorization: BasicAuth
33
+ config.username = 'YOUR USERNAME'
34
+ config.password = 'YOUR PASSWORD'
35
+ end
36
+
37
+ api_instance = ClickSendClient::VoiceApi.new
38
+
39
+ begin
40
+ #Update all voice messages as cancelled
41
+ result = api_instance.voice_cancel_all_put
42
+ p result
43
+ rescue ClickSendClient::ApiError => e
44
+ puts "Exception when calling VoiceApi->voice_cancel_all_put: #{e}"
45
+ end
46
+ ```
47
+
48
+ ### Parameters
49
+ This endpoint does not need any parameter.
50
+
51
+ ### Return type
52
+
53
+ **String**
54
+
55
+ ### Authorization
56
+
57
+ [BasicAuth](../README.md#BasicAuth)
58
+
59
+ ### HTTP request headers
60
+
61
+ - **Content-Type**: application/json
62
+ - **Accept**: application/json
63
+
64
+
65
+
66
+ # **voice_cancel_by_message_id_put**
67
+ > String voice_cancel_by_message_id_put(message_id)
68
+
69
+ Update voice message status as cancelled
70
+
71
+ Update voice message status as cancelled
72
+
73
+ ### Example
74
+ ```ruby
75
+ # load the gem
76
+ require 'clicksend_client'
77
+ # setup authorization
78
+ ClickSendClient.configure do |config|
79
+ # Configure HTTP basic authorization: BasicAuth
80
+ config.username = 'YOUR USERNAME'
81
+ config.password = 'YOUR PASSWORD'
82
+ end
83
+
84
+ api_instance = ClickSendClient::VoiceApi.new
85
+
86
+ message_id = 'message_id_example' # String | Your voice message id
87
+
88
+
89
+ begin
90
+ #Update voice message status as cancelled
91
+ result = api_instance.voice_cancel_by_message_id_put(message_id)
92
+ p result
93
+ rescue ClickSendClient::ApiError => e
94
+ puts "Exception when calling VoiceApi->voice_cancel_by_message_id_put: #{e}"
95
+ end
96
+ ```
97
+
98
+ ### Parameters
99
+
100
+ Name | Type | Description | Notes
101
+ ------------- | ------------- | ------------- | -------------
102
+ **message_id** | **String**| Your voice message id |
103
+
104
+ ### Return type
105
+
106
+ **String**
107
+
108
+ ### Authorization
109
+
110
+ [BasicAuth](../README.md#BasicAuth)
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: application/json
115
+ - **Accept**: application/json
116
+
117
+
118
+
119
+ # **voice_history_export_get**
120
+ > String voice_history_export_get(filename)
121
+
122
+ Export voice history
123
+
124
+ Export voice history
125
+
126
+ ### Example
127
+ ```ruby
128
+ # load the gem
129
+ require 'clicksend_client'
130
+ # setup authorization
131
+ ClickSendClient.configure do |config|
132
+ # Configure HTTP basic authorization: BasicAuth
133
+ config.username = 'YOUR USERNAME'
134
+ config.password = 'YOUR PASSWORD'
135
+ end
136
+
137
+ api_instance = ClickSendClient::VoiceApi.new
138
+
139
+ filename = 'filename_example' # String | Filename to export to
140
+
141
+
142
+ begin
143
+ #Export voice history
144
+ result = api_instance.voice_history_export_get(filename)
145
+ p result
146
+ rescue ClickSendClient::ApiError => e
147
+ puts "Exception when calling VoiceApi->voice_history_export_get: #{e}"
148
+ end
149
+ ```
150
+
151
+ ### Parameters
152
+
153
+ Name | Type | Description | Notes
154
+ ------------- | ------------- | ------------- | -------------
155
+ **filename** | **String**| Filename to export to |
156
+
157
+ ### Return type
158
+
159
+ **String**
160
+
161
+ ### Authorization
162
+
163
+ [BasicAuth](../README.md#BasicAuth)
164
+
165
+ ### HTTP request headers
166
+
167
+ - **Content-Type**: application/json
168
+ - **Accept**: application/json
169
+
170
+
171
+
172
+ # **voice_history_get**
173
+ > String voice_history_get(opts)
174
+
175
+ Get all voice history
176
+
177
+ Get all voice history
178
+
179
+ ### Example
180
+ ```ruby
181
+ # load the gem
182
+ require 'clicksend_client'
183
+ # setup authorization
184
+ ClickSendClient.configure do |config|
185
+ # Configure HTTP basic authorization: BasicAuth
186
+ config.username = 'YOUR USERNAME'
187
+ config.password = 'YOUR PASSWORD'
188
+ end
189
+
190
+ api_instance = ClickSendClient::VoiceApi.new
191
+
192
+ opts = {
193
+ date_from: 56, # Integer | Timestamp (from) used to show records by date.
194
+ date_to: 56, # Integer | Timestamp (to) used to show records by date
195
+ page: 1, # Integer | Page number
196
+ limit: 10 # Integer | Number of records per page
197
+ }
198
+
199
+ begin
200
+ #Get all voice history
201
+ result = api_instance.voice_history_get(opts)
202
+ p result
203
+ rescue ClickSendClient::ApiError => e
204
+ puts "Exception when calling VoiceApi->voice_history_get: #{e}"
205
+ end
206
+ ```
207
+
208
+ ### Parameters
209
+
210
+ Name | Type | Description | Notes
211
+ ------------- | ------------- | ------------- | -------------
212
+ **date_from** | **Integer**| Timestamp (from) used to show records by date. | [optional]
213
+ **date_to** | **Integer**| Timestamp (to) used to show records by date | [optional]
214
+ **page** | **Integer**| Page number | [optional] [default to 1]
215
+ **limit** | **Integer**| Number of records per page | [optional] [default to 10]
216
+
217
+ ### Return type
218
+
219
+ **String**
220
+
221
+ ### Authorization
222
+
223
+ [BasicAuth](../README.md#BasicAuth)
224
+
225
+ ### HTTP request headers
226
+
227
+ - **Content-Type**: application/json
228
+ - **Accept**: application/json
229
+
230
+
231
+
232
+ # **voice_lang_get**
233
+ > String voice_lang_get
234
+
235
+ Get all voice languages
236
+
237
+ Get all voice languages
238
+
239
+ ### Example
240
+ ```ruby
241
+ # load the gem
242
+ require 'clicksend_client'
243
+ # setup authorization
244
+ ClickSendClient.configure do |config|
245
+ # Configure HTTP basic authorization: BasicAuth
246
+ config.username = 'YOUR USERNAME'
247
+ config.password = 'YOUR PASSWORD'
248
+ end
249
+
250
+ api_instance = ClickSendClient::VoiceApi.new
251
+
252
+ begin
253
+ #Get all voice languages
254
+ result = api_instance.voice_lang_get
255
+ p result
256
+ rescue ClickSendClient::ApiError => e
257
+ puts "Exception when calling VoiceApi->voice_lang_get: #{e}"
258
+ end
259
+ ```
260
+
261
+ ### Parameters
262
+ This endpoint does not need any parameter.
263
+
264
+ ### Return type
265
+
266
+ **String**
267
+
268
+ ### Authorization
269
+
270
+ [BasicAuth](../README.md#BasicAuth)
271
+
272
+ ### HTTP request headers
273
+
274
+ - **Content-Type**: application/json
275
+ - **Accept**: application/json
276
+
277
+
278
+
279
+ # **voice_price_post**
280
+ > String voice_price_post(voice_messages)
281
+
282
+ Calculate voice price
283
+
284
+ Calculate voice price
285
+
286
+ ### Example
287
+ ```ruby
288
+ # load the gem
289
+ require 'clicksend_client'
290
+ # setup authorization
291
+ ClickSendClient.configure do |config|
292
+ # Configure HTTP basic authorization: BasicAuth
293
+ config.username = 'YOUR USERNAME'
294
+ config.password = 'YOUR PASSWORD'
295
+ end
296
+
297
+ api_instance = ClickSendClient::VoiceApi.new
298
+
299
+ voice_messages = ClickSendClient::VoiceMessageCollection.new # VoiceMessageCollection | VoiceMessageCollection model
300
+
301
+
302
+ begin
303
+ #Calculate voice price
304
+ result = api_instance.voice_price_post(voice_messages)
305
+ p result
306
+ rescue ClickSendClient::ApiError => e
307
+ puts "Exception when calling VoiceApi->voice_price_post: #{e}"
308
+ end
309
+ ```
310
+
311
+ ### Parameters
312
+
313
+ Name | Type | Description | Notes
314
+ ------------- | ------------- | ------------- | -------------
315
+ **voice_messages** | [**VoiceMessageCollection**](VoiceMessageCollection.md)| VoiceMessageCollection model |
316
+
317
+ ### Return type
318
+
319
+ **String**
320
+
321
+ ### Authorization
322
+
323
+ [BasicAuth](../README.md#BasicAuth)
324
+
325
+ ### HTTP request headers
326
+
327
+ - **Content-Type**: application/json
328
+ - **Accept**: application/json
329
+
330
+
331
+
332
+ # **voice_receipts_get**
333
+ > String voice_receipts_get(opts)
334
+
335
+ Get all delivery receipts
336
+
337
+ Get all delivery receipts
338
+
339
+ ### Example
340
+ ```ruby
341
+ # load the gem
342
+ require 'clicksend_client'
343
+ # setup authorization
344
+ ClickSendClient.configure do |config|
345
+ # Configure HTTP basic authorization: BasicAuth
346
+ config.username = 'YOUR USERNAME'
347
+ config.password = 'YOUR PASSWORD'
348
+ end
349
+
350
+ api_instance = ClickSendClient::VoiceApi.new
351
+
352
+ opts = {
353
+ page: 1, # Integer | Page number
354
+ limit: 10 # Integer | Number of records per page
355
+ }
356
+
357
+ begin
358
+ #Get all delivery receipts
359
+ result = api_instance.voice_receipts_get(opts)
360
+ p result
361
+ rescue ClickSendClient::ApiError => e
362
+ puts "Exception when calling VoiceApi->voice_receipts_get: #{e}"
363
+ end
364
+ ```
365
+
366
+ ### Parameters
367
+
368
+ Name | Type | Description | Notes
369
+ ------------- | ------------- | ------------- | -------------
370
+ **page** | **Integer**| Page number | [optional] [default to 1]
371
+ **limit** | **Integer**| Number of records per page | [optional] [default to 10]
372
+
373
+ ### Return type
374
+
375
+ **String**
376
+
377
+ ### Authorization
378
+
379
+ [BasicAuth](../README.md#BasicAuth)
380
+
381
+ ### HTTP request headers
382
+
383
+ - **Content-Type**: application/json
384
+ - **Accept**: application/json
385
+
386
+
387
+
388
+ # **voice_receipts_post**
389
+ > String voice_receipts_post(url)
390
+
391
+ Add a delivery receipt
392
+
393
+ Add a delivery receipt
394
+
395
+ ### Example
396
+ ```ruby
397
+ # load the gem
398
+ require 'clicksend_client'
399
+ # setup authorization
400
+ ClickSendClient.configure do |config|
401
+ # Configure HTTP basic authorization: BasicAuth
402
+ config.username = 'YOUR USERNAME'
403
+ config.password = 'YOUR PASSWORD'
404
+ end
405
+
406
+ api_instance = ClickSendClient::VoiceApi.new
407
+
408
+ url = ClickSendClient::Url.new # Url | Url model
409
+
410
+
411
+ begin
412
+ #Add a delivery receipt
413
+ result = api_instance.voice_receipts_post(url)
414
+ p result
415
+ rescue ClickSendClient::ApiError => e
416
+ puts "Exception when calling VoiceApi->voice_receipts_post: #{e}"
417
+ end
418
+ ```
419
+
420
+ ### Parameters
421
+
422
+ Name | Type | Description | Notes
423
+ ------------- | ------------- | ------------- | -------------
424
+ **url** | [**Url**](Url.md)| Url model |
425
+
426
+ ### Return type
427
+
428
+ **String**
429
+
430
+ ### Authorization
431
+
432
+ [BasicAuth](../README.md#BasicAuth)
433
+
434
+ ### HTTP request headers
435
+
436
+ - **Content-Type**: application/json
437
+ - **Accept**: application/json
438
+
439
+
440
+
441
+ # **voice_receipts_read_put**
442
+ > String voice_receipts_read_put(opts)
443
+
444
+ Mark delivery receipts as read
445
+
446
+ Mark delivery receipts as read
447
+
448
+ ### Example
449
+ ```ruby
450
+ # load the gem
451
+ require 'clicksend_client'
452
+ # setup authorization
453
+ ClickSendClient.configure do |config|
454
+ # Configure HTTP basic authorization: BasicAuth
455
+ config.username = 'YOUR USERNAME'
456
+ config.password = 'YOUR PASSWORD'
457
+ end
458
+
459
+ api_instance = ClickSendClient::VoiceApi.new
460
+
461
+ opts = {
462
+ date_before: ClickSendClient::DateBefore.new # DateBefore | DateBefore model
463
+ }
464
+
465
+ begin
466
+ #Mark delivery receipts as read
467
+ result = api_instance.voice_receipts_read_put(opts)
468
+ p result
469
+ rescue ClickSendClient::ApiError => e
470
+ puts "Exception when calling VoiceApi->voice_receipts_read_put: #{e}"
471
+ end
472
+ ```
473
+
474
+ ### Parameters
475
+
476
+ Name | Type | Description | Notes
477
+ ------------- | ------------- | ------------- | -------------
478
+ **date_before** | [**DateBefore**](DateBefore.md)| DateBefore model | [optional]
479
+
480
+ ### Return type
481
+
482
+ **String**
483
+
484
+ ### Authorization
485
+
486
+ [BasicAuth](../README.md#BasicAuth)
487
+
488
+ ### HTTP request headers
489
+
490
+ - **Content-Type**: application/json
491
+ - **Accept**: application/json
492
+
493
+
494
+
495
+ # **voice_send_post**
496
+ > String voice_send_post(voice_messages)
497
+
498
+ Send voice message(s)
499
+
500
+ Send a voice call
501
+
502
+ ### Example
503
+ ```ruby
504
+ # load the gem
505
+ require 'clicksend_client'
506
+ # setup authorization
507
+ ClickSendClient.configure do |config|
508
+ # Configure HTTP basic authorization: BasicAuth
509
+ config.username = 'YOUR USERNAME'
510
+ config.password = 'YOUR PASSWORD'
511
+ end
512
+
513
+ api_instance = ClickSendClient::VoiceApi.new
514
+
515
+ voice_messages = ClickSendClient::VoiceMessageCollection.new # VoiceMessageCollection | VoiceMessageCollection model
516
+
517
+
518
+ begin
519
+ #Send voice message(s)
520
+ result = api_instance.voice_send_post(voice_messages)
521
+ p result
522
+ rescue ClickSendClient::ApiError => e
523
+ puts "Exception when calling VoiceApi->voice_send_post: #{e}"
524
+ end
525
+ ```
526
+
527
+ ### Parameters
528
+
529
+ Name | Type | Description | Notes
530
+ ------------- | ------------- | ------------- | -------------
531
+ **voice_messages** | [**VoiceMessageCollection**](VoiceMessageCollection.md)| VoiceMessageCollection model |
532
+
533
+ ### Return type
534
+
535
+ **String**
536
+
537
+ ### Authorization
538
+
539
+ [BasicAuth](../README.md#BasicAuth)
540
+
541
+ ### HTTP request headers
542
+
543
+ - **Content-Type**: application/json
544
+ - **Accept**: application/json
545
+
546
+
547
+