clicksend_client 5.0.75 → 5.1.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 (188) hide show
  1. checksums.yaml +4 -4
  2. data/clicksend_client.gemspec +2 -2
  3. data/docs/ContactApi.md +3 -1
  4. data/docs/CountryListIds.md +8 -0
  5. data/docs/FaxMessage.md +1 -1
  6. data/docs/GlobalSendingApi.md +206 -0
  7. data/docs/MmsCampaign.md +1 -1
  8. data/docs/SMSApi.md +1 -1
  9. data/docs/SmsCampaign.md +1 -1
  10. data/docs/SmsMessage.md +2 -2
  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 +8 -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/global_sending_api.rb +221 -0
  25. data/lib/clicksend_client/api/inbound_fax_rules_api.rb +1 -1
  26. data/lib/clicksend_client/api/inbound_sms_rules_api.rb +1 -1
  27. data/lib/clicksend_client/api/master_email_templates_api.rb +1 -1
  28. data/lib/clicksend_client/api/mms_api.rb +1 -1
  29. data/lib/clicksend_client/api/mms_campaign_api.rb +1 -1
  30. data/lib/clicksend_client/api/number_api.rb +1 -1
  31. data/lib/clicksend_client/api/post_letter_api.rb +1 -1
  32. data/lib/clicksend_client/api/post_postcard_api.rb +1 -1
  33. data/lib/clicksend_client/api/post_return_address_api.rb +1 -1
  34. data/lib/clicksend_client/api/referral_account_api.rb +1 -1
  35. data/lib/clicksend_client/api/reseller_account_api.rb +1 -1
  36. data/lib/clicksend_client/api/search_api.rb +1 -1
  37. data/lib/clicksend_client/api/sms_api.rb +3 -3
  38. data/lib/clicksend_client/api/sms_campaign_api.rb +1 -1
  39. data/lib/clicksend_client/api/sms_delivery_receipt_rules_api.rb +1 -1
  40. data/lib/clicksend_client/api/statistics_api.rb +1 -1
  41. data/lib/clicksend_client/api/subaccount_api.rb +1 -1
  42. data/lib/clicksend_client/api/timezones_api.rb +1 -1
  43. data/lib/clicksend_client/api/transactional_email_api.rb +1 -1
  44. data/lib/clicksend_client/api/transfer_credit_api.rb +1 -1
  45. data/lib/clicksend_client/api/upload_api.rb +1 -1
  46. data/lib/clicksend_client/api/user_email_templates_api.rb +1 -1
  47. data/lib/clicksend_client/api/voice_api.rb +1 -1
  48. data/lib/clicksend_client/api/voice_delivery_receipt_rules_api.rb +1 -1
  49. data/lib/clicksend_client/api_client.rb +1 -1
  50. data/lib/clicksend_client/api_error.rb +1 -1
  51. data/lib/clicksend_client/configuration.rb +1 -1
  52. data/lib/clicksend_client/models/account.rb +1 -1
  53. data/lib/clicksend_client/models/account_forgot_password_verify.rb +1 -1
  54. data/lib/clicksend_client/models/account_verify.rb +1 -1
  55. data/lib/clicksend_client/models/address.rb +1 -1
  56. data/lib/clicksend_client/models/attachment.rb +1 -1
  57. data/lib/clicksend_client/models/contact.rb +1 -1
  58. data/lib/clicksend_client/models/contact_list.rb +1 -1
  59. data/lib/clicksend_client/models/contact_list_import.rb +1 -1
  60. data/lib/clicksend_client/models/country_list_ids.rb +192 -0
  61. data/lib/clicksend_client/models/credit_card.rb +1 -1
  62. data/lib/clicksend_client/models/date_before.rb +1 -1
  63. data/lib/clicksend_client/models/delivery_issue.rb +1 -1
  64. data/lib/clicksend_client/models/delivery_receipt_rule.rb +1 -1
  65. data/lib/clicksend_client/models/email.rb +1 -1
  66. data/lib/clicksend_client/models/email_address.rb +1 -1
  67. data/lib/clicksend_client/models/email_campaign.rb +1 -1
  68. data/lib/clicksend_client/models/email_from.rb +1 -1
  69. data/lib/clicksend_client/models/email_recipient.rb +1 -1
  70. data/lib/clicksend_client/models/email_sms_address.rb +1 -1
  71. data/lib/clicksend_client/models/email_template_new.rb +1 -1
  72. data/lib/clicksend_client/models/email_template_update.rb +1 -1
  73. data/lib/clicksend_client/models/fax_message.rb +2 -2
  74. data/lib/clicksend_client/models/fax_message_collection.rb +1 -1
  75. data/lib/clicksend_client/models/fields.rb +1 -1
  76. data/lib/clicksend_client/models/fields_fields.rb +1 -1
  77. data/lib/clicksend_client/models/forgot_password.rb +1 -1
  78. data/lib/clicksend_client/models/forgot_username.rb +1 -1
  79. data/lib/clicksend_client/models/inbound_fax_rule.rb +1 -1
  80. data/lib/clicksend_client/models/inbound_sms_rule.rb +1 -1
  81. data/lib/clicksend_client/models/mms_campaign.rb +2 -2
  82. data/lib/clicksend_client/models/mms_message.rb +1 -1
  83. data/lib/clicksend_client/models/mms_message_collection.rb +1 -1
  84. data/lib/clicksend_client/models/post_letter.rb +1 -1
  85. data/lib/clicksend_client/models/post_postcard.rb +1 -1
  86. data/lib/clicksend_client/models/post_recipient.rb +1 -1
  87. data/lib/clicksend_client/models/reseller_account.rb +1 -1
  88. data/lib/clicksend_client/models/reseller_account_transfer_credit.rb +1 -1
  89. data/lib/clicksend_client/models/sms_campaign.rb +2 -2
  90. data/lib/clicksend_client/models/sms_message.rb +3 -3
  91. data/lib/clicksend_client/models/sms_message_collection.rb +1 -1
  92. data/lib/clicksend_client/models/sms_template.rb +1 -1
  93. data/lib/clicksend_client/models/stripped_string.rb +1 -1
  94. data/lib/clicksend_client/models/subaccount.rb +1 -1
  95. data/lib/clicksend_client/models/upload_file.rb +1 -1
  96. data/lib/clicksend_client/models/url.rb +1 -1
  97. data/lib/clicksend_client/models/voice_message.rb +2 -2
  98. data/lib/clicksend_client/models/voice_message_collection.rb +1 -1
  99. data/lib/clicksend_client/version.rb +2 -2
  100. data/lib/clicksend_client.rb +3 -1
  101. data/spec/api/account_api_spec.rb +1 -1
  102. data/spec/api/account_recharge_api_spec.rb +1 -1
  103. data/spec/api/contact_api_spec.rb +2 -1
  104. data/spec/api/contact_list_api_spec.rb +1 -1
  105. data/spec/api/countries_api_spec.rb +1 -1
  106. data/spec/api/delivery_issues_api_spec.rb +1 -1
  107. data/spec/api/detect_address_api_spec.rb +1 -1
  108. data/spec/api/email_delivery_receipt_rules_api_spec.rb +1 -1
  109. data/spec/api/email_marketing_api_spec.rb +1 -1
  110. data/spec/api/email_to_sms_api_spec.rb +1 -1
  111. data/spec/api/fax_api_spec.rb +1 -1
  112. data/spec/api/fax_delivery_receipt_rules_api_spec.rb +1 -1
  113. data/spec/api/global_sending_api_spec.rb +80 -0
  114. data/spec/api/inbound_fax_rules_api_spec.rb +1 -1
  115. data/spec/api/inbound_sms_rules_api_spec.rb +1 -1
  116. data/spec/api/master_email_templates_api_spec.rb +1 -1
  117. data/spec/api/mms_api_spec.rb +1 -1
  118. data/spec/api/mms_campaign_api_spec.rb +1 -1
  119. data/spec/api/number_api_spec.rb +1 -1
  120. data/spec/api/post_letter_api_spec.rb +1 -1
  121. data/spec/api/post_postcard_api_spec.rb +1 -1
  122. data/spec/api/post_return_address_api_spec.rb +1 -1
  123. data/spec/api/referral_account_api_spec.rb +1 -1
  124. data/spec/api/reseller_account_api_spec.rb +1 -1
  125. data/spec/api/search_api_spec.rb +1 -1
  126. data/spec/api/sms_api_spec.rb +2 -2
  127. data/spec/api/sms_campaign_api_spec.rb +1 -1
  128. data/spec/api/sms_delivery_receipt_rules_api_spec.rb +1 -1
  129. data/spec/api/statistics_api_spec.rb +1 -1
  130. data/spec/api/subaccount_api_spec.rb +1 -1
  131. data/spec/api/timezones_api_spec.rb +1 -1
  132. data/spec/api/transactional_email_api_spec.rb +1 -1
  133. data/spec/api/transfer_credit_api_spec.rb +1 -1
  134. data/spec/api/upload_api_spec.rb +1 -1
  135. data/spec/api/user_email_templates_api_spec.rb +1 -1
  136. data/spec/api/voice_api_spec.rb +1 -1
  137. data/spec/api/voice_delivery_receipt_rules_api_spec.rb +1 -1
  138. data/spec/api_client_spec.rb +1 -1
  139. data/spec/configuration_spec.rb +1 -1
  140. data/spec/models/account_forgot_password_verify_spec.rb +1 -1
  141. data/spec/models/account_spec.rb +1 -1
  142. data/spec/models/account_verify_spec.rb +1 -1
  143. data/spec/models/address_spec.rb +1 -1
  144. data/spec/models/attachment_spec.rb +1 -1
  145. data/spec/models/contact_list_import_spec.rb +1 -1
  146. data/spec/models/contact_list_spec.rb +1 -1
  147. data/spec/models/contact_spec.rb +1 -1
  148. data/spec/models/country_list_ids_spec.rb +41 -0
  149. data/spec/models/credit_card_spec.rb +1 -1
  150. data/spec/models/date_before_spec.rb +1 -1
  151. data/spec/models/delivery_issue_spec.rb +1 -1
  152. data/spec/models/delivery_receipt_rule_spec.rb +1 -1
  153. data/spec/models/email_address_spec.rb +1 -1
  154. data/spec/models/email_campaign_spec.rb +1 -1
  155. data/spec/models/email_from_spec.rb +1 -1
  156. data/spec/models/email_recipient_spec.rb +1 -1
  157. data/spec/models/email_sms_address_spec.rb +1 -1
  158. data/spec/models/email_spec.rb +1 -1
  159. data/spec/models/email_template_new_spec.rb +1 -1
  160. data/spec/models/email_template_update_spec.rb +1 -1
  161. data/spec/models/fax_message_collection_spec.rb +1 -1
  162. data/spec/models/fax_message_spec.rb +1 -1
  163. data/spec/models/fields_fields_spec.rb +1 -1
  164. data/spec/models/fields_spec.rb +1 -1
  165. data/spec/models/forgot_password_spec.rb +1 -1
  166. data/spec/models/forgot_username_spec.rb +1 -1
  167. data/spec/models/inbound_fax_rule_spec.rb +1 -1
  168. data/spec/models/inbound_sms_rule_spec.rb +1 -1
  169. data/spec/models/mms_campaign_spec.rb +1 -1
  170. data/spec/models/mms_message_collection_spec.rb +1 -1
  171. data/spec/models/mms_message_spec.rb +1 -1
  172. data/spec/models/post_letter_spec.rb +1 -1
  173. data/spec/models/post_postcard_spec.rb +1 -1
  174. data/spec/models/post_recipient_spec.rb +1 -1
  175. data/spec/models/reseller_account_spec.rb +1 -1
  176. data/spec/models/reseller_account_transfer_credit_spec.rb +1 -1
  177. data/spec/models/sms_campaign_spec.rb +1 -1
  178. data/spec/models/sms_message_collection_spec.rb +1 -1
  179. data/spec/models/sms_message_spec.rb +1 -1
  180. data/spec/models/sms_template_spec.rb +1 -1
  181. data/spec/models/stripped_string_spec.rb +1 -1
  182. data/spec/models/subaccount_spec.rb +1 -1
  183. data/spec/models/upload_file_spec.rb +1 -1
  184. data/spec/models/url_spec.rb +1 -1
  185. data/spec/models/voice_message_collection_spec.rb +1 -1
  186. data/spec/models/voice_message_spec.rb +1 -1
  187. data/spec/spec_helper.rb +1 -1
  188. metadata +77 -73
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fea9a103b66f723924a61f641b6f4e02c8cff360fa3eb7ff4e83a46a683ee81d
4
- data.tar.gz: c1b5855a730451466fce5679441ebd760eddcea02c2d2698916c31983727716c
3
+ metadata.gz: 8710003887757734478c96ac7f0459d46e9ed84ff270363f16eaf5bcf39dcafe
4
+ data.tar.gz: f13e18c099f99f46a70d64f3e6e7b3bf13fcf2dac3b66bef02978a08312d1544
5
5
  SHA512:
6
- metadata.gz: d3e98ead8bf538aa31ebef0fffab66b04348a925f5046fe9d9b317b40d71299db5799627828faaa0b0d82e84dfa46450c86545fc835a20d361fc2243d7d04a0a
7
- data.tar.gz: baf0294f79f31937a0349caafac0d521bf89860641e80dcff70c61a74a5a12e8bae69a1cd473e32e18651cc06b20c869b068bc21f0f10df4b8d5f97b883c9bc1
6
+ metadata.gz: fc17cec86575094e44a1778c2fb544ea1cb0ca55eddcf4dbd370ca1851e098b30fd7e68fb9f3a1d753c325241fabfe1a29111ccb01d6dfbbccc39c6f8da90693
7
+ data.tar.gz: d19fcc2154b886b77eeef6163bf9733dfd7dfc77928b36a78e52becc19de0b32d535e655df3a2fe1ee99b655a4c01a4596026d5e5c3fb5dbe0a117faa761e890
@@ -8,7 +8,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.22-SNAPSHOT
11
+ ClickSend Codegen version: 2.4.53-SNAPSHOT
12
12
 
13
13
  =end
14
14
 
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.summary = "ClickSend v3 API Ruby Gem"
26
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
- s.required_ruby_version = ">= 1.9"
28
+ s.required_ruby_version = ">= 2.7"
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'
data/docs/ContactApi.md CHANGED
@@ -209,7 +209,8 @@ list_id = 56 # Integer | Contact list ID
209
209
 
