clicksend_client 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +78 -0
- data/Rakefile +8 -0
- data/clicksend_client-1.0.1.gem +0 -0
- data/clicksend_client.gemspec +45 -0
- data/docs/Account.md +15 -0
- data/docs/AccountApi.md +433 -0
- data/docs/AccountForgotPasswordVerify.md +10 -0
- data/docs/AccountRechargeApi.md +330 -0
- data/docs/AccountVerify.md +10 -0
- data/docs/Address.md +14 -0
- data/docs/Attachment.md +12 -0
- data/docs/Contact.md +23 -0
- data/docs/ContactApi.md +416 -0
- data/docs/ContactList.md +8 -0
- data/docs/ContactListApi.md +398 -0
- data/docs/ContactListImport.md +9 -0
- data/docs/CountriesApi.md +50 -0
- data/docs/CreditCard.md +13 -0
- data/docs/DateBefore.md +8 -0
- data/docs/DeliveryIssue.md +12 -0
- data/docs/DeliveryIssuesApi.md +119 -0
- data/docs/DeliveryReceiptRule.md +12 -0
- data/docs/DetectAddressApi.md +62 -0
- data/docs/Email.md +15 -0
- data/docs/EmailAddress.md +8 -0
- data/docs/EmailCampaign.md +15 -0
- data/docs/EmailDeliveryReceiptRulesApi.md +286 -0
- data/docs/EmailFrom.md +9 -0
- data/docs/EmailMarketingApi.md +793 -0
- data/docs/EmailRecipient.md +9 -0
- data/docs/EmailSMSAddress.md +10 -0
- data/docs/EmailTemplateNew.md +9 -0
- data/docs/EmailTemplateUpdate.md +9 -0
- data/docs/EmailToSmsApi.md +395 -0
- data/docs/FAXApi.md +401 -0
- data/docs/FAXDeliveryReceiptRulesApi.md +286 -0
- data/docs/FaxMessage.md +15 -0
- data/docs/FaxMessageCollection.md +9 -0
- data/docs/Fields.md +8 -0
- data/docs/FieldsFields.md +23 -0
- data/docs/ForgotPassword.md +8 -0
- data/docs/ForgotUsername.md +9 -0
- data/docs/InboundFAXRulesApi.md +286 -0
- data/docs/InboundFaxRule.md +12 -0
- data/docs/InboundSMSRule.md +14 -0
- data/docs/InboundSMSRulesApi.md +286 -0
- data/docs/MMSApi.md +228 -0
- data/docs/MasterEmailTemplatesApi.md +290 -0
- data/docs/MmsCampaign.md +14 -0
- data/docs/MmsCampaignApi.md +338 -0
- data/docs/MmsMessage.md +17 -0
- data/docs/MmsMessageCollection.md +9 -0
- data/docs/NumberApi.md +183 -0
- data/docs/PostLetter.md +14 -0
- data/docs/PostLetterApi.md +227 -0
- data/docs/PostPostcard.md +9 -0
- data/docs/PostPostcardApi.md +227 -0
- data/docs/PostRecipient.md +16 -0
- data/docs/PostReturnAddressApi.md +284 -0
- data/docs/ReferralAccountApi.md +65 -0
- data/docs/ResellerAccount.md +15 -0
- data/docs/ResellerAccountApi.md +230 -0
- data/docs/ResellerAccountTransferCredit.md +10 -0
- data/docs/SMSApi.md +999 -0
- data/docs/SMSDeliveryReceiptRulesApi.md +286 -0
- data/docs/SearchApi.md +68 -0
- data/docs/SmsCampaign.md +12 -0
- data/docs/SmsCampaignApi.md +338 -0
- data/docs/SmsMessage.md +16 -0
- data/docs/SmsMessageCollection.md +8 -0
- data/docs/SmsTemplate.md +9 -0
- data/docs/StatisticsApi.md +104 -0
- data/docs/StrippedString.md +8 -0
- data/docs/Subaccount.md +18 -0
- data/docs/SubaccountApi.md +338 -0
- data/docs/TimezonesApi.md +65 -0
- data/docs/TransactionalEmailApi.md +237 -0
- data/docs/TransferCreditApi.md +62 -0
- data/docs/UploadApi.md +65 -0
- data/docs/UploadFile.md +8 -0
- data/docs/Url.md +8 -0
- data/docs/UserEmailTemplatesApi.md +284 -0
- data/docs/VoiceApi.md +547 -0
- data/docs/VoiceDeliveryReceiptRulesApi.md +286 -0
- data/docs/VoiceMessage.md +18 -0
- data/docs/VoiceMessageCollection.md +8 -0
- data/lib/clicksend_client.rb +121 -0
- data/lib/clicksend_client/api/account_api.rb +447 -0
- data/lib/clicksend_client/api/account_recharge_api.rb +346 -0
- data/lib/clicksend_client/api/contact_api.rb +463 -0
- data/lib/clicksend_client/api/contact_list_api.rb +427 -0
- data/lib/clicksend_client/api/countries_api.rb +71 -0
- data/lib/clicksend_client/api/delivery_issues_api.rb +139 -0
- data/lib/clicksend_client/api/detect_address_api.rb +77 -0
- data/lib/clicksend_client/api/email_delivery_receipt_rules_api.rb +310 -0
- data/lib/clicksend_client/api/email_marketing_api.rb +829 -0
- data/lib/clicksend_client/api/email_to_sms_api.rb +423 -0
- data/lib/clicksend_client/api/fax_api.rb +425 -0
- data/lib/clicksend_client/api/fax_delivery_receipt_rules_api.rb +310 -0
- data/lib/clicksend_client/api/inbound_fax_rules_api.rb +310 -0
- data/lib/clicksend_client/api/inbound_sms_rules_api.rb +310 -0
- data/lib/clicksend_client/api/master_email_templates_api.rb +323 -0
- data/lib/clicksend_client/api/mms_api.rb +243 -0
- data/lib/clicksend_client/api/mms_campaign_api.rb +361 -0
- data/lib/clicksend_client/api/number_api.rb +213 -0
- data/lib/clicksend_client/api/post_letter_api.rb +248 -0
- data/lib/clicksend_client/api/post_postcard_api.rb +248 -0
- data/lib/clicksend_client/api/post_return_address_api.rb +307 -0
- data/lib/clicksend_client/api/referral_account_api.rb +85 -0
- data/lib/clicksend_client/api/reseller_account_api.rb +253 -0
- data/lib/clicksend_client/api/search_api.rb +92 -0
- data/lib/clicksend_client/api/sms_api.rb +1032 -0
- data/lib/clicksend_client/api/sms_campaign_api.rb +361 -0
- data/lib/clicksend_client/api/sms_delivery_receipt_rules_api.rb +310 -0
- data/lib/clicksend_client/api/statistics_api.rb +119 -0
- data/lib/clicksend_client/api/subaccount_api.rb +361 -0
- data/lib/clicksend_client/api/timezones_api.rb +85 -0
- data/lib/clicksend_client/api/transactional_email_api.rb +260 -0
- data/lib/clicksend_client/api/transfer_credit_api.rb +77 -0
- data/lib/clicksend_client/api/upload_api.rb +84 -0
- data/lib/clicksend_client/api/user_email_templates_api.rb +307 -0
- data/lib/clicksend_client/api/voice_api.rb +570 -0
- data/lib/clicksend_client/api/voice_delivery_receipt_rules_api.rb +310 -0
- data/lib/clicksend_client/api_client.rb +389 -0
- data/lib/clicksend_client/api_error.rb +38 -0
- data/lib/clicksend_client/configuration.rb +209 -0
- data/lib/clicksend_client/models/account.rb +295 -0
- data/lib/clicksend_client/models/account_forgot_password_verify.rb +219 -0
- data/lib/clicksend_client/models/account_verify.rb +220 -0
- data/lib/clicksend_client/models/address.rb +270 -0
- data/lib/clicksend_client/models/attachment.rb +250 -0
- data/lib/clicksend_client/models/contact.rb +345 -0
- data/lib/clicksend_client/models/contact_list.rb +190 -0
- data/lib/clicksend_client/models/contact_list_import.rb +207 -0
- data/lib/clicksend_client/models/credit_card.rb +265 -0
- data/lib/clicksend_client/models/date_before.rb +185 -0
- data/lib/clicksend_client/models/delivery_issue.rb +240 -0
- data/lib/clicksend_client/models/delivery_receipt_rule.rb +250 -0
- data/lib/clicksend_client/models/email.rb +277 -0
- data/lib/clicksend_client/models/email_address.rb +189 -0
- data/lib/clicksend_client/models/email_campaign.rb +287 -0
- data/lib/clicksend_client/models/email_from.rb +200 -0
- data/lib/clicksend_client/models/email_recipient.rb +200 -0
- data/lib/clicksend_client/models/email_sms_address.rb +215 -0
- data/lib/clicksend_client/models/email_template_new.rb +205 -0
- data/lib/clicksend_client/models/email_template_update.rb +200 -0
- data/lib/clicksend_client/models/fax_message.rb +262 -0
- data/lib/clicksend_client/models/fax_message_collection.rb +207 -0
- data/lib/clicksend_client/models/fields.rb +184 -0
- data/lib/clicksend_client/models/fields_fields.rb +335 -0
- data/lib/clicksend_client/models/forgot_password.rb +189 -0
- data/lib/clicksend_client/models/forgot_username.rb +194 -0
- data/lib/clicksend_client/models/inbound_fax_rule.rb +250 -0
- data/lib/clicksend_client/models/inbound_sms_rule.rb +280 -0
- data/lib/clicksend_client/models/mms_campaign.rb +272 -0
- data/lib/clicksend_client/models/mms_message.rb +294 -0
- data/lib/clicksend_client/models/mms_message_collection.rb +207 -0
- data/lib/clicksend_client/models/post_letter.rb +267 -0
- data/lib/clicksend_client/models/post_postcard.rb +209 -0
- data/lib/clicksend_client/models/post_recipient.rb +302 -0
- data/lib/clicksend_client/models/reseller_account.rb +295 -0
- data/lib/clicksend_client/models/reseller_account_transfer_credit.rb +220 -0
- data/lib/clicksend_client/models/sms_campaign.rb +242 -0
- data/lib/clicksend_client/models/sms_message.rb +279 -0
- data/lib/clicksend_client/models/sms_message_collection.rb +192 -0
- data/lib/clicksend_client/models/sms_template.rb +205 -0
- data/lib/clicksend_client/models/stripped_string.rb +190 -0
- data/lib/clicksend_client/models/subaccount.rb +325 -0
- data/lib/clicksend_client/models/upload_file.rb +190 -0
- data/lib/clicksend_client/models/url.rb +190 -0
- data/lib/clicksend_client/models/voice_message.rb +316 -0
- data/lib/clicksend_client/models/voice_message_collection.rb +192 -0
- data/lib/clicksend_client/version.rb +15 -0
- data/spec/api/account_api_spec.rb +131 -0
- data/spec/api/account_recharge_api_spec.rb +107 -0
- data/spec/api/contact_api_spec.rb +129 -0
- data/spec/api/contact_list_api_spec.rb +123 -0
- data/spec/api/countries_api_spec.rb +46 -0
- data/spec/api/delivery_issues_api_spec.rb +60 -0
- data/spec/api/detect_address_api_spec.rb +47 -0
- data/spec/api/email_delivery_receipt_rules_api_spec.rb +98 -0
- data/spec/api/email_marketing_api_spec.rb +213 -0
- data/spec/api/email_to_sms_api_spec.rb +122 -0
- data/spec/api/fax_api_spec.rb +125 -0
- data/spec/api/fax_delivery_receipt_rules_api_spec.rb +98 -0
- data/spec/api/inbound_fax_rules_api_spec.rb +98 -0
- data/spec/api/inbound_sms_rules_api_spec.rb +98 -0
- data/spec/api/master_email_templates_api_spec.rb +99 -0
- data/spec/api/mms_api_spec.rb +84 -0
- data/spec/api/mms_campaign_api_spec.rb +109 -0
- data/spec/api/number_api_spec.rb +76 -0
- data/spec/api/post_letter_api_spec.rb +84 -0
- data/spec/api/post_postcard_api_spec.rb +84 -0
- data/spec/api/post_return_address_api_spec.rb +97 -0
- data/spec/api/referral_account_api_spec.rb +48 -0
- data/spec/api/reseller_account_api_spec.rb +85 -0
- data/spec/api/search_api_spec.rb +49 -0
- data/spec/api/sms_api_spec.rb +259 -0
- data/spec/api/sms_campaign_api_spec.rb +109 -0
- data/spec/api/sms_delivery_receipt_rules_api_spec.rb +98 -0
- data/spec/api/statistics_api_spec.rb +57 -0
- data/spec/api/subaccount_api_spec.rb +109 -0
- data/spec/api/timezones_api_spec.rb +48 -0
- data/spec/api/transactional_email_api_spec.rb +88 -0
- data/spec/api/transfer_credit_api_spec.rb +47 -0
- data/spec/api/upload_api_spec.rb +48 -0
- data/spec/api/user_email_templates_api_spec.rb +97 -0
- data/spec/api/voice_api_spec.rb +157 -0
- data/spec/api/voice_delivery_receipt_rules_api_spec.rb +98 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_forgot_password_verify_spec.rb +53 -0
- data/spec/models/account_spec.rb +83 -0
- data/spec/models/account_verify_spec.rb +53 -0
- data/spec/models/address_spec.rb +77 -0
- data/spec/models/attachment_spec.rb +65 -0
- data/spec/models/contact_list_import_spec.rb +47 -0
- data/spec/models/contact_list_spec.rb +41 -0
- data/spec/models/contact_spec.rb +131 -0
- data/spec/models/credit_card_spec.rb +71 -0
- data/spec/models/date_before_spec.rb +41 -0
- data/spec/models/delivery_issue_spec.rb +65 -0
- data/spec/models/delivery_receipt_rule_spec.rb +65 -0
- data/spec/models/email_address_spec.rb +41 -0
- data/spec/models/email_campaign_spec.rb +83 -0
- data/spec/models/email_from_spec.rb +47 -0
- data/spec/models/email_recipient_spec.rb +47 -0
- data/spec/models/email_sms_address_spec.rb +53 -0
- data/spec/models/email_spec.rb +83 -0
- data/spec/models/email_template_new_spec.rb +47 -0
- data/spec/models/email_template_update_spec.rb +47 -0
- data/spec/models/fax_message_collection_spec.rb +47 -0
- data/spec/models/fax_message_spec.rb +83 -0
- data/spec/models/fields_fields_spec.rb +131 -0
- data/spec/models/fields_spec.rb +41 -0
- data/spec/models/forgot_password_spec.rb +41 -0
- data/spec/models/forgot_username_spec.rb +47 -0
- data/spec/models/inbound_fax_rule_spec.rb +65 -0
- data/spec/models/inbound_sms_rule_spec.rb +77 -0
- data/spec/models/mms_campaign_spec.rb +77 -0
- data/spec/models/mms_message_collection_spec.rb +47 -0
- data/spec/models/mms_message_spec.rb +95 -0
- data/spec/models/post_letter_spec.rb +77 -0
- data/spec/models/post_postcard_spec.rb +47 -0
- data/spec/models/post_recipient_spec.rb +89 -0
- data/spec/models/reseller_account_spec.rb +83 -0
- data/spec/models/reseller_account_transfer_credit_spec.rb +53 -0
- data/spec/models/sms_campaign_spec.rb +65 -0
- data/spec/models/sms_message_collection_spec.rb +41 -0
- data/spec/models/sms_message_spec.rb +89 -0
- data/spec/models/sms_template_spec.rb +47 -0
- data/spec/models/stripped_string_spec.rb +41 -0
- data/spec/models/subaccount_spec.rb +101 -0
- data/spec/models/upload_file_spec.rb +41 -0
- data/spec/models/url_spec.rb +41 -0
- data/spec/models/voice_message_collection_spec.rb +41 -0
- data/spec/models/voice_message_spec.rb +101 -0
- data/spec/spec_helper.rb +111 -0
- metadata +568 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
# ClickSendClient::EmailRecipient
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**email** | **String** | Email of the recipient. |
|
7
|
+
**name** | **String** | Name of the recipient. | [optional]
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# ClickSendClient::EmailSMSAddress
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**email_address** | **String** | Your email address |
|
7
|
+
**from** | **String** | Your sender id |
|
8
|
+
**subaccount_id** | **String** | Your subaccount id | [optional]
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# ClickSendClient::EmailTemplateNew
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**template_name** | **String** | The intended name for the new template. |
|
7
|
+
**template_id_master** | **Float** | The ID of the master template you want to base on. |
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# ClickSendClient::EmailTemplateUpdate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**template_name** | **String** | The intended name for the template. | [optional]
|
7
|
+
**body** | **String** | Your template body. |
|
8
|
+
|
9
|
+
|
@@ -0,0 +1,395 @@
|
|
1
|
+
# ClickSendClient::EmailToSmsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://rest.clicksend.com/v3*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**sms_email_sms_get**](EmailToSmsApi.md#sms_email_sms_get) | **GET** /sms/email-sms | Get list of email to sms allowed addresses
|
8
|
+
[**sms_email_sms_post**](EmailToSmsApi.md#sms_email_sms_post) | **POST** /sms/email-sms | Create email to sms allowed address
|
9
|
+
[**sms_email_sms_stripped_string_delete**](EmailToSmsApi.md#sms_email_sms_stripped_string_delete) | **DELETE** /sms/email-sms-stripped-strings/{rule_id} | Delete email to sms stripped string rule
|
10
|
+
[**sms_email_sms_stripped_string_get**](EmailToSmsApi.md#sms_email_sms_stripped_string_get) | **GET** /sms/email-sms-stripped-strings/{rule_id} | Get email to sms stripped string rule
|
11
|
+
[**sms_email_sms_stripped_string_post**](EmailToSmsApi.md#sms_email_sms_stripped_string_post) | **POST** /sms/email-sms-stripped-strings | Create email to sms stripped string rule
|
12
|
+
[**sms_email_sms_stripped_string_put**](EmailToSmsApi.md#sms_email_sms_stripped_string_put) | **PUT** /sms/email-sms-stripped-strings/{rule_id} | Update email to sms stripped string rule
|
13
|
+
[**sms_email_sms_stripped_strings_get**](EmailToSmsApi.md#sms_email_sms_stripped_strings_get) | **GET** /sms/email-sms-stripped-strings | Get list of email to sms stripped string rules
|
14
|
+
|
15
|
+
|
16
|
+
# **sms_email_sms_get**
|
17
|
+
> String sms_email_sms_get(opts)
|
18
|
+
|
19
|
+
Get list of email to sms allowed addresses
|
20
|
+
|
21
|
+
Get list of email to sms allowed addresses
|
22
|
+
|
23
|
+
### Example
|
24
|
+
```ruby
|
25
|
+
# load the gem
|
26
|
+
require 'clicksend_client'
|
27
|
+
# setup authorization
|
28
|
+
ClickSendClient.configure do |config|
|
29
|
+
# Configure HTTP basic authorization: BasicAuth
|
30
|
+
config.username = 'YOUR USERNAME'
|
31
|
+
config.password = 'YOUR PASSWORD'
|
32
|
+
end
|
33
|
+
|
34
|
+
api_instance = ClickSendClient::EmailToSmsApi.new
|
35
|
+
|
36
|
+
opts = {
|
37
|
+
page: 1, # Integer | Page number
|
38
|
+
limit: 10 # Integer | Number of records per page
|
39
|
+
}
|
40
|
+
|
41
|
+
begin
|
42
|
+
#Get list of email to sms allowed addresses
|
43
|
+
result = api_instance.sms_email_sms_get(opts)
|
44
|
+
p result
|
45
|
+
rescue ClickSendClient::ApiError => e
|
46
|
+
puts "Exception when calling EmailToSmsApi->sms_email_sms_get: #{e}"
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
### Parameters
|
51
|
+
|
52
|
+
Name | Type | Description | Notes
|
53
|
+
------------- | ------------- | ------------- | -------------
|
54
|
+
**page** | **Integer**| Page number | [optional] [default to 1]
|
55
|
+
**limit** | **Integer**| Number of records per page | [optional] [default to 10]
|
56
|
+
|
57
|
+
### Return type
|
58
|
+
|
59
|
+
**String**
|
60
|
+
|
61
|
+
### Authorization
|
62
|
+
|
63
|
+
[BasicAuth](../README.md#BasicAuth)
|
64
|
+
|
65
|
+
### HTTP request headers
|
66
|
+
|
67
|
+
- **Content-Type**: application/json
|
68
|
+
- **Accept**: application/json
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
# **sms_email_sms_post**
|
73
|
+
> String sms_email_sms_post(email_sms_address)
|
74
|
+
|
75
|
+
Create email to sms allowed address
|
76
|
+
|
77
|
+
Create email to sms allowed address
|
78
|
+
|
79
|
+
### Example
|
80
|
+
```ruby
|
81
|
+
# load the gem
|
82
|
+
require 'clicksend_client'
|
83
|
+
# setup authorization
|
84
|
+
ClickSendClient.configure do |config|
|
85
|
+
# Configure HTTP basic authorization: BasicAuth
|
86
|
+
config.username = 'YOUR USERNAME'
|
87
|
+
config.password = 'YOUR PASSWORD'
|
88
|
+
end
|
89
|
+
|
90
|
+
api_instance = ClickSendClient::EmailToSmsApi.new
|
91
|
+
|
92
|
+
email_sms_address = ClickSendClient::EmailSMSAddress.new # EmailSMSAddress | EmailSMSAddress model
|
93
|
+
|
94
|
+
|
95
|
+
begin
|
96
|
+
#Create email to sms allowed address
|
97
|
+
result = api_instance.sms_email_sms_post(email_sms_address)
|
98
|
+
p result
|
99
|
+
rescue ClickSendClient::ApiError => e
|
100
|
+
puts "Exception when calling EmailToSmsApi->sms_email_sms_post: #{e}"
|
101
|
+
end
|
102
|
+
```
|
103
|
+
|
104
|
+
### Parameters
|
105
|
+
|
106
|
+
Name | Type | Description | Notes
|
107
|
+
------------- | ------------- | ------------- | -------------
|
108
|
+
**email_sms_address** | [**EmailSMSAddress**](EmailSMSAddress.md)| EmailSMSAddress model |
|
109
|
+
|
110
|
+
### Return type
|
111
|
+
|
112
|
+
**String**
|
113
|
+
|
114
|
+
### Authorization
|
115
|
+
|
116
|
+
[BasicAuth](../README.md#BasicAuth)
|
117
|
+
|
118
|
+
### HTTP request headers
|
119
|
+
|
120
|
+
- **Content-Type**: application/json
|
121
|
+
- **Accept**: application/json
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
# **sms_email_sms_stripped_string_delete**
|
126
|
+
> String sms_email_sms_stripped_string_delete(rule_id)
|
127
|
+
|
128
|
+
Delete email to sms stripped string rule
|
129
|
+
|
130
|
+
Delete email to sms stripped string rule
|
131
|
+
|
132
|
+
### Example
|
133
|
+
```ruby
|
134
|
+
# load the gem
|
135
|
+
require 'clicksend_client'
|
136
|
+
# setup authorization
|
137
|
+
ClickSendClient.configure do |config|
|
138
|
+
# Configure HTTP basic authorization: BasicAuth
|
139
|
+
config.username = 'YOUR USERNAME'
|
140
|
+
config.password = 'YOUR PASSWORD'
|
141
|
+
end
|
142
|
+
|
143
|
+
api_instance = ClickSendClient::EmailToSmsApi.new
|
144
|
+
|
145
|
+
rule_id = 56 # Integer | Your rule id
|
146
|
+
|
147
|
+
|
148
|
+
begin
|
149
|
+
#Delete email to sms stripped string rule
|
150
|
+
result = api_instance.sms_email_sms_stripped_string_delete(rule_id)
|
151
|
+
p result
|
152
|
+
rescue ClickSendClient::ApiError => e
|
153
|
+
puts "Exception when calling EmailToSmsApi->sms_email_sms_stripped_string_delete: #{e}"
|
154
|
+
end
|
155
|
+
```
|
156
|
+
|
157
|
+
### Parameters
|
158
|
+
|
159
|
+
Name | Type | Description | Notes
|
160
|
+
------------- | ------------- | ------------- | -------------
|
161
|
+
**rule_id** | **Integer**| Your rule id |
|
162
|
+
|
163
|
+
### Return type
|
164
|
+
|
165
|
+
**String**
|
166
|
+
|
167
|
+
### Authorization
|
168
|
+
|
169
|
+
[BasicAuth](../README.md#BasicAuth)
|
170
|
+
|
171
|
+
### HTTP request headers
|
172
|
+
|
173
|
+
- **Content-Type**: application/json
|
174
|
+
- **Accept**: application/json
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
# **sms_email_sms_stripped_string_get**
|
179
|
+
> String sms_email_sms_stripped_string_get(rule_id)
|
180
|
+
|
181
|
+
Get email to sms stripped string rule
|
182
|
+
|
183
|
+
Get email to sms stripped string rule
|
184
|
+
|
185
|
+
### Example
|
186
|
+
```ruby
|
187
|
+
# load the gem
|
188
|
+
require 'clicksend_client'
|
189
|
+
# setup authorization
|
190
|
+
ClickSendClient.configure do |config|
|
191
|
+
# Configure HTTP basic authorization: BasicAuth
|
192
|
+
config.username = 'YOUR USERNAME'
|
193
|
+
config.password = 'YOUR PASSWORD'
|
194
|
+
end
|
195
|
+
|
196
|
+
api_instance = ClickSendClient::EmailToSmsApi.new
|
197
|
+
|
198
|
+
rule_id = 56 # Integer | Your rule id
|
199
|
+
|
200
|
+
|
201
|
+
begin
|
202
|
+
#Get email to sms stripped string rule
|
203
|
+
result = api_instance.sms_email_sms_stripped_string_get(rule_id)
|
204
|
+
p result
|
205
|
+
rescue ClickSendClient::ApiError => e
|
206
|
+
puts "Exception when calling EmailToSmsApi->sms_email_sms_stripped_string_get: #{e}"
|
207
|
+
end
|
208
|
+
```
|
209
|
+
|
210
|
+
### Parameters
|
211
|
+
|
212
|
+
Name | Type | Description | Notes
|
213
|
+
------------- | ------------- | ------------- | -------------
|
214
|
+
**rule_id** | **Integer**| Your rule id |
|
215
|
+
|
216
|
+
### Return type
|
217
|
+
|
218
|
+
**String**
|
219
|
+
|
220
|
+
### Authorization
|
221
|
+
|
222
|
+
[BasicAuth](../README.md#BasicAuth)
|
223
|
+
|
224
|
+
### HTTP request headers
|
225
|
+
|
226
|
+
- **Content-Type**: application/json
|
227
|
+
- **Accept**: application/json
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
# **sms_email_sms_stripped_string_post**
|
232
|
+
> String sms_email_sms_stripped_string_post(stripped_string)
|
233
|
+
|
234
|
+
Create email to sms stripped string rule
|
235
|
+
|
236
|
+
Create email to sms stripped string rules
|
237
|
+
|
238
|
+
### Example
|
239
|
+
```ruby
|
240
|
+
# load the gem
|
241
|
+
require 'clicksend_client'
|
242
|
+
# setup authorization
|
243
|
+
ClickSendClient.configure do |config|
|
244
|
+
# Configure HTTP basic authorization: BasicAuth
|
245
|
+
config.username = 'YOUR USERNAME'
|
246
|
+
config.password = 'YOUR PASSWORD'
|
247
|
+
end
|
248
|
+
|
249
|
+
api_instance = ClickSendClient::EmailToSmsApi.new
|
250
|
+
|
251
|
+
stripped_string = ClickSendClient::StrippedString.new # StrippedString | StrippedString model
|
252
|
+
|
253
|
+
|
254
|
+
begin
|
255
|
+
#Create email to sms stripped string rule
|
256
|
+
result = api_instance.sms_email_sms_stripped_string_post(stripped_string)
|
257
|
+
p result
|
258
|
+
rescue ClickSendClient::ApiError => e
|
259
|
+
puts "Exception when calling EmailToSmsApi->sms_email_sms_stripped_string_post: #{e}"
|
260
|
+
end
|
261
|
+
```
|
262
|
+
|
263
|
+
### Parameters
|
264
|
+
|
265
|
+
Name | Type | Description | Notes
|
266
|
+
------------- | ------------- | ------------- | -------------
|
267
|
+
**stripped_string** | [**StrippedString**](StrippedString.md)| StrippedString model |
|
268
|
+
|
269
|
+
### Return type
|
270
|
+
|
271
|
+
**String**
|
272
|
+
|
273
|
+
### Authorization
|
274
|
+
|
275
|
+
[BasicAuth](../README.md#BasicAuth)
|
276
|
+
|
277
|
+
### HTTP request headers
|
278
|
+
|
279
|
+
- **Content-Type**: application/json
|
280
|
+
- **Accept**: application/json
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
# **sms_email_sms_stripped_string_put**
|
285
|
+
> String sms_email_sms_stripped_string_put(stripped_string, rule_id)
|
286
|
+
|
287
|
+
Update email to sms stripped string rule
|
288
|
+
|
289
|
+
Update email to sms stripped string rule
|
290
|
+
|
291
|
+
### Example
|
292
|
+
```ruby
|
293
|
+
# load the gem
|
294
|
+
require 'clicksend_client'
|
295
|
+
# setup authorization
|
296
|
+
ClickSendClient.configure do |config|
|
297
|
+
# Configure HTTP basic authorization: BasicAuth
|
298
|
+
config.username = 'YOUR USERNAME'
|
299
|
+
config.password = 'YOUR PASSWORD'
|
300
|
+
end
|
301
|
+
|
302
|
+
api_instance = ClickSendClient::EmailToSmsApi.new
|
303
|
+
|
304
|
+
stripped_string = ClickSendClient::StrippedString.new # StrippedString | StrippedString model
|
305
|
+
|
306
|
+
rule_id = 56 # Integer | Your rule id
|
307
|
+
|
308
|
+
|
309
|
+
begin
|
310
|
+
#Update email to sms stripped string rule
|
311
|
+
result = api_instance.sms_email_sms_stripped_string_put(stripped_string, rule_id)
|
312
|
+
p result
|
313
|
+
rescue ClickSendClient::ApiError => e
|
314
|
+
puts "Exception when calling EmailToSmsApi->sms_email_sms_stripped_string_put: #{e}"
|
315
|
+
end
|
316
|
+
```
|
317
|
+
|
318
|
+
### Parameters
|
319
|
+
|
320
|
+
Name | Type | Description | Notes
|
321
|
+
------------- | ------------- | ------------- | -------------
|
322
|
+
**stripped_string** | [**StrippedString**](StrippedString.md)| StrippedString model |
|
323
|
+
**rule_id** | **Integer**| Your rule id |
|
324
|
+
|
325
|
+
### Return type
|
326
|
+
|
327
|
+
**String**
|
328
|
+
|
329
|
+
### Authorization
|
330
|
+
|
331
|
+
[BasicAuth](../README.md#BasicAuth)
|
332
|
+
|
333
|
+
### HTTP request headers
|
334
|
+
|
335
|
+
- **Content-Type**: application/json
|
336
|
+
- **Accept**: application/json
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
# **sms_email_sms_stripped_strings_get**
|
341
|
+
> String sms_email_sms_stripped_strings_get(opts)
|
342
|
+
|
343
|
+
Get list of email to sms stripped string rules
|
344
|
+
|
345
|
+
Get list of email to sms stripped string rules
|
346
|
+
|
347
|
+
### Example
|
348
|
+
```ruby
|
349
|
+
# load the gem
|
350
|
+
require 'clicksend_client'
|
351
|
+
# setup authorization
|
352
|
+
ClickSendClient.configure do |config|
|
353
|
+
# Configure HTTP basic authorization: BasicAuth
|
354
|
+
config.username = 'YOUR USERNAME'
|
355
|
+
config.password = 'YOUR PASSWORD'
|
356
|
+
end
|
357
|
+
|
358
|
+
api_instance = ClickSendClient::EmailToSmsApi.new
|
359
|
+
|
360
|
+
opts = {
|
361
|
+
page: 1, # Integer | Page number
|
362
|
+
limit: 10 # Integer | Number of records per page
|
363
|
+
}
|
364
|
+
|
365
|
+
begin
|
366
|
+
#Get list of email to sms stripped string rules
|
367
|
+
result = api_instance.sms_email_sms_stripped_strings_get(opts)
|
368
|
+
p result
|
369
|
+
rescue ClickSendClient::ApiError => e
|
370
|
+
puts "Exception when calling EmailToSmsApi->sms_email_sms_stripped_strings_get: #{e}"
|
371
|
+
end
|
372
|
+
```
|
373
|
+
|
374
|
+
### Parameters
|
375
|
+
|
376
|
+
Name | Type | Description | Notes
|
377
|
+
------------- | ------------- | ------------- | -------------
|
378
|
+
**page** | **Integer**| Page number | [optional] [default to 1]
|
379
|
+
**limit** | **Integer**| Number of records per page | [optional] [default to 10]
|
380
|
+
|
381
|
+
### Return type
|
382
|
+
|
383
|
+
**String**
|
384
|
+
|
385
|
+
### Authorization
|
386
|
+
|
387
|
+
[BasicAuth](../README.md#BasicAuth)
|
388
|
+
|
389
|
+
### HTTP request headers
|
390
|
+
|
391
|
+
- **Content-Type**: application/json
|
392
|
+
- **Accept**: application/json
|
393
|
+
|
394
|
+
|
395
|
+
|
data/docs/FAXApi.md
ADDED
@@ -0,0 +1,401 @@
|
|
1
|
+
# ClickSendClient::FAXApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://rest.clicksend.com/v3*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**fax_history_get**](FAXApi.md#fax_history_get) | **GET** /fax/history | Get a list of Fax History.
|
8
|
+
[**fax_price_post**](FAXApi.md#fax_price_post) | **POST** /fax/price | Calculate Total Price for Fax Messages sent
|
9
|
+
[**fax_receipts_by_message_id_get**](FAXApi.md#fax_receipts_by_message_id_get) | **GET** /fax/receipts/{message_id} | Get a single fax receipt based on message id.
|
10
|
+
[**fax_receipts_get**](FAXApi.md#fax_receipts_get) | **GET** /fax/receipts | Get all delivery receipts
|
11
|
+
[**fax_receipts_post**](FAXApi.md#fax_receipts_post) | **POST** /fax/receipts | Add a delivery receipt
|
12
|
+
[**fax_receipts_read_put**](FAXApi.md#fax_receipts_read_put) | **PUT** /fax/receipts-read | Mark delivery receipts as read
|
13
|
+
[**fax_send_post**](FAXApi.md#fax_send_post) | **POST** /fax/send | Send a fax using supplied supported file-types.
|
14
|
+
|
15
|
+
|
16
|
+
# **fax_history_get**
|
17
|
+
> String fax_history_get(opts)
|
18
|
+
|
19
|
+
Get a list of Fax History.
|
20
|
+
|
21
|
+
Get a list of Fax History.
|
22
|
+
|
23
|
+
### Example
|
24
|
+
```ruby
|
25
|
+
# load the gem
|
26
|
+
require 'clicksend_client'
|
27
|
+
# setup authorization
|
28
|
+
ClickSendClient.configure do |config|
|
29
|
+
# Configure HTTP basic authorization: BasicAuth
|
30
|
+
config.username = 'YOUR USERNAME'
|
31
|
+
config.password = 'YOUR PASSWORD'
|
32
|
+
end
|
33
|
+
|
34
|
+
api_instance = ClickSendClient::FAXApi.new
|
35
|
+
|
36
|
+
opts = {
|
37
|
+
date_from: 56, # Integer | Customize result by setting from date (timestsamp) Example: 1457572619.
|
38
|
+
date_to: 56, # Integer | Customize result by setting to date (timestamp) Example: 1457573000.
|
39
|
+
q: 'q_example', # String | Custom query Example: status:Sent,status_code:201.
|
40
|
+
order: 'order_example', # String | Order result by Example: date_added:desc,list_id:desc.
|
41
|
+
page: 1, # Integer | Page number
|
42
|
+
limit: 10 # Integer | Number of records per page
|
43
|
+
}
|
44
|
+
|
45
|
+
begin
|
46
|
+
#Get a list of Fax History.
|
47
|
+
result = api_instance.fax_history_get(opts)
|
48
|
+
p result
|
49
|
+
rescue ClickSendClient::ApiError => e
|
50
|
+
puts "Exception when calling FAXApi->fax_history_get: #{e}"
|
51
|
+
end
|
52
|
+
```
|
53
|
+
|
54
|
+
### Parameters
|
55
|
+
|
56
|
+
Name | Type | Description | Notes
|
57
|
+
------------- | ------------- | ------------- | -------------
|
58
|
+
**date_from** | **Integer**| Customize result by setting from date (timestsamp) Example: 1457572619. | [optional]
|
59
|
+
**date_to** | **Integer**| Customize result by setting to date (timestamp) Example: 1457573000. | [optional]
|
60
|
+
**q** | **String**| Custom query Example: status:Sent,status_code:201. | [optional]
|
61
|
+
**order** | **String**| Order result by Example: date_added:desc,list_id:desc. | [optional]
|
62
|
+
**page** | **Integer**| Page number | [optional] [default to 1]
|
63
|
+
**limit** | **Integer**| Number of records per page | [optional] [default to 10]
|
64
|
+
|
65
|
+
### Return type
|
66
|
+
|
67
|
+
**String**
|
68
|
+
|
69
|
+
### Authorization
|
70
|
+
|
71
|
+
[BasicAuth](../README.md#BasicAuth)
|
72
|
+
|
73
|
+
### HTTP request headers
|
74
|
+
|
75
|
+
- **Content-Type**: application/json
|
76
|
+
- **Accept**: application/json
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
# **fax_price_post**
|
81
|
+
> String fax_price_post(fax_message)
|
82
|
+
|
83
|
+
Calculate Total Price for Fax Messages sent
|
84
|
+
|
85
|
+
Calculate Total Price for Fax Messages sent
|
86
|
+
|
87
|
+
### Example
|
88
|
+
```ruby
|
89
|
+
# load the gem
|
90
|
+
require 'clicksend_client'
|
91
|
+
# setup authorization
|
92
|
+
ClickSendClient.configure do |config|
|
93
|
+
# Configure HTTP basic authorization: BasicAuth
|
94
|
+
config.username = 'YOUR USERNAME'
|
95
|
+
config.password = 'YOUR PASSWORD'
|
96
|
+
end
|
97
|
+
|
98
|
+
api_instance = ClickSendClient::FAXApi.new
|
99
|
+
|
100
|
+
fax_message = ClickSendClient::FaxMessageCollection.new # FaxMessageCollection | FaxMessageCollection model
|
101
|
+
|
102
|
+
|
103
|
+
begin
|
104
|
+
#Calculate Total Price for Fax Messages sent
|
105
|
+
result = api_instance.fax_price_post(fax_message)
|
106
|
+
p result
|
107
|
+
rescue ClickSendClient::ApiError => e
|
108
|
+
puts "Exception when calling FAXApi->fax_price_post: #{e}"
|
109
|
+
end
|
110
|
+
```
|
111
|
+
|
112
|
+
### Parameters
|
113
|
+
|
114
|
+
Name | Type | Description | Notes
|
115
|
+
------------- | ------------- | ------------- | -------------
|
116
|
+
**fax_message** | [**FaxMessageCollection**](FaxMessageCollection.md)| FaxMessageCollection model |
|
117
|
+
|
118
|
+
### Return type
|
119
|
+
|
120
|
+
**String**
|
121
|
+
|
122
|
+
### Authorization
|
123
|
+
|
124
|
+
[BasicAuth](../README.md#BasicAuth)
|
125
|
+
|
126
|
+
### HTTP request headers
|
127
|
+
|
128
|
+
- **Content-Type**: application/json
|
129
|
+
- **Accept**: application/json
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
# **fax_receipts_by_message_id_get**
|
134
|
+
> String fax_receipts_by_message_id_get(message_id)
|
135
|
+
|
136
|
+
Get a single fax receipt based on message id.
|
137
|
+
|
138
|
+
Get a single fax receipt based on message id.
|
139
|
+
|
140
|
+
### Example
|
141
|
+
```ruby
|
142
|
+
# load the gem
|
143
|
+
require 'clicksend_client'
|
144
|
+
# setup authorization
|
145
|
+
ClickSendClient.configure do |config|
|
146
|
+
# Configure HTTP basic authorization: BasicAuth
|
147
|
+
config.username = 'YOUR USERNAME'
|
148
|
+
config.password = 'YOUR PASSWORD'
|
149
|
+
end
|
150
|
+
|
151
|
+
api_instance = ClickSendClient::FAXApi.new
|
152
|
+
|
153
|
+
message_id = 'message_id_example' # String | ID of the message receipt to retrieve
|
154
|
+
|
155
|
+
|
156
|
+
begin
|
157
|
+
#Get a single fax receipt based on message id.
|
158
|
+
result = api_instance.fax_receipts_by_message_id_get(message_id)
|
159
|
+
p result
|
160
|
+
rescue ClickSendClient::ApiError => e
|
161
|
+
puts "Exception when calling FAXApi->fax_receipts_by_message_id_get: #{e}"
|
162
|
+
end
|
163
|
+
```
|
164
|
+
|
165
|
+
### Parameters
|
166
|
+
|
167
|
+
Name | Type | Description | Notes
|
168
|
+
------------- | ------------- | ------------- | -------------
|
169
|
+
**message_id** | **String**| ID of the message receipt to retrieve |
|
170
|
+
|
171
|
+
### Return type
|
172
|
+
|
173
|
+
**String**
|
174
|
+
|
175
|
+
### Authorization
|
176
|
+
|
177
|
+
[BasicAuth](../README.md#BasicAuth)
|
178
|
+
|
179
|
+
### HTTP request headers
|
180
|
+
|
181
|
+
- **Content-Type**: application/json
|
182
|
+
- **Accept**: application/json
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
# **fax_receipts_get**
|
187
|
+
> String fax_receipts_get(opts)
|
188
|
+
|
189
|
+
Get all delivery receipts
|
190
|
+
|
191
|
+
Get all delivery receipts
|
192
|
+
|
193
|
+
### Example
|
194
|
+
```ruby
|
195
|
+
# load the gem
|
196
|
+
require 'clicksend_client'
|
197
|
+
# setup authorization
|
198
|
+
ClickSendClient.configure do |config|
|
199
|
+
# Configure HTTP basic authorization: BasicAuth
|
200
|
+
config.username = 'YOUR USERNAME'
|
201
|
+
config.password = 'YOUR PASSWORD'
|
202
|
+
end
|
203
|
+
|
204
|
+
api_instance = ClickSendClient::FAXApi.new
|
205
|
+
|
206
|
+
opts = {
|
207
|
+
page: 1, # Integer | Page number
|
208
|
+
limit: 10 # Integer | Number of records per page
|
209
|
+
}
|
210
|
+
|
211
|
+
begin
|
212
|
+
#Get all delivery receipts
|
213
|
+
result = api_instance.fax_receipts_get(opts)
|
214
|
+
p result
|
215
|
+
rescue ClickSendClient::ApiError => e
|
216
|
+
puts "Exception when calling FAXApi->fax_receipts_get: #{e}"
|
217
|
+
end
|
218
|
+
```
|
219
|
+
|
220
|
+
### Parameters
|
221
|
+
|
222
|
+
Name | Type | Description | Notes
|
223
|
+
------------- | ------------- | ------------- | -------------
|
224
|
+
**page** | **Integer**| Page number | [optional] [default to 1]
|
225
|
+
**limit** | **Integer**| Number of records per page | [optional] [default to 10]
|
226
|
+
|
227
|
+
### Return type
|
228
|
+
|
229
|
+
**String**
|
230
|
+
|
231
|
+
### Authorization
|
232
|
+
|
233
|
+
[BasicAuth](../README.md#BasicAuth)
|
234
|
+
|
235
|
+
### HTTP request headers
|
236
|
+
|
237
|
+
- **Content-Type**: application/json
|
238
|
+
- **Accept**: application/json
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
# **fax_receipts_post**
|
243
|
+
> String fax_receipts_post(url)
|
244
|
+
|
245
|
+
Add a delivery receipt
|
246
|
+
|
247
|
+
Add a delivery receipt
|
248
|
+
|
249
|
+
### Example
|
250
|
+
```ruby
|
251
|
+
# load the gem
|
252
|
+
require 'clicksend_client'
|
253
|
+
# setup authorization
|
254
|
+
ClickSendClient.configure do |config|
|
255
|
+
# Configure HTTP basic authorization: BasicAuth
|
256
|
+
config.username = 'YOUR USERNAME'
|
257
|
+
config.password = 'YOUR PASSWORD'
|
258
|
+
end
|
259
|
+
|
260
|
+
api_instance = ClickSendClient::FAXApi.new
|
261
|
+
|
262
|
+
url = ClickSendClient::Url.new # Url | Url model
|
263
|
+
|
264
|
+
|
265
|
+
begin
|
266
|
+
#Add a delivery receipt
|
267
|
+
result = api_instance.fax_receipts_post(url)
|
268
|
+
p result
|
269
|
+
rescue ClickSendClient::ApiError => e
|
270
|
+
puts "Exception when calling FAXApi->fax_receipts_post: #{e}"
|
271
|
+
end
|
272
|
+
```
|
273
|
+
|
274
|
+
### Parameters
|
275
|
+
|
276
|
+
Name | Type | Description | Notes
|
277
|
+
------------- | ------------- | ------------- | -------------
|
278
|
+
**url** | [**Url**](Url.md)| Url model |
|
279
|
+
|
280
|
+
### Return type
|
281
|
+
|
282
|
+
**String**
|
283
|
+
|
284
|
+
### Authorization
|
285
|
+
|
286
|
+
[BasicAuth](../README.md#BasicAuth)
|
287
|
+
|
288
|
+
### HTTP request headers
|
289
|
+
|
290
|
+
- **Content-Type**: application/json
|
291
|
+
- **Accept**: application/json
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
# **fax_receipts_read_put**
|
296
|
+
> String fax_receipts_read_put(opts)
|
297
|
+
|
298
|
+
Mark delivery receipts as read
|
299
|
+
|
300
|
+
Mark delivery receipts as read
|
301
|
+
|
302
|
+
### Example
|
303
|
+
```ruby
|
304
|
+
# load the gem
|
305
|
+
require 'clicksend_client'
|
306
|
+
# setup authorization
|
307
|
+
ClickSendClient.configure do |config|
|
308
|
+
# Configure HTTP basic authorization: BasicAuth
|
309
|
+
config.username = 'YOUR USERNAME'
|
310
|
+
config.password = 'YOUR PASSWORD'
|
311
|
+
end
|
312
|
+
|
313
|
+
api_instance = ClickSendClient::FAXApi.new
|
314
|
+
|
315
|
+
opts = {
|
316
|
+
date_before: ClickSendClient::DateBefore.new # DateBefore | DateBefore model
|
317
|
+
}
|
318
|
+
|
319
|
+
begin
|
320
|
+
#Mark delivery receipts as read
|
321
|
+
result = api_instance.fax_receipts_read_put(opts)
|
322
|
+
p result
|
323
|
+
rescue ClickSendClient::ApiError => e
|
324
|
+
puts "Exception when calling FAXApi->fax_receipts_read_put: #{e}"
|
325
|
+
end
|
326
|
+
```
|
327
|
+
|
328
|
+
### Parameters
|
329
|
+
|
330
|
+
Name | Type | Description | Notes
|
331
|
+
------------- | ------------- | ------------- | -------------
|
332
|
+
**date_before** | [**DateBefore**](DateBefore.md)| DateBefore model | [optional]
|
333
|
+
|
334
|
+
### Return type
|
335
|
+
|
336
|
+
**String**
|
337
|
+
|
338
|
+
### Authorization
|
339
|
+
|
340
|
+
[BasicAuth](../README.md#BasicAuth)
|
341
|
+
|
342
|
+
### HTTP request headers
|
343
|
+
|
344
|
+
- **Content-Type**: application/json
|
345
|
+
- **Accept**: application/json
|
346
|
+
|
347
|
+
|
348
|
+
|
349
|
+
# **fax_send_post**
|
350
|
+
> String fax_send_post(fax_message)
|
351
|
+
|
352
|
+
Send a fax using supplied supported file-types.
|
353
|
+
|
354
|
+
Send a fax using supplied supported file-types.
|
355
|
+
|
356
|
+
### Example
|
357
|
+
```ruby
|
358
|
+
# load the gem
|
359
|
+
require 'clicksend_client'
|
360
|
+
# setup authorization
|
361
|
+
ClickSendClient.configure do |config|
|
362
|
+
# Configure HTTP basic authorization: BasicAuth
|
363
|
+
config.username = 'YOUR USERNAME'
|
364
|
+
config.password = 'YOUR PASSWORD'
|
365
|
+
end
|
366
|
+
|
367
|
+
api_instance = ClickSendClient::FAXApi.new
|
368
|
+
|
369
|
+
fax_message = ClickSendClient::FaxMessageCollection.new # FaxMessageCollection | FaxMessageCollection model
|
370
|
+
|
371
|
+
|
372
|
+
begin
|
373
|
+
#Send a fax using supplied supported file-types.
|
374
|
+
result = api_instance.fax_send_post(fax_message)
|
375
|
+
p result
|
376
|
+
rescue ClickSendClient::ApiError => e
|
377
|
+
puts "Exception when calling FAXApi->fax_send_post: #{e}"
|
378
|
+
end
|
379
|
+
```
|
380
|
+
|
381
|
+
### Parameters
|
382
|
+
|
383
|
+
Name | Type | Description | Notes
|
384
|
+
------------- | ------------- | ------------- | -------------
|
385
|
+
**fax_message** | [**FaxMessageCollection**](FaxMessageCollection.md)| FaxMessageCollection model |
|
386
|
+
|
387
|
+
### Return type
|
388
|
+
|
389
|
+
**String**
|
390
|
+
|
391
|
+
### Authorization
|
392
|
+
|
393
|
+
[BasicAuth](../README.md#BasicAuth)
|
394
|
+
|
395
|
+
### HTTP request headers
|
396
|
+
|
397
|
+
- **Content-Type**: application/json
|
398
|
+
- **Accept**: application/json
|
399
|
+
|
400
|
+
|
401
|
+
|