clicksend_client 1.0.2 → 5.0.75

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +9 -3
  4. data/clicksend_client.gemspec +4 -3
  5. data/docs/ContactApi.md +60 -0
  6. data/docs/InboundSMSRule.md +1 -0
  7. data/docs/MMSApi.md +117 -0
  8. data/docs/MmsMessage.md +1 -1
  9. data/docs/SmsCampaign.md +1 -0
  10. data/docs/SmsMessage.md +1 -1
  11. data/docs/VoiceMessage.md +1 -1
  12. data/lib/clicksend_client/api/account_api.rb +1 -1
  13. data/lib/clicksend_client/api/account_recharge_api.rb +1 -1
  14. data/lib/clicksend_client/api/contact_api.rb +67 -1
  15. data/lib/clicksend_client/api/contact_list_api.rb +1 -1
  16. data/lib/clicksend_client/api/countries_api.rb +1 -1
  17. data/lib/clicksend_client/api/delivery_issues_api.rb +1 -1
  18. data/lib/clicksend_client/api/detect_address_api.rb +1 -1
  19. data/lib/clicksend_client/api/email_delivery_receipt_rules_api.rb +1 -1
  20. data/lib/clicksend_client/api/email_marketing_api.rb +1 -1
  21. data/lib/clicksend_client/api/email_to_sms_api.rb +1 -1
  22. data/lib/clicksend_client/api/fax_api.rb +1 -1
  23. data/lib/clicksend_client/api/fax_delivery_receipt_rules_api.rb +1 -1
  24. data/lib/clicksend_client/api/inbound_fax_rules_api.rb +1 -1
  25. data/lib/clicksend_client/api/inbound_sms_rules_api.rb +1 -1
  26. data/lib/clicksend_client/api/master_email_templates_api.rb +1 -1
  27. data/lib/clicksend_client/api/mms_api.rb +127 -1
  28. data/lib/clicksend_client/api/mms_campaign_api.rb +1 -1
  29. data/lib/clicksend_client/api/number_api.rb +1 -1
  30. data/lib/clicksend_client/api/post_letter_api.rb +1 -1
  31. data/lib/clicksend_client/api/post_postcard_api.rb +1 -1
  32. data/lib/clicksend_client/api/post_return_address_api.rb +1 -1
  33. data/lib/clicksend_client/api/referral_account_api.rb +1 -1
  34. data/lib/clicksend_client/api/reseller_account_api.rb +1 -1
  35. data/lib/clicksend_client/api/search_api.rb +1 -1
  36. data/lib/clicksend_client/api/sms_api.rb +1 -1
  37. data/lib/clicksend_client/api/sms_campaign_api.rb +1 -1
  38. data/lib/clicksend_client/api/sms_delivery_receipt_rules_api.rb +1 -1
  39. data/lib/clicksend_client/api/statistics_api.rb +1 -1
  40. data/lib/clicksend_client/api/subaccount_api.rb +1 -1
  41. data/lib/clicksend_client/api/timezones_api.rb +1 -1
  42. data/lib/clicksend_client/api/transactional_email_api.rb +1 -1
  43. data/lib/clicksend_client/api/transfer_credit_api.rb +1 -1
  44. data/lib/clicksend_client/api/upload_api.rb +1 -1
  45. data/lib/clicksend_client/api/user_email_templates_api.rb +1 -1
  46. data/lib/clicksend_client/api/voice_api.rb +1 -1
  47. data/lib/clicksend_client/api/voice_delivery_receipt_rules_api.rb +1 -1
  48. data/lib/clicksend_client/api_client.rb +6 -4
  49. data/lib/clicksend_client/api_error.rb +1 -1
  50. data/lib/clicksend_client/configuration.rb +3 -3
  51. data/lib/clicksend_client/models/account.rb +3 -2
  52. data/lib/clicksend_client/models/account_forgot_password_verify.rb +3 -2
  53. data/lib/clicksend_client/models/account_verify.rb +3 -2
  54. data/lib/clicksend_client/models/address.rb +3 -2
  55. data/lib/clicksend_client/models/attachment.rb +3 -2
  56. data/lib/clicksend_client/models/contact.rb +3 -2
  57. data/lib/clicksend_client/models/contact_list.rb +3 -2
  58. data/lib/clicksend_client/models/contact_list_import.rb +3 -2
  59. data/lib/clicksend_client/models/credit_card.rb +3 -2
  60. data/lib/clicksend_client/models/date_before.rb +4 -3
  61. data/lib/clicksend_client/models/delivery_issue.rb +3 -2
  62. data/lib/clicksend_client/models/delivery_receipt_rule.rb +3 -2
  63. data/lib/clicksend_client/models/email.rb +3 -2
  64. data/lib/clicksend_client/models/email_address.rb +3 -2
  65. data/lib/clicksend_client/models/email_campaign.rb +3 -2
  66. data/lib/clicksend_client/models/email_from.rb +3 -2
  67. data/lib/clicksend_client/models/email_recipient.rb +3 -2
  68. data/lib/clicksend_client/models/email_sms_address.rb +3 -2
  69. data/lib/clicksend_client/models/email_template_new.rb +3 -2
  70. data/lib/clicksend_client/models/email_template_update.rb +3 -2
  71. data/lib/clicksend_client/models/fax_message.rb +3 -2
  72. data/lib/clicksend_client/models/fax_message_collection.rb +3 -2
  73. data/lib/clicksend_client/models/fields.rb +3 -2
  74. data/lib/clicksend_client/models/fields_fields.rb +3 -2
  75. data/lib/clicksend_client/models/forgot_password.rb +3 -2
  76. data/lib/clicksend_client/models/forgot_username.rb +3 -2
  77. data/lib/clicksend_client/models/inbound_fax_rule.rb +3 -2
  78. data/lib/clicksend_client/models/inbound_sms_rule.rb +17 -6
  79. data/lib/clicksend_client/models/mms_campaign.rb +3 -2
  80. data/lib/clicksend_client/models/mms_message.rb +3 -7
  81. data/lib/clicksend_client/models/mms_message_collection.rb +3 -2
  82. data/lib/clicksend_client/models/post_letter.rb +3 -2
  83. data/lib/clicksend_client/models/post_postcard.rb +3 -2
  84. data/lib/clicksend_client/models/post_recipient.rb +3 -2
  85. data/lib/clicksend_client/models/reseller_account.rb +3 -2
  86. data/lib/clicksend_client/models/reseller_account_transfer_credit.rb +3 -2
  87. data/lib/clicksend_client/models/sms_campaign.rb +17 -6
  88. data/lib/clicksend_client/models/sms_message.rb +3 -7
  89. data/lib/clicksend_client/models/sms_message_collection.rb +3 -2
  90. data/lib/clicksend_client/models/sms_template.rb +3 -2
  91. data/lib/clicksend_client/models/stripped_string.rb +3 -2
  92. data/lib/clicksend_client/models/subaccount.rb +3 -2
  93. data/lib/clicksend_client/models/upload_file.rb +3 -2
  94. data/lib/clicksend_client/models/url.rb +3 -2
  95. data/lib/clicksend_client/models/voice_message.rb +3 -7
  96. data/lib/clicksend_client/models/voice_message_collection.rb +3 -2
  97. data/lib/clicksend_client/version.rb +2 -2
  98. data/lib/clicksend_client.rb +1 -1
  99. data/spec/api/account_api_spec.rb +1 -1
  100. data/spec/api/account_recharge_api_spec.rb +1 -1
  101. data/spec/api/contact_api_spec.rb +15 -1
  102. data/spec/api/contact_list_api_spec.rb +1 -1
  103. data/spec/api/countries_api_spec.rb +1 -1
  104. data/spec/api/delivery_issues_api_spec.rb +1 -1
  105. data/spec/api/detect_address_api_spec.rb +1 -1
  106. data/spec/api/email_delivery_receipt_rules_api_spec.rb +1 -1
  107. data/spec/api/email_marketing_api_spec.rb +1 -1
  108. data/spec/api/email_to_sms_api_spec.rb +1 -1
  109. data/spec/api/fax_api_spec.rb +1 -1
  110. data/spec/api/fax_delivery_receipt_rules_api_spec.rb +1 -1
  111. data/spec/api/inbound_fax_rules_api_spec.rb +1 -1
  112. data/spec/api/inbound_sms_rules_api_spec.rb +1 -1
  113. data/spec/api/master_email_templates_api_spec.rb +1 -1
  114. data/spec/api/mms_api_spec.rb +29 -1
  115. data/spec/api/mms_campaign_api_spec.rb +1 -1
  116. data/spec/api/number_api_spec.rb +1 -1
  117. data/spec/api/post_letter_api_spec.rb +1 -1
  118. data/spec/api/post_postcard_api_spec.rb +1 -1
  119. data/spec/api/post_return_address_api_spec.rb +1 -1
  120. data/spec/api/referral_account_api_spec.rb +1 -1
  121. data/spec/api/reseller_account_api_spec.rb +1 -1
  122. data/spec/api/search_api_spec.rb +1 -1
  123. data/spec/api/sms_api_spec.rb +1 -1
  124. data/spec/api/sms_campaign_api_spec.rb +1 -1
  125. data/spec/api/sms_delivery_receipt_rules_api_spec.rb +1 -1
  126. data/spec/api/statistics_api_spec.rb +1 -1
  127. data/spec/api/subaccount_api_spec.rb +1 -1
  128. data/spec/api/timezones_api_spec.rb +1 -1
  129. data/spec/api/transactional_email_api_spec.rb +1 -1
  130. data/spec/api/transfer_credit_api_spec.rb +1 -1
  131. data/spec/api/upload_api_spec.rb +1 -1
  132. data/spec/api/user_email_templates_api_spec.rb +1 -1
  133. data/spec/api/voice_api_spec.rb +1 -1
  134. data/spec/api/voice_delivery_receipt_rules_api_spec.rb +1 -1
  135. data/spec/api_client_spec.rb +18 -1
  136. data/spec/configuration_spec.rb +1 -1
  137. data/spec/models/account_forgot_password_verify_spec.rb +1 -1
  138. data/spec/models/account_spec.rb +1 -1
  139. data/spec/models/account_verify_spec.rb +1 -1
  140. data/spec/models/address_spec.rb +1 -1
  141. data/spec/models/attachment_spec.rb +1 -1
  142. data/spec/models/contact_list_import_spec.rb +1 -1
  143. data/spec/models/contact_list_spec.rb +1 -1
  144. data/spec/models/contact_spec.rb +1 -1
  145. data/spec/models/credit_card_spec.rb +1 -1
  146. data/spec/models/date_before_spec.rb +1 -1
  147. data/spec/models/delivery_issue_spec.rb +1 -1
  148. data/spec/models/delivery_receipt_rule_spec.rb +1 -1
  149. data/spec/models/email_address_spec.rb +1 -1
  150. data/spec/models/email_campaign_spec.rb +1 -1
  151. data/spec/models/email_from_spec.rb +1 -1
  152. data/spec/models/email_recipient_spec.rb +1 -1
  153. data/spec/models/email_sms_address_spec.rb +1 -1
  154. data/spec/models/email_spec.rb +1 -1
  155. data/spec/models/email_template_new_spec.rb +1 -1
  156. data/spec/models/email_template_update_spec.rb +1 -1
  157. data/spec/models/fax_message_collection_spec.rb +1 -1
  158. data/spec/models/fax_message_spec.rb +1 -1
  159. data/spec/models/fields_fields_spec.rb +1 -1
  160. data/spec/models/fields_spec.rb +1 -1
  161. data/spec/models/forgot_password_spec.rb +1 -1
  162. data/spec/models/forgot_username_spec.rb +1 -1
  163. data/spec/models/inbound_fax_rule_spec.rb +1 -1
  164. data/spec/models/inbound_sms_rule_spec.rb +7 -1
  165. data/spec/models/mms_campaign_spec.rb +1 -1
  166. data/spec/models/mms_message_collection_spec.rb +1 -1
  167. data/spec/models/mms_message_spec.rb +1 -1
  168. data/spec/models/post_letter_spec.rb +1 -1
  169. data/spec/models/post_postcard_spec.rb +1 -1
  170. data/spec/models/post_recipient_spec.rb +1 -1
  171. data/spec/models/reseller_account_spec.rb +1 -1
  172. data/spec/models/reseller_account_transfer_credit_spec.rb +1 -1
  173. data/spec/models/sms_campaign_spec.rb +7 -1
  174. data/spec/models/sms_message_collection_spec.rb +1 -1
  175. data/spec/models/sms_message_spec.rb +1 -1
  176. data/spec/models/sms_template_spec.rb +1 -1
  177. data/spec/models/stripped_string_spec.rb +1 -1
  178. data/spec/models/subaccount_spec.rb +1 -1
  179. data/spec/models/upload_file_spec.rb +1 -1
  180. data/spec/models/url_spec.rb +1 -1
  181. data/spec/models/voice_message_collection_spec.rb +1 -1
  182. data/spec/models/voice_message_spec.rb +1 -1
  183. data/spec/spec_helper.rb +1 -1
  184. metadata +40 -19
  185. data/clicksend_client-1.0.1.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 346858ef68ae591b2808e36a2f2e2e82ba6e20542e57c903ec86ec27036b6110
