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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +9 -3
- data/clicksend_client.gemspec +4 -3
- data/docs/ContactApi.md +60 -0
- data/docs/InboundSMSRule.md +1 -0
- data/docs/MMSApi.md +117 -0
- data/docs/MmsMessage.md +1 -1
- data/docs/SmsCampaign.md +1 -0
- data/docs/SmsMessage.md +1 -1
- 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 +67 -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/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 +127 -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 +1 -1
- 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 +6 -4
- data/lib/clicksend_client/api_error.rb +1 -1
- data/lib/clicksend_client/configuration.rb +3 -3
- data/lib/clicksend_client/models/account.rb +3 -2
- data/lib/clicksend_client/models/account_forgot_password_verify.rb +3 -2
- data/lib/clicksend_client/models/account_verify.rb +3 -2
- data/lib/clicksend_client/models/address.rb +3 -2
- data/lib/clicksend_client/models/attachment.rb +3 -2
- data/lib/clicksend_client/models/contact.rb +3 -2
- data/lib/clicksend_client/models/contact_list.rb +3 -2
- data/lib/clicksend_client/models/contact_list_import.rb +3 -2
- data/lib/clicksend_client/models/credit_card.rb +3 -2
- data/lib/clicksend_client/models/date_before.rb +4 -3
- data/lib/clicksend_client/models/delivery_issue.rb +3 -2
- data/lib/clicksend_client/models/delivery_receipt_rule.rb +3 -2
- data/lib/clicksend_client/models/email.rb +3 -2
- data/lib/clicksend_client/models/email_address.rb +3 -2
- data/lib/clicksend_client/models/email_campaign.rb +3 -2
- data/lib/clicksend_client/models/email_from.rb +3 -2
- data/lib/clicksend_client/models/email_recipient.rb +3 -2
- data/lib/clicksend_client/models/email_sms_address.rb +3 -2
- data/lib/clicksend_client/models/email_template_new.rb +3 -2
- data/lib/clicksend_client/models/email_template_update.rb +3 -2
- data/lib/clicksend_client/models/fax_message.rb +3 -2
- data/lib/clicksend_client/models/fax_message_collection.rb +3 -2
- data/lib/clicksend_client/models/fields.rb +3 -2
- data/lib/clicksend_client/models/fields_fields.rb +3 -2
- data/lib/clicksend_client/models/forgot_password.rb +3 -2
- data/lib/clicksend_client/models/forgot_username.rb +3 -2
- data/lib/clicksend_client/models/inbound_fax_rule.rb +3 -2
- data/lib/clicksend_client/models/inbound_sms_rule.rb +17 -6
- data/lib/clicksend_client/models/mms_campaign.rb +3 -2
- data/lib/clicksend_client/models/mms_message.rb +3 -7
- data/lib/clicksend_client/models/mms_message_collection.rb +3 -2
- data/lib/clicksend_client/models/post_letter.rb +3 -2
- data/lib/clicksend_client/models/post_postcard.rb +3 -2
- data/lib/clicksend_client/models/post_recipient.rb +3 -2
- data/lib/clicksend_client/models/reseller_account.rb +3 -2
- data/lib/clicksend_client/models/reseller_account_transfer_credit.rb +3 -2
- data/lib/clicksend_client/models/sms_campaign.rb +17 -6
- data/lib/clicksend_client/models/sms_message.rb +3 -7
- data/lib/clicksend_client/models/sms_message_collection.rb +3 -2
- data/lib/clicksend_client/models/sms_template.rb +3 -2
- data/lib/clicksend_client/models/stripped_string.rb +3 -2
- data/lib/clicksend_client/models/subaccount.rb +3 -2
- data/lib/clicksend_client/models/upload_file.rb +3 -2
- data/lib/clicksend_client/models/url.rb +3 -2
- data/lib/clicksend_client/models/voice_message.rb +3 -7
- data/lib/clicksend_client/models/voice_message_collection.rb +3 -2
- data/lib/clicksend_client/version.rb +2 -2
- data/lib/clicksend_client.rb +1 -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 +15 -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/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 +29 -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 +1 -1
- 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 +18 -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/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 +7 -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 +7 -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 +40 -19
- data/clicksend_client-1.0.1.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fea9a103b66f723924a61f641b6f4e02c8cff360fa3eb7ff4e83a46a683ee81d
|
4
|
+
data.tar.gz: c1b5855a730451466fce5679441ebd760eddcea02c2d2698916c31983727716c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3e98ead8bf538aa31ebef0fffab66b04348a925f5046fe9d9b317b40d71299db5799627828faaa0b0d82e84dfa46450c86545fc835a20d361fc2243d7d04a0a
|
7
|
+
data.tar.gz: baf0294f79f31937a0349caafac0d521bf89860641e80dcff70c61a74a5a12e8bae69a1cd473e32e18651cc06b20c869b068bc21f0f10df4b8d5f97b883c9bc1
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
# The official ruby library for ClickSend v3 API
|
2
2
|
|
3
|
-
|
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
|
74
|
+
## Documentation
|
69
75
|
|
70
|
-
Documentation can be found here
|
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
|
|
data/clicksend_client.gemspec
CHANGED
@@ -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.
|
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
|
|
data/docs/InboundSMSRule.md
CHANGED
@@ -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.
|
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
|