clicksend_client 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
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,9 @@
1
+ # ClickSendClient::EmailFrom
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **email_address_id** | **String** | Email address id of the recipient. |
7
+ **name** | **String** | Name of the recipient. | [optional]
8
+
9
+
@@ -0,0 +1,793 @@
1
+ # ClickSendClient::EmailMarketingApi
2
+
3
+ All URIs are relative to *https://rest.clicksend.com/v3*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**allowed_email_address_get**](EmailMarketingApi.md#allowed_email_address_get) | **GET** /email/addresses | Get all email addresses
8
+ [**allowed_email_address_post**](EmailMarketingApi.md#allowed_email_address_post) | **POST** /email/addresses | Create allowed Email Address
9
+ [**cancel_email_campaign_put**](EmailMarketingApi.md#cancel_email_campaign_put) | **PUT** /email-campaigns/{email_campaign_id}/cancel | Cancel email campaign
10
+ [**email_campaign_get**](EmailMarketingApi.md#email_campaign_get) | **GET** /email-campaigns/{email_campaign_id} | Get specific email campaign
11
+ [**email_campaign_history_export_get**](EmailMarketingApi.md#email_campaign_history_export_get) | **GET** /email-campaigns/{email_campaign_id}/history/export | Export specific email campaign history
12
+ [**email_campaign_history_get**](EmailMarketingApi.md#email_campaign_history_get) | **GET** /email-campaigns/{email_campaign_id}/history | Get specific email campaign history
13
+ [**email_campaign_post**](EmailMarketingApi.md#email_campaign_post) | **POST** /email-campaigns/send | Send email campaign
14
+ [**email_campaign_price_post**](EmailMarketingApi.md#email_campaign_price_post) | **POST** /email-campaigns/price | Calculate email campaign price
15
+ [**email_campaign_put**](EmailMarketingApi.md#email_campaign_put) | **PUT** /email-campaigns/{email_campaign_id} | Edit email campaign
16
+ [**email_campaigns_get**](EmailMarketingApi.md#email_campaigns_get) | **GET** /email-campaigns | Get all email campaigns
17
+ [**send_verification_token_get**](EmailMarketingApi.md#send_verification_token_get) | **PUT** /email/address-verify/{email_address_id}/send | Send verification token
18
+ [**specific_allowed_email_address_delete**](EmailMarketingApi.md#specific_allowed_email_address_delete) | **DELETE** /email/addresses/{email_address_id} | Delete specific email address
19
+ [**specific_allowed_email_address_get**](EmailMarketingApi.md#specific_allowed_email_address_get) | **GET** /email/addresses/{email_address_id} | Get specific email address
20
+ [**verify_allowed_email_address_get**](EmailMarketingApi.md#verify_allowed_email_address_get) | **PUT** /email/address-verify/{email_address_id}/verify/{activation_token} | Verify email address using verification token
21
+
22
+
23
+ # **allowed_email_address_get**
24
+ > String allowed_email_address_get(opts)
25
+
26
+ Get all email addresses
27
+
28
+ Get all email addresses
29
+
30
+ ### Example
31
+ ```ruby
32
+ # load the gem
33
+ require 'clicksend_client'
34
+ # setup authorization
35
+ ClickSendClient.configure do |config|
36
+ # Configure HTTP basic authorization: BasicAuth
37
+ config.username = 'YOUR USERNAME'
38
+ config.password = 'YOUR PASSWORD'
39
+ end
40
+
41
+ api_instance = ClickSendClient::EmailMarketingApi.new
42
+
43
+ opts = {
44
+ page: 1, # Integer | Page number
45
+ limit: 10 # Integer | Number of records per page
46
+ }
47
+
48
+ begin
49
+ #Get all email addresses
50
+ result = api_instance.allowed_email_address_get(opts)
51
+ p result
52
+ rescue ClickSendClient::ApiError => e
53
+ puts "Exception when calling EmailMarketingApi->allowed_email_address_get: #{e}"
54
+ end
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+ Name | Type | Description | Notes
60
+ ------------- | ------------- | ------------- | -------------
61
+ **page** | **Integer**| Page number | [optional] [default to 1]
62
+ **limit** | **Integer**| Number of records per page | [optional] [default to 10]
63
+
64
+ ### Return type
65
+
66
+ **String**
67
+
68
+ ### Authorization
69
+
70
+ [BasicAuth](../README.md#BasicAuth)
71
+
72
+ ### HTTP request headers
73
+
74
+ - **Content-Type**: application/json
75
+ - **Accept**: application/json
76
+
77
+
78
+
79
+ # **allowed_email_address_post**
80
+ > String allowed_email_address_post(opts)
81
+
82
+ Create allowed Email Address
83
+
84
+ Create allowed Email Address
85
+
86
+ ### Example
87
+ ```ruby
88
+ # load the gem
89
+ require 'clicksend_client'
90
+ # setup authorization
91
+ ClickSendClient.configure do |config|
92
+ # Configure HTTP basic authorization: BasicAuth
93
+ config.username = 'YOUR USERNAME'
94
+ config.password = 'YOUR PASSWORD'
95
+ end
96
+
97
+ api_instance = ClickSendClient::EmailMarketingApi.new
98
+
99
+ opts = {
100
+ email_address: ClickSendClient::EmailAddress.new # EmailAddress |
101
+ }
102
+
103
+ begin
104
+ #Create allowed Email Address
105
+ result = api_instance.allowed_email_address_post(opts)
106
+ p result
107
+ rescue ClickSendClient::ApiError => e
108
+ puts "Exception when calling EmailMarketingApi->allowed_email_address_post: #{e}"
109
+ end
110
+ ```
111
+
112
+ ### Parameters
113
+
114
+ Name | Type | Description | Notes
115
+ ------------- | ------------- | ------------- | -------------
116
+ **email_address** | [**EmailAddress**](EmailAddress.md)| | [optional]
117
+
118
+ ### Return type
119
+
120
+ **String**
121
+
122
+ ### Authorization
123
+
124
+ [BasicAuth](../README.md#BasicAuth)
125
+
126
+ ### HTTP request headers
127
+
128
+ - **Content-Type**: application/json
129
+ - **Accept**: application/json
130
+
131
+
132
+
133
+ # **cancel_email_campaign_put**
134
+ > String cancel_email_campaign_put(email_campaign_id)
135
+
136
+ Cancel email campaign
137
+
138
+ Cancel email campaign
139
+
140
+ ### Example
141
+ ```ruby
142
+ # load the gem
143
+ require 'clicksend_client'
144
+ # setup authorization
145
+ ClickSendClient.configure do |config|
146
+ # Configure HTTP basic authorization: BasicAuth
147
+ config.username = 'YOUR USERNAME'
148
+ config.password = 'YOUR PASSWORD'
149
+ end
150
+
151
+ api_instance = ClickSendClient::EmailMarketingApi.new
152
+
153
+ email_campaign_id = 56 # Integer | Allowed email campaign id
154
+
155
+
156
+ begin
157
+ #Cancel email campaign
158
+ result = api_instance.cancel_email_campaign_put(email_campaign_id)
159
+ p result
160
+ rescue ClickSendClient::ApiError => e
161
+ puts "Exception when calling EmailMarketingApi->cancel_email_campaign_put: #{e}"
162
+ end
163
+ ```
164
+
165
+ ### Parameters
166
+
167
+ Name | Type | Description | Notes
168
+ ------------- | ------------- | ------------- | -------------
169
+ **email_campaign_id** | **Integer**| Allowed email campaign id |
170
+
171
+ ### Return type
172
+
173
+ **String**
174
+
175
+ ### Authorization
176
+
177
+ [BasicAuth](../README.md#BasicAuth)
178
+
179
+ ### HTTP request headers
180
+
181
+ - **Content-Type**: application/json
182
+ - **Accept**: application/json
183
+
184
+
185
+
186
+ # **email_campaign_get**
187
+ > String email_campaign_get(email_campaign_id)
188
+
189
+ Get specific email campaign
190
+
191
+ Get specific email campaign
192
+
193
+ ### Example
194
+ ```ruby
195
+ # load the gem
196
+ require 'clicksend_client'
197
+ # setup authorization
198
+ ClickSendClient.configure do |config|
199
+ # Configure HTTP basic authorization: BasicAuth
200
+ config.username = 'YOUR USERNAME'
201
+ config.password = 'YOUR PASSWORD'
202
+ end
203
+
204
+ api_instance = ClickSendClient::EmailMarketingApi.new
205
+
206
+ email_campaign_id = 56 # Integer | Allowed email campaign id
207
+
208
+
209
+ begin
210
+ #Get specific email campaign
211
+ result = api_instance.email_campaign_get(email_campaign_id)
212
+ p result
213
+ rescue ClickSendClient::ApiError => e
214
+ puts "Exception when calling EmailMarketingApi->email_campaign_get: #{e}"
215
+ end
216
+ ```
217
+
218
+ ### Parameters
219
+
220
+ Name | Type | Description | Notes
221
+ ------------- | ------------- | ------------- | -------------
222
+ **email_campaign_id** | **Integer**| Allowed email campaign id |
223
+
224
+ ### Return type
225
+
226
+ **String**
227
+
228
+ ### Authorization
229
+
230
+ [BasicAuth](../README.md#BasicAuth)
231
+
232
+ ### HTTP request headers
233
+
234
+ - **Content-Type**: application/json
235
+ - **Accept**: application/json
236
+
237
+
238
+
239
+ # **email_campaign_history_export_get**
240
+ > String email_campaign_history_export_get(email_campaign_id, opts)
241
+
242
+ Export specific email campaign history
243
+
244
+ Export specific email campaign history
245
+
246
+ ### Example
247
+ ```ruby
248
+ # load the gem
249
+ require 'clicksend_client'
250
+ # setup authorization
251
+ ClickSendClient.configure do |config|
252
+ # Configure HTTP basic authorization: BasicAuth
253
+ config.username = 'YOUR USERNAME'
254
+ config.password = 'YOUR PASSWORD'
255
+ end
256
+
257
+ api_instance = ClickSendClient::EmailMarketingApi.new
258
+
259
+ email_campaign_id = 56 # Integer | Allowed email campaign id
260
+
261
+ opts = {
262
+ date_from: 56, # Integer | Start date
263
+ date_to: 56 # Integer | End date
264
+ }
265
+
266
+ begin
267
+ #Export specific email campaign history
268
+ result = api_instance.email_campaign_history_export_get(email_campaign_id, opts)
269
+ p result
270
+ rescue ClickSendClient::ApiError => e
271
+ puts "Exception when calling EmailMarketingApi->email_campaign_history_export_get: #{e}"
272
+ end
273
+ ```
274
+
275
+ ### Parameters
276
+
277
+ Name | Type | Description | Notes
278
+ ------------- | ------------- | ------------- | -------------
279
+ **email_campaign_id** | **Integer**| Allowed email campaign id |
280
+ **date_from** | **Integer**| Start date | [optional]
281
+ **date_to** | **Integer**| End date | [optional]
282
+
283
+ ### Return type
284
+
285
+ **String**
286
+
287
+ ### Authorization
288
+
289
+ [BasicAuth](../README.md#BasicAuth)
290
+
291
+ ### HTTP request headers
292
+
293
+ - **Content-Type**: application/json
294
+ - **Accept**: application/json
295
+
296
+
297
+
298
+ # **email_campaign_history_get**
299
+ > String email_campaign_history_get(email_campaign_id, opts)
300
+
301
+ Get specific email campaign history
302
+
303
+ Get specific email campaign history
304
+
305
+ ### Example
306
+ ```ruby
307
+ # load the gem
308
+ require 'clicksend_client'
309
+ # setup authorization
310
+ ClickSendClient.configure do |config|
311
+ # Configure HTTP basic authorization: BasicAuth
312
+ config.username = 'YOUR USERNAME'
313
+ config.password = 'YOUR PASSWORD'
314
+ end
315
+
316
+ api_instance = ClickSendClient::EmailMarketingApi.new
317
+
318
+ email_campaign_id = 56 # Integer | Allowed email campaign id
319
+
320
+ opts = {
321
+ date_from: 56, # Integer | Start date
322
+ date_to: 56, # Integer | End date
323
+ page: 1, # Integer | Page number
324
+ limit: 10 # Integer | Number of records per page
325
+ }
326
+
327
+ begin
328
+ #Get specific email campaign history
329
+ result = api_instance.email_campaign_history_get(email_campaign_id, opts)
330
+ p result
331
+ rescue ClickSendClient::ApiError => e
332
+ puts "Exception when calling EmailMarketingApi->email_campaign_history_get: #{e}"
333
+ end
334
+ ```
335
+
336
+ ### Parameters
337
+
338
+ Name | Type | Description | Notes
339
+ ------------- | ------------- | ------------- | -------------
340
+ **email_campaign_id** | **Integer**| Allowed email campaign id |
341
+ **date_from** | **Integer**| Start date | [optional]
342
+ **date_to** | **Integer**| End date | [optional]
343
+ **page** | **Integer**| Page number | [optional] [default to 1]
344
+ **limit** | **Integer**| Number of records per page | [optional] [default to 10]
345
+
346
+ ### Return type
347
+
348
+ **String**
349
+
350
+ ### Authorization
351
+
352
+ [BasicAuth](../README.md#BasicAuth)
353
+
354
+ ### HTTP request headers
355
+
356
+ - **Content-Type**: application/json
357
+ - **Accept**: application/json
358
+
359
+
360
+
361
+ # **email_campaign_post**
362
+ > String email_campaign_post(email_campaign)
363
+
364
+ Send email campaign
365
+
366
+ Send email campaign
367
+
368
+ ### Example
369
+ ```ruby
370
+ # load the gem
371
+ require 'clicksend_client'
372
+ # setup authorization
373
+ ClickSendClient.configure do |config|
374
+ # Configure HTTP basic authorization: BasicAuth
375
+ config.username = 'YOUR USERNAME'
376
+ config.password = 'YOUR PASSWORD'
377
+ end
378
+
379
+ api_instance = ClickSendClient::EmailMarketingApi.new
380
+
381
+ email_campaign = ClickSendClient::EmailCampaign.new # EmailCampaign | Email model
382
+
383
+
384
+ begin
385
+ #Send email campaign
386
+ result = api_instance.email_campaign_post(email_campaign)
387
+ p result
388
+ rescue ClickSendClient::ApiError => e
389
+ puts "Exception when calling EmailMarketingApi->email_campaign_post: #{e}"
390
+ end
391
+ ```
392
+
393
+ ### Parameters
394
+
395
+ Name | Type | Description | Notes
396
+ ------------- | ------------- | ------------- | -------------
397
+ **email_campaign** | [**EmailCampaign**](EmailCampaign.md)| Email model |
398
+
399
+ ### Return type
400
+
401
+ **String**
402
+
403
+ ### Authorization
404
+
405
+ [BasicAuth](../README.md#BasicAuth)
406
+
407
+ ### HTTP request headers
408
+
409
+ - **Content-Type**: application/json
410
+ - **Accept**: application/json
411
+
412
+
413
+
414
+ # **email_campaign_price_post**
415
+ > String email_campaign_price_post(email_campaign)
416
+
417
+ Calculate email campaign price
418
+
419
+ Calculate email campaign price
420
+
421
+ ### Example
422
+ ```ruby
423
+ # load the gem
424
+ require 'clicksend_client'
425
+ # setup authorization
426
+ ClickSendClient.configure do |config|
427
+ # Configure HTTP basic authorization: BasicAuth
428
+ config.username = 'YOUR USERNAME'
429
+ config.password = 'YOUR PASSWORD'
430
+ end
431
+
432
+ api_instance = ClickSendClient::EmailMarketingApi.new
433
+
434
+ email_campaign = ClickSendClient::EmailCampaign.new # EmailCampaign | Email model
435
+
436
+
437
+ begin
438
+ #Calculate email campaign price
439
+ result = api_instance.email_campaign_price_post(email_campaign)
440
+ p result
441
+ rescue ClickSendClient::ApiError => e
442
+ puts "Exception when calling EmailMarketingApi->email_campaign_price_post: #{e}"
443
+ end
444
+ ```
445
+
446
+ ### Parameters
447
+
448
+ Name | Type | Description | Notes
449
+ ------------- | ------------- | ------------- | -------------
450
+ **email_campaign** | [**EmailCampaign**](EmailCampaign.md)| Email model |
451
+
452
+ ### Return type
453
+
454
+ **String**
455
+
456
+ ### Authorization
457
+
458
+ [BasicAuth](../README.md#BasicAuth)
459
+
460
+ ### HTTP request headers
461
+
462
+ - **Content-Type**: application/json
463
+ - **Accept**: application/json
464
+
465
+
466
+
467
+ # **email_campaign_put**
468
+ > String email_campaign_put(email_campaign_id, email_campaign)
469
+
470
+ Edit email campaign
471
+
472
+ Edit email campaign
473
+
474
+ ### Example
475
+ ```ruby
476
+ # load the gem
477
+ require 'clicksend_client'
478
+ # setup authorization
479
+ ClickSendClient.configure do |config|
480
+ # Configure HTTP basic authorization: BasicAuth
481
+ config.username = 'YOUR USERNAME'
482
+ config.password = 'YOUR PASSWORD'
483
+ end
484
+
485
+ api_instance = ClickSendClient::EmailMarketingApi.new
486
+
487
+ email_campaign_id = 56 # Integer | Allowed email campaign id
488
+
489
+ email_campaign = ClickSendClient::EmailCampaign.new # EmailCampaign | Email model
490
+
491
+
492
+ begin
493
+ #Edit email campaign
494
+ result = api_instance.email_campaign_put(email_campaign_id, email_campaign)
495
+ p result
496
+ rescue ClickSendClient::ApiError => e
497
+ puts "Exception when calling EmailMarketingApi->email_campaign_put: #{e}"
498
+ end
499
+ ```
500
+
501
+ ### Parameters
502
+
503
+ Name | Type | Description | Notes
504
+ ------------- | ------------- | ------------- | -------------
505
+ **email_campaign_id** | **Integer**| Allowed email campaign id |
506
+ **email_campaign** | [**EmailCampaign**](EmailCampaign.md)| Email model |
507
+
508
+ ### Return type
509
+
510
+ **String**
511
+
512
+ ### Authorization
513
+
514
+ [BasicAuth](../README.md#BasicAuth)
515
+
516
+ ### HTTP request headers
517
+
518
+ - **Content-Type**: application/json
519
+ - **Accept**: application/json
520
+
521
+
522
+
523
+ # **email_campaigns_get**
524
+ > String email_campaigns_get(opts)
525
+
526
+ Get all email campaigns
527
+
528
+ Get all email campaigns
529
+
530
+ ### Example
531
+ ```ruby
532
+ # load the gem
533
+ require 'clicksend_client'
534
+ # setup authorization
535
+ ClickSendClient.configure do |config|
536
+ # Configure HTTP basic authorization: BasicAuth
537
+ config.username = 'YOUR USERNAME'
538
+ config.password = 'YOUR PASSWORD'
539
+ end
540
+
541
+ api_instance = ClickSendClient::EmailMarketingApi.new
542
+
543
+ opts = {
544
+ page: 1, # Integer | Page number
545
+ limit: 10 # Integer | Number of records per page
546
+ }
547
+
548
+ begin
549
+ #Get all email campaigns
550
+ result = api_instance.email_campaigns_get(opts)
551
+ p result
552
+ rescue ClickSendClient::ApiError => e
553
+ puts "Exception when calling EmailMarketingApi->email_campaigns_get: #{e}"
554
+ end
555
+ ```
556
+
557
+ ### Parameters
558
+
559
+ Name | Type | Description | Notes
560
+ ------------- | ------------- | ------------- | -------------
561
+ **page** | **Integer**| Page number | [optional] [default to 1]
562
+ **limit** | **Integer**| Number of records per page | [optional] [default to 10]
563
+
564
+ ### Return type
565
+
566
+ **String**
567
+
568
+ ### Authorization
569
+
570
+ [BasicAuth](../README.md#BasicAuth)
571
+
572
+ ### HTTP request headers
573
+
574
+ - **Content-Type**: application/json
575
+ - **Accept**: application/json
576
+
577
+
578
+
579
+ # **send_verification_token_get**
580
+ > String send_verification_token_get(email_address_id)
581
+
582
+ Send verification token
583
+
584
+ Send verification token
585
+
586
+ ### Example
587
+ ```ruby
588
+ # load the gem
589
+ require 'clicksend_client'
590
+ # setup authorization
591
+ ClickSendClient.configure do |config|
592
+ # Configure HTTP basic authorization: BasicAuth
593
+ config.username = 'YOUR USERNAME'
594
+ config.password = 'YOUR PASSWORD'
595
+ end
596
+
597
+ api_instance = ClickSendClient::EmailMarketingApi.new
598
+
599
+ email_address_id = 56 # Integer | Allowed email address id
600
+
601
+
602
+ begin
603
+ #Send verification token
604
+ result = api_instance.send_verification_token_get(email_address_id)
605
+ p result
606
+ rescue ClickSendClient::ApiError => e
607
+ puts "Exception when calling EmailMarketingApi->send_verification_token_get: #{e}"
608
+ end
609
+ ```
610
+
611
+ ### Parameters
612
+
613
+ Name | Type | Description | Notes
614
+ ------------- | ------------- | ------------- | -------------
615
+ **email_address_id** | **Integer**| Allowed email address id |
616
+
617
+ ### Return type
618
+
619
+ **String**
620
+
621
+ ### Authorization
622
+
623
+ [BasicAuth](../README.md#BasicAuth)
624
+
625
+ ### HTTP request headers
626
+
627
+ - **Content-Type**: application/json
628
+ - **Accept**: application/json
629
+
630
+
631
+
632
+ # **specific_allowed_email_address_delete**
633
+ > String specific_allowed_email_address_delete(email_address_id)
634
+
635
+ Delete specific email address
636
+
637
+ Delete specific email address
638
+
639
+ ### Example
640
+ ```ruby
641
+ # load the gem
642
+ require 'clicksend_client'
643
+ # setup authorization
644
+ ClickSendClient.configure do |config|
645
+ # Configure HTTP basic authorization: BasicAuth
646
+ config.username = 'YOUR USERNAME'
647
+ config.password = 'YOUR PASSWORD'
648
+ end
649
+
650
+ api_instance = ClickSendClient::EmailMarketingApi.new
651
+
652
+ email_address_id = 56 # Integer | Allowed email address id
653
+
654
+
655
+ begin
656
+ #Delete specific email address
657
+ result = api_instance.specific_allowed_email_address_delete(email_address_id)
658
+ p result
659
+ rescue ClickSendClient::ApiError => e
660
+ puts "Exception when calling EmailMarketingApi->specific_allowed_email_address_delete: #{e}"
661
+ end
662
+ ```
663
+
664
+ ### Parameters
665
+
666
+ Name | Type | Description | Notes
667
+ ------------- | ------------- | ------------- | -------------
668
+ **email_address_id** | **Integer**| Allowed email address id |
669
+
670
+ ### Return type
671
+
672
+ **String**
673
+
674
+ ### Authorization
675
+
676
+ [BasicAuth](../README.md#BasicAuth)
677
+
678
+ ### HTTP request headers
679
+
680
+ - **Content-Type**: application/json
681
+ - **Accept**: application/json
682
+
683
+
684
+
685
+ # **specific_allowed_email_address_get**
686
+ > String specific_allowed_email_address_get(email_address_id)
687
+
688
+ Get specific email address
689
+
690
+ Get specific email address
691
+
692
+ ### Example
693
+ ```ruby
694
+ # load the gem
695
+ require 'clicksend_client'
696
+ # setup authorization
697
+ ClickSendClient.configure do |config|
698
+ # Configure HTTP basic authorization: BasicAuth
699
+ config.username = 'YOUR USERNAME'
700
+ config.password = 'YOUR PASSWORD'
701
+ end
702
+
703
+ api_instance = ClickSendClient::EmailMarketingApi.new
704
+
705
+ email_address_id = 56 # Integer | Allowed email address id
706
+
707
+
708
+ begin
709
+ #Get specific email address
710
+ result = api_instance.specific_allowed_email_address_get(email_address_id)
711
+ p result
712
+ rescue ClickSendClient::ApiError => e
713
+ puts "Exception when calling EmailMarketingApi->specific_allowed_email_address_get: #{e}"
714
+ end
715
+ ```
716
+
717
+ ### Parameters
718
+
719
+ Name | Type | Description | Notes
720
+ ------------- | ------------- | ------------- | -------------
721
+ **email_address_id** | **Integer**| Allowed email address id |
722
+
723
+ ### Return type
724
+
725
+ **String**
726
+
727
+ ### Authorization
728
+
729
+ [BasicAuth](../README.md#BasicAuth)
730
+
731
+ ### HTTP request headers
732
+
733
+ - **Content-Type**: application/json
734
+ - **Accept**: application/json
735
+
736
+
737
+
738
+ # **verify_allowed_email_address_get**
739
+ > String verify_allowed_email_address_get(email_address_id, activation_token)
740
+
741
+ Verify email address using verification token
742
+
743
+ Verify email address using verification token
744
+
745
+ ### Example
746
+ ```ruby
747
+ # load the gem
748
+ require 'clicksend_client'
749
+ # setup authorization
750
+ ClickSendClient.configure do |config|
751
+ # Configure HTTP basic authorization: BasicAuth
752
+ config.username = 'YOUR USERNAME'
753
+ config.password = 'YOUR PASSWORD'
754
+ end
755
+
756
+ api_instance = ClickSendClient::EmailMarketingApi.new
757
+
758
+ email_address_id = 56 # Integer | Allowed email address id
759
+
760
+ activation_token = 'activation_token_example' # String | Your activation token.
761
+
762
+
763
+ begin
764
+ #Verify email address using verification token
765
+ result = api_instance.verify_allowed_email_address_get(email_address_id, activation_token)
766
+ p result
767
+ rescue ClickSendClient::ApiError => e
768
+ puts "Exception when calling EmailMarketingApi->verify_allowed_email_address_get: #{e}"
769
+ end
770
+ ```
771
+
772
+ ### Parameters
773
+
774
+ Name | Type | Description | Notes
775
+ ------------- | ------------- | ------------- | -------------
776
+ **email_address_id** | **Integer**| Allowed email address id |
777
+ **activation_token** | **String**| Your activation token. |
778
+
779
+ ### Return type
780
+
781
+ **String**
782
+
783
+ ### Authorization
784
+
785
+ [BasicAuth](../README.md#BasicAuth)
786
+
787
+ ### HTTP request headers
788
+
789
+ - **Content-Type**: application/json
790
+ - **Accept**: application/json
791
+
792
+
793
+