4
- data.tar.gz: d69a4f507734356cff41be11825a82f67b9dca8ab9a4ae1e41c41533a5cd1387
3
+ metadata.gz: fea9a103b66f723924a61f641b6f4e02c8cff360fa3eb7ff4e83a46a683ee81d
4
+ data.tar.gz: c1b5855a730451466fce5679441ebd760eddcea02c2d2698916c31983727716c
5
5
  SHA512:
6
- metadata.gz: 40e50129fe673825732e925dd034e4a733f7ace22b7ea79371a2362c42c1ee353883435d53328b9d849a6cabbb80c7ab3cffcabc5f4af075d33238908b8f7356
7
- data.tar.gz: b33f4ade93f89d5145530321f3949a72f72958c01b1386d516fc82f06213a7a52903b87c4b415f2124c8cae0dd7ee9b1c07480c40a1c9abe7e86e179c1ed94d8
6
+ metadata.gz: d3e98ead8bf538aa31ebef0fffab66b04348a925f5046fe9d9b317b40d71299db5799627828faaa0b0d82e84dfa46450c86545fc835a20d361fc2243d7d04a0a
7
+ data.tar.gz: baf0294f79f31937a0349caafac0d521bf89860641e80dcff70c61a74a5a12e8bae69a1cd473e32e18651cc06b20c869b068bc21f0f10df4b8d5f97b883c9bc1
data/Gemfile CHANGED
@@ -3,5 +3,5 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development, :test do
6
- gem 'rake', '~> 12.0.0'
6
+ gem 'rake', '~> 12.3.3'
7
7
  end