210
210
  opts = {
211
211
  page: 1, # Integer | Page number
212
- limit: 10 # Integer | Number of records per page
212
+ limit: 10, # Integer | Number of records per page
213
+ updated_after: 10 # Integer | Get all contacts updated after a given timestamp.
213
214
  }
214
215
 
215
216
  begin
@@ -228,6 +229,7 @@ Name | Type | Description | Notes
228
229
  **list_id** | **Integer**| Contact list ID |
229
230
  **page** | **Integer**| Page number | [optional] [default to 1]
230
231
  **limit** | **Integer**| Number of records per page | [optional] [default to 10]
232
+ **updated_after** | **Integer**| Get all contacts updated after a given timestamp. | [optional] [default to 10]
231
233
 
232
234
  ### Return type
233
235
 
@@ -0,0 +1,8 @@
1
+ # ClickSendClient::CountryListIds
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **country_list_ids** | **Array<Integer>** | Array of country ids |
7
+
8
+
data/docs/FaxMessage.md CHANGED
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **to** | **String** | Recipient fax number in E.164 format. |
8
8
  **list_id** | **Integer** | Your list ID if sending to a whole list. Can be used instead of 'to'. | [optional]
9
9
  **from** | **String** | Your sender id. Must be a valid fax number. | [optional]
