clicksend_client 5.0.75 → 5.1.1
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.
- checksums.yaml +4 -4
- data/clicksend_client.gemspec +1 -1
- data/docs/ContactApi.md +3 -1
- data/docs/CountryListIds.md +8 -0
- data/docs/FaxMessage.md +1 -1
- data/docs/GlobalSendingApi.md +206 -0
- data/docs/MmsCampaign.md +1 -1
- data/docs/SMSApi.md +1 -1
- data/docs/SmsCampaign.md +1 -1
- data/docs/SmsMessage.md +2 -2
- data/docs/VoiceMessage.md +1 -1
- data/lib/clicksend_client/api/account_api.rb +1 -1
- data/lib/clicksend_client/api/account_recharge_api.rb +1 -1
- data/lib/clicksend_client/api/contact_api.rb +8 -1
- data/lib/clicksend_client/api/contact_list_api.rb +1 -1
- data/lib/clicksend_client/api/countries_api.rb +1 -1
- data/lib/clicksend_client/api/delivery_issues_api.rb +1 -1
- data/lib/clicksend_client/api/detect_address_api.rb +1 -1
- data/lib/clicksend_client/api/email_delivery_receipt_rules_api.rb +1 -1
- data/lib/clicksend_client/api/email_marketing_api.rb +1 -1
- data/lib/clicksend_client/api/email_to_sms_api.rb +1 -1
- data/lib/clicksend_client/api/fax_api.rb +1 -1
- data/lib/clicksend_client/api/fax_delivery_receipt_rules_api.rb +1 -1
- data/lib/clicksend_client/api/global_sending_api.rb +221 -0
- data/lib/clicksend_client/api/inbound_fax_rules_api.rb +1 -1
- data/lib/clicksend_client/api/inbound_sms_rules_api.rb +1 -1
- data/lib/clicksend_client/api/master_email_templates_api.rb +1 -1
- data/lib/clicksend_client/api/mms_api.rb +1 -1
- data/lib/clicksend_client/api/mms_campaign_api.rb +1 -1
- data/lib/clicksend_client/api/number_api.rb +1 -1
- data/lib/clicksend_client/api/post_letter_api.rb +1 -1
- data/lib/clicksend_client/api/post_postcard_api.rb +1 -1
- data/lib/clicksend_client/api/post_return_address_api.rb +1 -1
- data/lib/clicksend_client/api/referral_account_api.rb +1 -1
- data/lib/clicksend_client/api/reseller_account_api.rb +1 -1
- data/lib/clicksend_client/api/search_api.rb +1 -1
- data/lib/clicksend_client/api/sms_api.rb +3 -3
- data/lib/clicksend_client/api/sms_campaign_api.rb +1 -1
- data/lib/clicksend_client/api/sms_delivery_receipt_rules_api.rb +1 -1
- data/lib/clicksend_client/api/statistics_api.rb +1 -1
- data/lib/clicksend_client/api/subaccount_api.rb +1 -1
- data/lib/clicksend_client/api/timezones_api.rb +1 -1
- data/lib/clicksend_client/api/transactional_email_api.rb +1 -1
- data/lib/clicksend_client/api/transfer_credit_api.rb +1 -1
- data/lib/clicksend_client/api/upload_api.rb +1 -1
- data/lib/clicksend_client/api/user_email_templates_api.rb +1 -1
- data/lib/clicksend_client/api/voice_api.rb +1 -1
- data/lib/clicksend_client/api/voice_delivery_receipt_rules_api.rb +1 -1
- data/lib/clicksend_client/api_client.rb +1 -1
- data/lib/clicksend_client/api_error.rb +1 -1
- data/lib/clicksend_client/configuration.rb +1 -1
- data/lib/clicksend_client/models/account.rb +1 -1
- data/lib/clicksend_client/models/account_forgot_password_verify.rb +1 -1
- data/lib/clicksend_client/models/account_verify.rb +1 -1
- data/lib/clicksend_client/models/address.rb +1 -1
- data/lib/clicksend_client/models/attachment.rb +1 -1
- data/lib/clicksend_client/models/contact.rb +1 -1
- data/lib/clicksend_client/models/contact_list.rb +1 -1
- data/lib/clicksend_client/models/contact_list_import.rb +1 -1
- data/lib/clicksend_client/models/country_list_ids.rb +192 -0
- data/lib/clicksend_client/models/credit_card.rb +1 -1
- data/lib/clicksend_client/models/date_before.rb +1 -1
- data/lib/clicksend_client/models/delivery_issue.rb +1 -1
- data/lib/clicksend_client/models/delivery_receipt_rule.rb +1 -1
- data/lib/clicksend_client/models/email.rb +1 -1
- data/lib/clicksend_client/models/email_address.rb +1 -1
- data/lib/clicksend_client/models/email_campaign.rb +1 -1
- data/lib/clicksend_client/models/email_from.rb +1 -1
- data/lib/clicksend_client/models/email_recipient.rb +1 -1
- data/lib/clicksend_client/models/email_sms_address.rb +1 -1
- data/lib/clicksend_client/models/email_template_new.rb +1 -1
- data/lib/clicksend_client/models/email_template_update.rb +1 -1
- data/lib/clicksend_client/models/fax_message.rb +2 -2
- data/lib/clicksend_client/models/fax_message_collection.rb +1 -1
- data/lib/clicksend_client/models/fields.rb +1 -1
- data/lib/clicksend_client/models/fields_fields.rb +1 -1
- data/lib/clicksend_client/models/forgot_password.rb +1 -1
- data/lib/clicksend_client/models/forgot_username.rb +1 -1
- data/lib/clicksend_client/models/inbound_fax_rule.rb +1 -1
- data/lib/clicksend_client/models/inbound_sms_rule.rb +1 -1
- data/lib/clicksend_client/models/mms_campaign.rb +2 -2
- data/lib/clicksend_client/models/mms_message.rb +1 -1
- data/lib/clicksend_client/models/mms_message_collection.rb +1 -1
- data/lib/clicksend_client/models/post_letter.rb +1 -1
- data/lib/clicksend_client/models/post_postcard.rb +1 -1
- data/lib/clicksend_client/models/post_recipient.rb +1 -1
- data/lib/clicksend_client/models/reseller_account.rb +1 -1
- data/lib/clicksend_client/models/reseller_account_transfer_credit.rb +1 -1
- data/lib/clicksend_client/models/sms_campaign.rb +2 -2
- data/lib/clicksend_client/models/sms_message.rb +3 -3
- data/lib/clicksend_client/models/sms_message_collection.rb +1 -1
- data/lib/clicksend_client/models/sms_template.rb +1 -1
- data/lib/clicksend_client/models/stripped_string.rb +1 -1
- data/lib/clicksend_client/models/subaccount.rb +1 -1
- data/lib/clicksend_client/models/upload_file.rb +1 -1
- data/lib/clicksend_client/models/url.rb +1 -1
- data/lib/clicksend_client/models/voice_message.rb +2 -2
- data/lib/clicksend_client/models/voice_message_collection.rb +1 -1
- data/lib/clicksend_client/version.rb +2 -2
- data/lib/clicksend_client.rb +3 -1
- data/spec/api/account_api_spec.rb +1 -1
- data/spec/api/account_recharge_api_spec.rb +1 -1
- data/spec/api/contact_api_spec.rb +2 -1
- data/spec/api/contact_list_api_spec.rb +1 -1
- data/spec/api/countries_api_spec.rb +1 -1
- data/spec/api/delivery_issues_api_spec.rb +1 -1
- data/spec/api/detect_address_api_spec.rb +1 -1
- data/spec/api/email_delivery_receipt_rules_api_spec.rb +1 -1
- data/spec/api/email_marketing_api_spec.rb +1 -1
- data/spec/api/email_to_sms_api_spec.rb +1 -1
- data/spec/api/fax_api_spec.rb +1 -1
- data/spec/api/fax_delivery_receipt_rules_api_spec.rb +1 -1
- data/spec/api/global_sending_api_spec.rb +80 -0
- data/spec/api/inbound_fax_rules_api_spec.rb +1 -1
- data/spec/api/inbound_sms_rules_api_spec.rb +1 -1
- data/spec/api/master_email_templates_api_spec.rb +1 -1
- data/spec/api/mms_api_spec.rb +1 -1
- data/spec/api/mms_campaign_api_spec.rb +1 -1
- data/spec/api/number_api_spec.rb +1 -1
- data/spec/api/post_letter_api_spec.rb +1 -1
- data/spec/api/post_postcard_api_spec.rb +1 -1
- data/spec/api/post_return_address_api_spec.rb +1 -1
- data/spec/api/referral_account_api_spec.rb +1 -1
- data/spec/api/reseller_account_api_spec.rb +1 -1
- data/spec/api/search_api_spec.rb +1 -1
- data/spec/api/sms_api_spec.rb +2 -2
- data/spec/api/sms_campaign_api_spec.rb +1 -1
- data/spec/api/sms_delivery_receipt_rules_api_spec.rb +1 -1
- data/spec/api/statistics_api_spec.rb +1 -1
- data/spec/api/subaccount_api_spec.rb +1 -1
- data/spec/api/timezones_api_spec.rb +1 -1
- data/spec/api/transactional_email_api_spec.rb +1 -1
- data/spec/api/transfer_credit_api_spec.rb +1 -1
- data/spec/api/upload_api_spec.rb +1 -1
- data/spec/api/user_email_templates_api_spec.rb +1 -1
- data/spec/api/voice_api_spec.rb +1 -1
- data/spec/api/voice_delivery_receipt_rules_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_forgot_password_verify_spec.rb +1 -1
- data/spec/models/account_spec.rb +1 -1
- data/spec/models/account_verify_spec.rb +1 -1
- data/spec/models/address_spec.rb +1 -1
- data/spec/models/attachment_spec.rb +1 -1
- data/spec/models/contact_list_import_spec.rb +1 -1
- data/spec/models/contact_list_spec.rb +1 -1
- data/spec/models/contact_spec.rb +1 -1
- data/spec/models/country_list_ids_spec.rb +41 -0
- data/spec/models/credit_card_spec.rb +1 -1
- data/spec/models/date_before_spec.rb +1 -1
- data/spec/models/delivery_issue_spec.rb +1 -1
- data/spec/models/delivery_receipt_rule_spec.rb +1 -1
- data/spec/models/email_address_spec.rb +1 -1
- data/spec/models/email_campaign_spec.rb +1 -1
- data/spec/models/email_from_spec.rb +1 -1
- data/spec/models/email_recipient_spec.rb +1 -1
- data/spec/models/email_sms_address_spec.rb +1 -1
- data/spec/models/email_spec.rb +1 -1
- data/spec/models/email_template_new_spec.rb +1 -1
- data/spec/models/email_template_update_spec.rb +1 -1
- data/spec/models/fax_message_collection_spec.rb +1 -1
- data/spec/models/fax_message_spec.rb +1 -1
- data/spec/models/fields_fields_spec.rb +1 -1
- data/spec/models/fields_spec.rb +1 -1
- data/spec/models/forgot_password_spec.rb +1 -1
- data/spec/models/forgot_username_spec.rb +1 -1
- data/spec/models/inbound_fax_rule_spec.rb +1 -1
- data/spec/models/inbound_sms_rule_spec.rb +1 -1
- data/spec/models/mms_campaign_spec.rb +1 -1
- data/spec/models/mms_message_collection_spec.rb +1 -1
- data/spec/models/mms_message_spec.rb +1 -1
- data/spec/models/post_letter_spec.rb +1 -1
- data/spec/models/post_postcard_spec.rb +1 -1
- data/spec/models/post_recipient_spec.rb +1 -1
- data/spec/models/reseller_account_spec.rb +1 -1
- data/spec/models/reseller_account_transfer_credit_spec.rb +1 -1
- data/spec/models/sms_campaign_spec.rb +1 -1
- data/spec/models/sms_message_collection_spec.rb +1 -1
- data/spec/models/sms_message_spec.rb +1 -1
- data/spec/models/sms_template_spec.rb +1 -1
- data/spec/models/stripped_string_spec.rb +1 -1
- data/spec/models/subaccount_spec.rb +1 -1
- data/spec/models/upload_file_spec.rb +1 -1
- data/spec/models/url_spec.rb +1 -1
- data/spec/models/voice_message_collection_spec.rb +1 -1
- data/spec/models/voice_message_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +76 -72
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 181d1e2f83d007446caf8fe730cda04b27077ae1d3434f6ded912e9a2648534d
|
|
4
|
+
data.tar.gz: f802cb8b0b67a6cf8d9f57ec8d5a7290f6c96a356418e5fcdec453330d0cb457
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0d80a55007c22f60f656e06627c3e606b9f59d9bcb4c2849aad7c430604bebbfe500e854a1d4db8448c798c1426d742379908d2530ac03541455b0cb3b55d84a
|
|
7
|
+
data.tar.gz: c5ade6e08ee9bac732742b661212ef09a5a49b06e9c984b53cfa728acb090ad1930f696ebe229bc45404d9c1af10aeac8ad7072192878112dfc545dfb122b6d5
|
data/clicksend_client.gemspec
CHANGED
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
|
|
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
|
|
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:
|
|
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://
|
|
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:
|
|
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:
|
|
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
|
|
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
|
|
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.
|
|
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 = {}
|