data/README.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # The official ruby library for ClickSend v3 API
2
2
 
3
- This is an official SDK for [ClickSend](https://clicksend.com) Below you will find a current list of the available methods for clicksend. *NOTE: You will need to create a free account to use the API. You can register [here](https://dashboard.clicksend.com/#/signup/step1/)..*
3
+
4
+ This is the official [ClickSend](https://clicksend.com) SDK. Documentation can be found [here](https://developers.clicksend.com/docs/rest/v3/?ruby#introduction).
5
+
6
+ ## Requirements
7
+
8
+ - [Sign Up](https://www.clicksend.com/signup) for a free ClickSend account.
9
+ - Copy your API key from the [API Credentials](https://dashboard.clicksend.com/#/account/subaccount) area.
4
10
 
5
11
  ## Installation
6
12
 
@@ -65,9 +71,9 @@ end
65
71
 
66
72
  ```
67
73
 
68
- ## Documentation for API Endpoints and Models
74
+ ## Documentation
69
75
 
70
- Documentation can be found here: [ClickSend API Docs](https://developers.clicksend.com/docs/)
76
+ Documentation for our SDK and REST API can be found [here](https://developers.clicksend.com/docs/rest/v3/?ruby#introduction).
71
77
 
72
78
  ## Documentation for Authorization
73
79
 
@@ -3,12 +3,12 @@
3
3
  =begin
4
4
  #ClickSend v3 API
5
5
 
6
- # This is an official SDK for [ClickSend](https://clicksend.com) *NOTE: You will need to create a free account to use the API. You can register [here](https://dashboard.clicksend.com/#/signup/step1/)..*
6
+ # This is an official SDK for [ClickSend](https://clicksend.com) Below you will find a current list of the available methods for clicksend. *NOTE: You will need to create a free account to use the API. You can register [here](https://dashboard.clicksend.com/#/signup/step1/)..*
7
7
 
8
8
  OpenAPI spec version: 3.1
9
9
  Contact: support@clicksend.com
10
10
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
11
- ClickSend Codegen version: 2.4.1-SNAPSHOT
11
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
12
12
 
13
13
  =end
14
14
 
@@ -23,12 +23,13 @@ Gem::Specification.new do |s|
23
23
  s.email = ["support@clicksend.com"]
24
24
  s.homepage = "https://github.com/clicksend-api/clicksend-codegen"
25
25
  s.summary = "ClickSend v3 API Ruby Gem"
26
- s.description = " This is an official SDK for [ClickSend](https://clicksend.com) *NOTE: You will need to create a free account to use the API. You can register [here](https://dashboard.clicksend.com/#/signup/step1/)..* "
26
+ s.description = " This is an official SDK for [ClickSend](https://clicksend.com) Below you will find a current list of the available methods for clicksend. *NOTE: You will need to create a free account to use the API. You can register [here](https://dashboard.clicksend.com/#/signup/step1/)..* "
27
27
  s.license = "Unlicense"
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
30
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
+ s.add_runtime_dependency 'addressable', '~> 2.3', '>= 2.3.0'
32
33
 
33
34
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
35
  s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
data/docs/ContactApi.md CHANGED
@@ -9,6 +9,7 @@ Method | HTTP request | Description
9
9
  [**lists_contacts_by_list_id_and_contact_id_put**](ContactApi.md#lists_contacts_by_list_id_and_contact_id_put) | **PUT** /lists/{list_id}/contacts/{contact_id} | Update specific contact
10
10
  [**lists_contacts_by_list_id_get**](ContactApi.md#lists_contacts_by_list_id_get) | **GET** /lists/{list_id}/contacts | Get all contacts in a list
11
11
  [**lists_contacts_by_list_id_post**](ContactApi.md#lists_contacts_by_list_id_post) | **POST** /lists/{list_id}/contacts | Create new contact
12
+ [**lists_copy_contact_put**](ContactApi.md#lists_copy_contact_put) | **PUT** /lists/{from_list_id}/contacts/{contact_id}/copy/{to_list_id} | Copy contact to another list
12
13
  [**lists_remove_opted_out_contacts_by_list_id_and_opt_out_list_id_put**](ContactApi.md#lists_remove_opted_out_contacts_by_list_id_and_opt_out_list_id_put) | **PUT** /lists/{list_id}/remove-opted-out-contacts/{opt_out_list_id} | Remove all opted out contacts
13
14
  [**lists_transfer_contact_put**](ContactApi.md#lists_transfer_contact_put) | **PUT** /lists/{from_list_id}/contacts/{contact_id}/transfer/{to_list_id} | Transfer contact to another list
14
15
 
@@ -299,6 +300,65 @@ Name | Type | Description | Notes
299
300
 
300
301
 
301
302
 
303
+ # **lists_copy_contact_put**
304
+ > String lists_copy_contact_put(from_list_id, contact_id, to_list_id)
305
+
306
+ Copy contact to another list
307
+
308
+ Copy contact to another list
309
+
310
+ ### Example
311
+ ```ruby
312
+ # load the gem
313
+ require 'clicksend_client'
314
+ # setup authorization
315
+ ClickSendClient.configure do |config|
316
+ # Configure HTTP basic authorization: BasicAuth
317
+ config.username = 'YOUR USERNAME'
318
+ config.password = 'YOUR PASSWORD'
319
+ end
320
+
321
+ api_instance = ClickSendClient::ContactApi.new
322
+
323
+ from_list_id = 56 # Integer | List ID for list that contains contact.
324
+
325
+ contact_id = 56 # Integer | Contact ID
326
+
327
+ to_list_id = 56 # Integer | List ID for list you want to copy the contact to.
328
+
329
+
330
+ begin
331
+ #Copy contact to another list
332
+ result = api_instance.lists_copy_contact_put(from_list_id, contact_id, to_list_id)
333
+ p result
334
+ rescue ClickSendClient::ApiError => e
335
+ puts "Exception when calling ContactApi->lists_copy_contact_put: #{e}"
336
+ end
337
+ ```
338
+
339
+ ### Parameters
340
+
341
+ Name | Type | Description | Notes
342
+ ------------- | ------------- | ------------- | -------------
343
+ **from_list_id** | **Integer**| List ID for list that contains contact. |
344
+ **contact_id** | **Integer**| Contact ID |
345
+ **to_list_id** | **Integer**| List ID for list you want to copy the contact to. |
346
+
347
+ ### Return type
348
+
349
+ **String**
350
+
351
+ ### Authorization
352
+
353
+ [BasicAuth](../README.md#BasicAuth)
354
+
355
+ ### HTTP request headers
356
+
357
+ - **Content-Type**: application/json
358
+ - **Accept**: application/json
359
+
360
+
361
+
302
362
  # **lists_remove_opted_out_contacts_by_list_id_and_opt_out_list_id_put**
303
363
  > String lists_remove_opted_out_contacts_by_list_id_and_opt_out_list_id_put(list_id, opt_out_list_id)
304
364
 
@@ -10,5 +10,6 @@ Name | Type | Description | Notes
10
10
  **action** | **String** | Action to be taken (AUTO_REPLY, EMAIL_USER, EMAIL_FIXED, URL, SMS, POLL, GROUP_SMS, MOVE_CONTACT, CREATE_CONTACT, CREATE_CONTACT_PLUS_EMAIL, CREATE_CONTACT_PLUS_NAME_EMAIL CREATE_CONTACT_PLUS_NAME, SMPP, NONE). |
11
11
  **action_address** | **String** | Action address. |
12
12
  **enabled** | **Float** | Enabled: Disabled=0 or Enabled=1. |
13
+ **webhook_type** | **String** | post, get, or json. post by default | [optional]
13
14
 
14
15
 
data/docs/MMSApi.md CHANGED
@@ -4,12 +4,129 @@ All URIs are relative to *https://rest.clicksend.com/v3*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**mms_history_export_get**](MMSApi.md#mms_history_export_get) | **GET** /mms/history/export | Export all mms history
8
+ [**mms_history_get**](MMSApi.md#mms_history_get) | **GET** /mms/history | Get all mms history
7
9
  [**mms_price_post**](MMSApi.md#mms_price_post) | **POST** /mms/price | Get Price for MMS sent
8
10
  [**mms_receipts_get**](MMSApi.md#mms_receipts_get) | **GET** /mms/receipts | Get all delivery receipts
9
11
  [**mms_receipts_read_put**](MMSApi.md#mms_receipts_read_put) | **PUT** /mms/receipts-read | Mark delivery receipts as read
10
12
  [**mms_send_post**](MMSApi.md#mms_send_post) | **POST** /mms/send | Send MMS
11
13
 
12
14
 
15
+ # **mms_history_export_get**
16
+ > String mms_history_export_get(filename)
17
+
18
+ Export all mms history
19
+
20
+ Export all mms history
21
+
22
+ ### Example
23
+ ```ruby
24
+ # load the gem
25
+ require 'clicksend_client'
26
+ # setup authorization
27
+ ClickSendClient.configure do |config|
28
+ # Configure HTTP basic authorization: BasicAuth
29
+ config.username = 'YOUR USERNAME'
30
+ config.password = 'YOUR PASSWORD'
31
+ end
32
+
33
+ api_instance = ClickSendClient::MMSApi.new
34
+
35
+ filename = 'filename_example' # String | Filename to download history as
36
+
37
+
38
+ begin
39
+ #Export all mms history
40
+ result = api_instance.mms_history_export_get(filename)
41
+ p result
42
+ rescue ClickSendClient::ApiError => e
43
+ puts "Exception when calling MMSApi->mms_history_export_get: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **filename** | **String**| Filename to download history as |
52
+
53
+ ### Return type
54
+
55
+ **String**
56
+
57
+ ### Authorization
58
+
59
+ [BasicAuth](../README.md#BasicAuth)
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: application/json
64
+ - **Accept**: application/json
65
+
66
+
67
+
68
+ # **mms_history_get**
69
+ > String mms_history_get(opts)
70
+
71
+ Get all mms history
72
+
73
+ Get all mms history
74
+
75
+ ### Example
76
+ ```ruby
77
+ # load the gem
78
+ require 'clicksend_client'
79
+ # setup authorization
80
+ ClickSendClient.configure do |config|
81
+ # Configure HTTP basic authorization: BasicAuth
82
+ config.username = 'YOUR USERNAME'
83
+ config.password = 'YOUR PASSWORD'
84
+ end
85
+
86
+ api_instance = ClickSendClient::MMSApi.new
87
+
88
+ opts = {
89
+ q: 'q_example', # String | Custom query Example: from:{number},status_code:201.
90
+ date_from: 56, # Integer | Start date
91
+ date_to: 56, # Integer | End date
92
+ page: 1, # Integer | Page number
93
+ limit: 10 # Integer | Number of records per page
94
+ }
95
+
96
+ begin
97
+ #Get all mms history
98
+ result = api_instance.mms_history_get(opts)
99
+ p result
100
+ rescue ClickSendClient::ApiError => e
101
+ puts "Exception when calling MMSApi->mms_history_get: #{e}"
102
+ end
103
+ ```
104
+
105
+ ### Parameters
106
+
107
+ Name | Type | Description | Notes
108
+ ------------- | ------------- | ------------- | -------------
109
+ **q** | **String**| Custom query Example: from:{number},status_code:201. | [optional]
110
+ **date_from** | **Integer**| Start date | [optional]
111
+ **date_to** | **Integer**| End date | [optional]
112
+ **page** | **Integer**| Page number | [optional] [default to 1]
113
+ **limit** | **Integer**| Number of records per page | [optional] [default to 10]
114
+
115
+ ### Return type
116
+
117
+ **String**
118
+
119
+ ### Authorization
120
+
121
+ [BasicAuth](../README.md#BasicAuth)
122
+
123
+ ### HTTP request headers
124
+
125
+ - **Content-Type**: application/json
126
+ - **Accept**: application/json
127
+
128
+
129
+
13
130
  # **mms_price_post**
14
131
  > String mms_price_post(mms_messages)
15
132
 
data/docs/MmsMessage.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **to** | **String** | Recipient phone number in E.164 format |
6
+ **to** | **String** | Recipient phone number in E.164 format | [optional]
7
7
  **body** | **String** | Your message |
8
8
  **subject** | **String** | Subject line (max 20 characters) |
9
9
  **from** | **String** | Your sender ID | [optional]
data/docs/SmsCampaign.md CHANGED
@@ -8,5 +8,6 @@ Name | Type | Description | Notes
8
8
  **body** | **String** | Your campaign message. |
9
9
  **from** | **String** | Your sender id - more info: http://help.clicksend.com/SMS/what-is-a-sender-id-or-sender-number. | [optional]
10
10
  **schedule** | **Integer** | Your schedule timestamp. | [optional] [default to 0]
11
+ **url_to_shorten** | **String** | url to be shortened add http://smsg.io/xxxxx` to the body as a placeholder. | [optional]
11
12
 
12
13
 
data/docs/SmsMessage.md CHANGED
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **from** | **String** | Your sender id - more info: http://help.clicksend.com/SMS/what-is-a-sender-id-or-sender-number. | [optional]
7
7
  **body** | **String** | Your message. |
8
- **to** | **String** | Recipient phone number in E.164 format. |
8
+ **to** | **String** | Recipient phone number in E.164 format. | [optional]
9
9
  **source** | **String** | Your method of sending e.g. 'wordpress', 'php', 'c#'. | [optional] [default to 'sdk']
10
10
  **schedule** | **Integer** | Leave blank for immediate delivery. Your schedule time in unix format http://help.clicksend.com/what-is-a-unix-timestamp | [optional] [default to 0]
11
11
  **custom_string** | **String** | Your reference. Will be passed back with all replies and delivery reports. | [optional]
data/docs/VoiceMessage.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **to** | **String** | Your phone number in E.164 format. |
6
+ **to** | **String** | Your phone number in E.164 format. | [optional]
7
7
  **body** | **String** | Biscuit uv3nlCOjRk croissant chocolate lollipop chocolate muffin. |
8
8
  **voice** | **String** | Either 'female' or 'male'. |
9
9
  **custom_string** | **String** | Your reference. Will be passed back with all replies and delivery reports. |
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -333,6 +333,72 @@ module ClickSendClient
333
333
  end
334
334
  return data, status_code, headers
335
335
  end
336
+ # Copy contact to another list
337
+ # Copy contact to another list
338
+ # @param from_list_id List ID for list that contains contact.
339
+ # @param contact_id Contact ID
340
+ # @param to_list_id List ID for list you want to copy the contact to.
341
+ # @param [Hash] opts the optional parameters
342
+ # @return [String]
343
+ def lists_copy_contact_put(from_list_id, contact_id, to_list_id, opts = {})
344
+ data, _status_code, _headers = lists_copy_contact_put_with_http_info(from_list_id, contact_id, to_list_id, opts)
345
+ data
346
+ end
347
+
348
+ # Copy contact to another list
349
+ # Copy contact to another list
350
+ # @param from_list_id List ID for list that contains contact.
351
+ # @param contact_id Contact ID
352
+ # @param to_list_id List ID for list you want to copy the contact to.
353
+ # @param [Hash] opts the optional parameters
354
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
355
+ def lists_copy_contact_put_with_http_info(from_list_id, contact_id, to_list_id, opts = {})
356
+ if @api_client.config.debugging
357
+ @api_client.config.logger.debug 'Calling API: ContactApi.lists_copy_contact_put ...'
358
+ end
359
+ # verify the required parameter 'from_list_id' is set
360
+ if @api_client.config.client_side_validation && from_list_id.nil?
361
+ fail ArgumentError, "Missing the required parameter 'from_list_id' when calling ContactApi.lists_copy_contact_put"
362
+ end
363
+ # verify the required parameter 'contact_id' is set
364
+ if @api_client.config.client_side_validation && contact_id.nil?
365
+ fail ArgumentError, "Missing the required parameter 'contact_id' when calling ContactApi.lists_copy_contact_put"
366
+ end
367
+ # verify the required parameter 'to_list_id' is set
368
+ if @api_client.config.client_side_validation && to_list_id.nil?
369
+ fail ArgumentError, "Missing the required parameter 'to_list_id' when calling ContactApi.lists_copy_contact_put"
370
+ end
371
+ # resource path
372
+ local_var_path = '/lists/{from_list_id}/contacts/{contact_id}/copy/{to_list_id}'.sub('{' + 'from_list_id' + '}', from_list_id.to_s).sub('{' + 'contact_id' + '}', contact_id.to_s).sub('{' + 'to_list_id' + '}', to_list_id.to_s)
373
+
374
+ # query parameters
375
+ query_params = {}
376
+
377
+ # header parameters
378
+ header_params = {}
379
+ # HTTP header 'Accept' (if needed)
380
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
381
+ # HTTP header 'Content-Type'
382
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
383
+
384
+ # form parameters
385
+ form_params = {}
386
+
387
+ # http body (model)
388
+ post_body = nil
389
+ auth_names = ['BasicAuth']
390
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
391
+ :header_params => header_params,
392
+ :query_params => query_params,
393
+ :form_params => form_params,
394
+ :body => post_body,
395
+ :auth_names => auth_names,
396
+ :return_type => 'String')
397
+ if @api_client.config.debugging
398
+ @api_client.config.logger.debug "API called: ContactApi#lists_copy_contact_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
399
+ end
400
+ return data, status_code, headers
401
+ end
336
402
  # Remove all opted out contacts
337
403
  # Remove all opted out contacts
338
404
  # @param list_id Your list id
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 3.1
7
7
  Contact: support@clicksend.com
8
8
  Generated by: https://github.com/clicksend-api/clicksend-codegen.git
9
- ClickSend Codegen version: 2.4.1-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.22-SNAPSHOT
10
10
 
11
11
  =end
12
12