10
- **schedule** | **Integer** | Leave blank for immediate delivery. Your schedule time in unix format http://help.clicksend.com/what-is-a-unix-timestamp | [optional]
10
+ **schedule** | **Integer** | Leave blank for immediate delivery. Your schedule time in unix format https://help.clicksend.com/en/articles/44235-what-is-a-unix-timestamp | [optional]
11
11
  **custom_string** | **String** | Your reference. Will be passed back with all replies and delivery reports. | [optional]
12
12
  **country** | **String** | Recipient country. | [optional]
13
13
  **from_email** | **String** | An email address where the reply should be emailed to. | [optional]
@@ -0,0 +1,206 @@
1
+ # ClickSendClient::GlobalSendingApi
2
+
3
+ All URIs are relative to *https://rest.clicksend.com/v3*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**list_countries_get**](GlobalSendingApi.md#list_countries_get) | **GET** /country-list | List of countries
8
+ [**user_countries_agree_post**](GlobalSendingApi.md#user_countries_agree_post) | **POST** /user-countries/agree | Agree to rules and regulation
9
+ [**user_countries_get**](GlobalSendingApi.md#user_countries_get) | **GET** /user-countries | Get Countries for Global Sending
10
+ [**user_countries_post**](GlobalSendingApi.md#user_countries_post) | **POST** /user-countries | Select Countries for Global Sending
11
+
12
+
13
+ # **list_countries_get**
14
+ > String list_countries_get
15
+
16
+ List of countries
17
+
18
+ List of countries with IDs that can be used in selecting countries for Global sending.
19
+
20
+ ### Example
21
+ ```ruby
22
+ # load the gem
23
+ require 'clicksend_client'
24
+ # setup authorization
25
+ ClickSendClient.configure do |config|
26
+ # Configure HTTP basic authorization: BasicAuth
27
+ config.username = 'YOUR USERNAME'
28
+ config.password = 'YOUR PASSWORD'
29
+ end
30
+
31
+ api_instance = ClickSendClient::GlobalSendingApi.new
32
+
33
+ begin
34
+ #List of countries
35
+ result = api_instance.list_countries_get
36
+ p result
37
+ rescue ClickSendClient::ApiError => e
38
+ puts "Exception when calling GlobalSendingApi->list_countries_get: #{e}"
39
+ end
40
+ ```
41
+
42
+ ### Parameters
43
+ This endpoint does not need any parameter.
44
+
45
+ ### Return type
46
+
47
+ **String**
48
+
49
+ ### Authorization
50
+
51
+ [BasicAuth](../README.md#BasicAuth)
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: application/json
56
+ - **Accept**: application/json
57
+
58
+
59
+
60
+ # **user_countries_agree_post**
61
+ > String user_countries_agree_post
62
+
63
+ Agree to rules and regulation
64
+
65
+ To agree on rules and regulations of selected countries and confirm selection.
66
+
67
+ ### Example
68
+ ```ruby
69
+ # load the gem
70
+ require 'clicksend_client'
71
+ # setup authorization
72
+ ClickSendClient.configure do |config|
73
+ # Configure HTTP basic authorization: BasicAuth
74
+ config.username = 'YOUR USERNAME'
75
+ config.password = 'YOUR PASSWORD'
76
+ end
77
+
78
+ api_instance = ClickSendClient::GlobalSendingApi.new
79
+
80
+ begin
81
+ #Agree to rules and regulation
82
+ result = api_instance.user_countries_agree_post
83
+ p result
84
+ rescue ClickSendClient::ApiError => e
85
+ puts "Exception when calling GlobalSendingApi->user_countries_agree_post: #{e}"
86
+ end
87
+ ```
88
+
89
+ ### Parameters
90
+ This endpoint does not need any parameter.
91
+
92
+ ### Return type
93
+
94
+ **String**
95
+
96
+ ### Authorization
97
+
98
+ [BasicAuth](../README.md#BasicAuth)
99
+
100
+ ### HTTP request headers
101
+
102
+ - **Content-Type**: application/json
103
+ - **Accept**: application/json
104
+
105
+
106
+
107
+ # **user_countries_get**
108
+ > String user_countries_get
109
+
110
+ Get Countries for Global Sending
111
+
112
+ Get the list of selected countries.
113
+
114
+ ### Example
115
+ ```ruby
116
+ # load the gem
117
+ require 'clicksend_client'
118
+ # setup authorization
119
+ ClickSendClient.configure do |config|
120
+ # Configure HTTP basic authorization: BasicAuth
121
+ config.username = 'YOUR USERNAME'
122
+ config.password = 'YOUR PASSWORD'
123
+ end
124
+
125
+ api_instance = ClickSendClient::GlobalSendingApi.new
126
+
127
+ begin
128
+ #Get Countries for Global Sending
129
+ result = api_instance.user_countries_get
130
+ p result
131
+ rescue ClickSendClient::ApiError => e
132
+ puts "Exception when calling GlobalSendingApi->user_countries_get: #{e}"
133
+ end
134
+ ```
135
+
136
+ ### Parameters
137
+ This endpoint does not need any parameter.
138
+
139
+ ### Return type
140
+
141
+ **String**
142
+
143
+ ### Authorization
144
+
145
+ [BasicAuth](../README.md#BasicAuth)
146
+
147
+ ### HTTP request headers
148
+
149
+ - **Content-Type**: application/json
150
+ - **Accept**: application/json
151
+
152
+
153
+
154
+ # **user_countries_post**
155
+ > String user_countries_post(country_list_ids)
156
+
157
+ Select Countries for Global Sending
158
+
159
+ Use this endpoint to select countries that you intend to send sms / mms to. To remove / unselect a country, just remove the country id from the array in the payload.
160
+
161
+ ### Example
162
+ ```ruby
163
+ # load the gem
164
+ require 'clicksend_client'
165
+ # setup authorization
166
+ ClickSendClient.configure do |config|
167
+ # Configure HTTP basic authorization: BasicAuth
168
+ config.username = 'YOUR USERNAME'
169
+ config.password = 'YOUR PASSWORD'
170
+ end
171
+
172
+ api_instance = ClickSendClient::GlobalSendingApi.new
173
+
174
+ country_list_ids = ClickSendClient::CountryListIds.new # CountryListIds | Id of countr(ies) you want to select, you can get them from GET /country-list response
175
+
176
+
177
+ begin
178
+ #Select Countries for Global Sending
179
+ result = api_instance.user_countries_post(country_list_ids)
180
+ p result
181
+ rescue ClickSendClient::ApiError => e
182
+ puts "Exception when calling GlobalSendingApi->user_countries_post: #{e}"
183
+ end
184
+ ```
185
+
186
+ ### Parameters
187
+
188
+ Name | Type | Description | Notes
189
+ ------------- | ------------- | ------------- | -------------
190
+ **country_list_ids** | [**CountryListIds**](CountryListIds.md)| Id of countr(ies) you want to select, you can get them from GET /country-list response |
191
+
192
+ ### Return type
193
+
194
+ **String**
195
+
196
+ ### Authorization
197
+
198
+ [BasicAuth](../README.md#BasicAuth)
199
+
200
+ ### HTTP request headers
201
+
202
+ - **Content-Type**: application/json
203
+ - **Accept**: application/json
204
+
205
+
206
+
data/docs/MmsCampaign.md CHANGED
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  **list_id** | **Integer** | Your list id. |
7
7
  **name** | **String** | Your campaign name. |
8
8
  **body** | **String** | Your campaign message. |
9
- **from** | **String** | Your sender id - more info: http://help.clicksend.com/SMS/what-is-a-sender-id-or-sender-number. | [optional]
9
+ **from** | **String** | Your sender id - more info: https://help.clicksend.com/en/collections/57584-numbers-sender-ids. | [optional]
10
10
  **schedule** | **Integer** | Your schedule timestamp. | [optional] [default to 0]
11
11
  **subject** | **String** | Subject of MMS campaign. |
12
12
  **media_file** | **String** | URL pointing to media file. |
data/docs/SMSApi.md CHANGED
@@ -731,7 +731,7 @@ Name | Type | Description | Notes
731
731
 
732
732
  Send sms message(s)
733
733
 
734
- # Send one or more SMS messages You can post up to 1000 messages with each API call. You can send to a mix of contacts and contact lists, as long as the total number of recipients is up to 1000. The response contains status and details for each recipient. *Refer to [Application Status Codes](https://dashboard.clicksend.com/#/signup/step1/) for the possible response message status strings.*
734
+ # Send one or more SMS messages You can post up to 1000 messages with each API call. You can send to a mix of contacts and contact lists, as long as the total number of recipients is up to 1000. The response contains status and details for each recipient. *Refer to [Application Status Codes](https://developers.clicksend.com/docs/#application-status-codes) for the possible response message status strings.*
735
735
 
736
736
  ### Example
737
737
  ```ruby
data/docs/SmsCampaign.md CHANGED
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  **list_id** | **Integer** | Your list id. |
7
7
  **name** | **String** | Your campaign name. |
8
8
  **body** | **String** | Your campaign message. |
9
- **from** | **String** | Your sender id - more info: http://help.clicksend.com/SMS/what-is-a-sender-id-or-sender-number. | [optional]
9
+ **from** | **String** | Your sender id - more info: https://help.clicksend.com/en/collections/57584-numbers-sender-ids. | [optional]
10
10
  **schedule** | **Integer** | Your schedule timestamp. | [optional] [default to 0]
11
11
  **url_to_shorten** | **String** | url to be shortened add http://smsg.io/xxxxx` to the body as a placeholder. | [optional]
12
12
 
data/docs/SmsMessage.md CHANGED
@@ -3,11 +3,11 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **from** | **String** | Your sender id - more info: http://help.clicksend.com/SMS/what-is-a-sender-id-or-sender-number. | [optional]
6
+ **from** | **String** | Your sender id - more info: https://help.clicksend.com/en/collections/57584-numbers-sender-ids. | [optional]
7
7
  **body** | **String** | Your message. |
8
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
- **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]
10
+ **schedule** | **Integer** | Leave blank for immediate delivery. Your schedule time in unix format https://help.clicksend.com/en/articles/44235-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]
12
12
  **list_id** | **Integer** | Your list ID if sending to a whole list. Can be used instead of 'to'. | [optional]
13
13
  **country** | **String** | Recipient country. | [optional]
data/docs/VoiceMessage.md CHANGED
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  **source** | **String** | Your method of sending e.g. 'wordpress', 'php', 'c#'. | [optional] [default to 'sdk']
12
12
  **list_id** | **Integer** | Your list ID if sending to a whole list. Can be used instead of 'to'. | [optional]
13
13
  **lang** | **String** | au (string, required) - See section on available languages. | [optional]
14
- **schedule** | **Integer** | Leave blank for immediate delivery. Your schedule time in unix format http://help.clicksend.com/what-is-a-unix-timestamp | [optional]
14
+ **schedule** | **Integer** | Leave blank for immediate delivery. Your schedule time in unix format https://help.clicksend.com/en/articles/44235-what-is-a-unix-timestamp | [optional]
15
15
  **require_input** | **Integer** | Whether you want to receive a keypress from the call recipient | [optional] [default to 0]
16
16
  **machine_detection** | **Integer** | Whether to attempt to detect an answering machine or voicemail service and leave a message | [optional] [default to 0]
17
17
 
@@ -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.22-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.53-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.22-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.53-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.22-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.53-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -211,6 +211,7 @@ module ClickSendClient
211
211
  # @param [Hash] opts the optional parameters
212
212
  # @option opts [Integer] :page Page number (default to 1)
213
213
  # @option opts [Integer] :limit Number of records per page (default to 10)
214
+ # @option opts [Integer] :updated_after Get all contacts updated after a given timestamp. (default to 10)
214
215
  # @return [String]
215
216
  def lists_contacts_by_list_id_get(list_id, opts = {})
216
217
  data, _status_code, _headers = lists_contacts_by_list_id_get_with_http_info(list_id, opts)
@@ -223,6 +224,7 @@ module ClickSendClient
223
224
  # @param [Hash] opts the optional parameters
224
225
  # @option opts [Integer] :page Page number
225
226
  # @option opts [Integer] :limit Number of records per page
227
+ # @option opts [Integer] :updated_after Get all contacts updated after a given timestamp.
226
228
  # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
227
229
  def lists_contacts_by_list_id_get_with_http_info(list_id, opts = {})
228
230
  if @api_client.config.debugging
@@ -240,6 +242,10 @@ module ClickSendClient
240
242
  fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ContactApi.lists_contacts_by_list_id_get, must be greater than or equal to 1.'
241
243
  end
242
244
 
245
+ if @api_client.config.client_side_validation && !opts[:'updated_after'].nil? && opts[:'updated_after'] < 1
246
+ fail ArgumentError, 'invalid value for "opts[:"updated_after"]" when calling ContactApi.lists_contacts_by_list_id_get, must be greater than or equal to 1.'
247
+ end
248
+
243
249
  # resource path
244
250
  local_var_path = '/lists/{list_id}/contacts'.sub('{' + 'list_id' + '}', list_id.to_s)
245
251
 
@@ -247,6 +253,7 @@ module ClickSendClient
247
253
  query_params = {}
248
254
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
249
255
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
256
+ query_params[:'updated_after'] = opts[:'updated_after'] if !opts[:'updated_after'].nil?
250
257
 
251
258
  # header parameters
252
259
  header_params = {}
@@ -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.22-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.53-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.22-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.53-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.22-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.53-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.22-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.53-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.22-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.53-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.22-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.53-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.22-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.53-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.22-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.53-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.22-SNAPSHOT
9
+ ClickSend Codegen version: 2.4.53-SNAPSHOT
10
10
 
11
11
  =end
12
12