clicksend_client 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,65 @@
|
|
|
1
|
+
# ClickSendClient::ReferralAccountApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://rest.clicksend.com/v3*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**referral_accounts_get**](ReferralAccountApi.md#referral_accounts_get) | **GET** /referral/accounts | Get all referral accounts
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# **referral_accounts_get**
|
|
11
|
+
> String referral_accounts_get(opts)
|
|
12
|
+
|
|
13
|
+
Get all referral accounts
|
|
14
|
+
|
|
15
|
+
Get all referral accounts
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
```ruby
|
|
19
|
+
# load the gem
|
|
20
|
+
require 'clicksend_client'
|
|
21
|
+
# setup authorization
|
|
22
|
+
ClickSendClient.configure do |config|
|
|
23
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
24
|
+
config.username = 'YOUR USERNAME'
|
|
25
|
+
config.password = 'YOUR PASSWORD'
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
api_instance = ClickSendClient::ReferralAccountApi.new
|
|
29
|
+
|
|
30
|
+
opts = {
|
|
31
|
+
page: 1, # Integer | Page number
|
|
32
|
+
limit: 10 # Integer | Number of records per page
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
begin
|
|
36
|
+
#Get all referral accounts
|
|
37
|
+
result = api_instance.referral_accounts_get(opts)
|
|
38
|
+
p result
|
|
39
|
+
rescue ClickSendClient::ApiError => e
|
|
40
|
+
puts "Exception when calling ReferralAccountApi->referral_accounts_get: #{e}"
|
|
41
|
+
end
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Parameters
|
|
45
|
+
|
|
46
|
+
Name | Type | Description | Notes
|
|
47
|
+
------------- | ------------- | ------------- | -------------
|
|
48
|
+
**page** | **Integer**| Page number | [optional] [default to 1]
|
|
49
|
+
**limit** | **Integer**| Number of records per page | [optional] [default to 10]
|
|
50
|
+
|
|
51
|
+
### Return type
|
|
52
|
+
|
|
53
|
+
**String**
|
|
54
|
+
|
|
55
|
+
### Authorization
|
|
56
|
+
|
|
57
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
58
|
+
|
|
59
|
+
### HTTP request headers
|
|
60
|
+
|
|
61
|
+
- **Content-Type**: application/json
|
|
62
|
+
- **Accept**: application/json
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# ClickSendClient::ResellerAccount
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**username** | **String** | Account username |
|
|
7
|
+
**password** | **String** | Account password (unhashed) |
|
|
8
|
+
**user_email** | **String** | Account email |
|
|
9
|
+
**user_phone** | **String** | Account phone number |
|
|
10
|
+
**user_first_name** | **String** | Account owner first name |
|
|
11
|
+
**user_last_name** | **String** | Account owner last name |
|
|
12
|
+
**account_name** | **String** | Account name (usually company name) |
|
|
13
|
+
**country** | **String** | Country of account holder |
|
|
14
|
+
|
|
15
|
+
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
# ClickSendClient::ResellerAccountApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://rest.clicksend.com/v3*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**reseller_accounts_by_client_user_id_get**](ResellerAccountApi.md#reseller_accounts_by_client_user_id_get) | **GET** /reseller/accounts/{client_user_id} | Get Reseller clients Account
|
|
8
|
+
[**reseller_accounts_by_client_user_id_put**](ResellerAccountApi.md#reseller_accounts_by_client_user_id_put) | **PUT** /reseller/accounts/{client_user_id} | Update Reseller clients Account
|
|
9
|
+
[**reseller_accounts_get**](ResellerAccountApi.md#reseller_accounts_get) | **GET** /reseller/accounts | Get list of reseller accounts
|
|
10
|
+
[**reseller_accounts_post**](ResellerAccountApi.md#reseller_accounts_post) | **POST** /reseller/accounts | Create reseller account
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
# **reseller_accounts_by_client_user_id_get**
|
|
14
|
+
> String reseller_accounts_by_client_user_id_get(client_user_id)
|
|
15
|
+
|
|
16
|
+
Get Reseller clients Account
|
|
17
|
+
|
|
18
|
+
Get Reseller clients Account
|
|
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::ResellerAccountApi.new
|
|
32
|
+
|
|
33
|
+
client_user_id = 56 # Integer | User ID of client
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
begin
|
|
37
|
+
#Get Reseller clients Account
|
|
38
|
+
result = api_instance.reseller_accounts_by_client_user_id_get(client_user_id)
|
|
39
|
+
p result
|
|
40
|
+
rescue ClickSendClient::ApiError => e
|
|
41
|
+
puts "Exception when calling ResellerAccountApi->reseller_accounts_by_client_user_id_get: #{e}"
|
|
42
|
+
end
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Parameters
|
|
46
|
+
|
|
47
|
+
Name | Type | Description | Notes
|
|
48
|
+
------------- | ------------- | ------------- | -------------
|
|
49
|
+
**client_user_id** | **Integer**| User ID of client |
|
|
50
|
+
|
|
51
|
+
### Return type
|
|
52
|
+
|
|
53
|
+
**String**
|
|
54
|
+
|
|
55
|
+
### Authorization
|
|
56
|
+
|
|
57
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
58
|
+
|
|
59
|
+
### HTTP request headers
|
|
60
|
+
|
|
61
|
+
- **Content-Type**: application/json
|
|
62
|
+
- **Accept**: application/json
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
# **reseller_accounts_by_client_user_id_put**
|
|
67
|
+
> String reseller_accounts_by_client_user_id_put(client_user_id, reseller_account)
|
|
68
|
+
|
|
69
|
+
Update Reseller clients Account
|
|
70
|
+
|
|
71
|
+
Update Reseller clients Account
|
|
72
|
+
|
|
73
|
+
### Example
|
|
74
|
+
```ruby
|
|
75
|
+
# load the gem
|
|
76
|
+
require 'clicksend_client'
|
|
77
|
+
# setup authorization
|
|
78
|
+
ClickSendClient.configure do |config|
|
|
79
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
80
|
+
config.username = 'YOUR USERNAME'
|
|
81
|
+
config.password = 'YOUR PASSWORD'
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
api_instance = ClickSendClient::ResellerAccountApi.new
|
|
85
|
+
|
|
86
|
+
client_user_id = 56 # Integer | User ID of client
|
|
87
|
+
|
|
88
|
+
reseller_account = ClickSendClient::ResellerAccount.new # ResellerAccount | ResellerAccount model
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
begin
|
|
92
|
+
#Update Reseller clients Account
|
|
93
|
+
result = api_instance.reseller_accounts_by_client_user_id_put(client_user_id, reseller_account)
|
|
94
|
+
p result
|
|
95
|
+
rescue ClickSendClient::ApiError => e
|
|
96
|
+
puts "Exception when calling ResellerAccountApi->reseller_accounts_by_client_user_id_put: #{e}"
|
|
97
|
+
end
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Parameters
|
|
101
|
+
|
|
102
|
+
Name | Type | Description | Notes
|
|
103
|
+
------------- | ------------- | ------------- | -------------
|
|
104
|
+
**client_user_id** | **Integer**| User ID of client |
|
|
105
|
+
**reseller_account** | [**ResellerAccount**](ResellerAccount.md)| ResellerAccount model |
|
|
106
|
+
|
|
107
|
+
### Return type
|
|
108
|
+
|
|
109
|
+
**String**
|
|
110
|
+
|
|
111
|
+
### Authorization
|
|
112
|
+
|
|
113
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
114
|
+
|
|
115
|
+
### HTTP request headers
|
|
116
|
+
|
|
117
|
+
- **Content-Type**: application/json
|
|
118
|
+
- **Accept**: application/json
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
# **reseller_accounts_get**
|
|
123
|
+
> String reseller_accounts_get(opts)
|
|
124
|
+
|
|
125
|
+
Get list of reseller accounts
|
|
126
|
+
|
|
127
|
+
Get list of reseller accounts
|
|
128
|
+
|
|
129
|
+
### Example
|
|
130
|
+
```ruby
|
|
131
|
+
# load the gem
|
|
132
|
+
require 'clicksend_client'
|
|
133
|
+
# setup authorization
|
|
134
|
+
ClickSendClient.configure do |config|
|
|
135
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
136
|
+
config.username = 'YOUR USERNAME'
|
|
137
|
+
config.password = 'YOUR PASSWORD'
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
api_instance = ClickSendClient::ResellerAccountApi.new
|
|
141
|
+
|
|
142
|
+
opts = {
|
|
143
|
+
page: 1, # Integer | Page number
|
|
144
|
+
limit: 10 # Integer | Number of records per page
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
begin
|
|
148
|
+
#Get list of reseller accounts
|
|
149
|
+
result = api_instance.reseller_accounts_get(opts)
|
|
150
|
+
p result
|
|
151
|
+
rescue ClickSendClient::ApiError => e
|
|
152
|
+
puts "Exception when calling ResellerAccountApi->reseller_accounts_get: #{e}"
|
|
153
|
+
end
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### Parameters
|
|
157
|
+
|
|
158
|
+
Name | Type | Description | Notes
|
|
159
|
+
------------- | ------------- | ------------- | -------------
|
|
160
|
+
**page** | **Integer**| Page number | [optional] [default to 1]
|
|
161
|
+
**limit** | **Integer**| Number of records per page | [optional] [default to 10]
|
|
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
|
+
# **reseller_accounts_post**
|
|
179
|
+
> String reseller_accounts_post(reseller_account)
|
|
180
|
+
|
|
181
|
+
Create reseller account
|
|
182
|
+
|
|
183
|
+
Create reseller account
|
|
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::ResellerAccountApi.new
|
|
197
|
+
|
|
198
|
+
reseller_account = ClickSendClient::ResellerAccount.new # ResellerAccount | ResellerAccount model
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
begin
|
|
202
|
+
#Create reseller account
|
|
203
|
+
result = api_instance.reseller_accounts_post(reseller_account)
|
|
204
|
+
p result
|
|
205
|
+
rescue ClickSendClient::ApiError => e
|
|
206
|
+
puts "Exception when calling ResellerAccountApi->reseller_accounts_post: #{e}"
|
|
207
|
+
end
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### Parameters
|
|
211
|
+
|
|
212
|
+
Name | Type | Description | Notes
|
|
213
|
+
------------- | ------------- | ------------- | -------------
|
|
214
|
+
**reseller_account** | [**ResellerAccount**](ResellerAccount.md)| ResellerAccount model |
|
|
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
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# ClickSendClient::ResellerAccountTransferCredit
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**client_user_id** | **Integer** | User ID of client |
|
|
7
|
+
**balance** | **Integer** | Balance to transfer |
|
|
8
|
+
**currency** | **String** | Currency of balance to transfer |
|
|
9
|
+
|
|
10
|
+
|
data/docs/SMSApi.md
ADDED
|
@@ -0,0 +1,999 @@
|
|
|
1
|
+
# ClickSendClient::SMSApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://rest.clicksend.com/v3*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**sms_cancel_all_put**](SMSApi.md#sms_cancel_all_put) | **PUT** /sms/cancel-all | Update all scheduled message as cancelled
|
|
8
|
+
[**sms_cancel_by_message_id_put**](SMSApi.md#sms_cancel_by_message_id_put) | **PUT** /sms/{message_id}/cancel | Update scheduled message as cancelled
|
|
9
|
+
[**sms_history_export_get**](SMSApi.md#sms_history_export_get) | **GET** /sms/history/export | Export all sms history
|
|
10
|
+
[**sms_history_get**](SMSApi.md#sms_history_get) | **GET** /sms/history | Get all sms history
|
|
11
|
+
[**sms_inbound_get**](SMSApi.md#sms_inbound_get) | **GET** /sms/inbound | Get all inbound sms
|
|
12
|
+
[**sms_inbound_post**](SMSApi.md#sms_inbound_post) | **POST** /sms/inbound | Create inbound sms
|
|
13
|
+
[**sms_inbound_read_by_message_id_put**](SMSApi.md#sms_inbound_read_by_message_id_put) | **PUT** /sms/inbound-read/{message_id} | Mark inbound SMS as read
|
|
14
|
+
[**sms_inbound_read_put**](SMSApi.md#sms_inbound_read_put) | **PUT** /sms/inbound-read | Mark inbound SMS as read
|
|
15
|
+
[**sms_price_post**](SMSApi.md#sms_price_post) | **POST** /sms/price | Calculate sms price
|
|
16
|
+
[**sms_receipts_by_message_id_get**](SMSApi.md#sms_receipts_by_message_id_get) | **GET** /sms/receipts/{message_id} | Get a Specific Delivery Receipt
|
|
17
|
+
[**sms_receipts_get**](SMSApi.md#sms_receipts_get) | **GET** /sms/receipts | Get all delivery receipts
|
|
18
|
+
[**sms_receipts_post**](SMSApi.md#sms_receipts_post) | **POST** /sms/receipts | Add a delivery receipt
|
|
19
|
+
[**sms_receipts_read_put**](SMSApi.md#sms_receipts_read_put) | **PUT** /sms/receipts-read | Mark delivery receipts as read
|
|
20
|
+
[**sms_send_post**](SMSApi.md#sms_send_post) | **POST** /sms/send | Send sms message(s)
|
|
21
|
+
[**sms_templates_by_template_id_delete**](SMSApi.md#sms_templates_by_template_id_delete) | **DELETE** /sms/templates/{template_id} | Delete sms template
|
|
22
|
+
[**sms_templates_by_template_id_put**](SMSApi.md#sms_templates_by_template_id_put) | **PUT** /sms/templates/{template_id} | Update sms template
|
|
23
|
+
[**sms_templates_get**](SMSApi.md#sms_templates_get) | **GET** /sms/templates | Get lists of all sms templates
|
|
24
|
+
[**sms_templates_post**](SMSApi.md#sms_templates_post) | **POST** /sms/templates | Create sms template
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# **sms_cancel_all_put**
|
|
28
|
+
> String sms_cancel_all_put
|
|
29
|
+
|
|
30
|
+
Update all scheduled message as cancelled
|
|
31
|
+
|
|
32
|
+
Update all scheduled message as cancelled
|
|
33
|
+
|
|
34
|
+
### Example
|
|
35
|
+
```ruby
|
|
36
|
+
# load the gem
|
|
37
|
+
require 'clicksend_client'
|
|
38
|
+
# setup authorization
|
|
39
|
+
ClickSendClient.configure do |config|
|
|
40
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
41
|
+
config.username = 'YOUR USERNAME'
|
|
42
|
+
config.password = 'YOUR PASSWORD'
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
api_instance = ClickSendClient::SMSApi.new
|
|
46
|
+
|
|
47
|
+
begin
|
|
48
|
+
#Update all scheduled message as cancelled
|
|
49
|
+
result = api_instance.sms_cancel_all_put
|
|
50
|
+
p result
|
|
51
|
+
rescue ClickSendClient::ApiError => e
|
|
52
|
+
puts "Exception when calling SMSApi->sms_cancel_all_put: #{e}"
|
|
53
|
+
end
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Parameters
|
|
57
|
+
This endpoint does not need any parameter.
|
|
58
|
+
|
|
59
|
+
### Return type
|
|
60
|
+
|
|
61
|
+
**String**
|
|
62
|
+
|
|
63
|
+
### Authorization
|
|
64
|
+
|
|
65
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
66
|
+
|
|
67
|
+
### HTTP request headers
|
|
68
|
+
|
|
69
|
+
- **Content-Type**: application/json
|
|
70
|
+
- **Accept**: application/json
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
# **sms_cancel_by_message_id_put**
|
|
75
|
+
> String sms_cancel_by_message_id_put(message_id)
|
|
76
|
+
|
|
77
|
+
Update scheduled message as cancelled
|
|
78
|
+
|
|
79
|
+
Update scheduled message as cancelled
|
|
80
|
+
|
|
81
|
+
### Example
|
|
82
|
+
```ruby
|
|
83
|
+
# load the gem
|
|
84
|
+
require 'clicksend_client'
|
|
85
|
+
# setup authorization
|
|
86
|
+
ClickSendClient.configure do |config|
|
|
87
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
88
|
+
config.username = 'YOUR USERNAME'
|
|
89
|
+
config.password = 'YOUR PASSWORD'
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
api_instance = ClickSendClient::SMSApi.new
|
|
93
|
+
|
|
94
|
+
message_id = 'message_id_example' # String | The message ID you want to cancel
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
begin
|
|
98
|
+
#Update scheduled message as cancelled
|
|
99
|
+
result = api_instance.sms_cancel_by_message_id_put(message_id)
|
|
100
|
+
p result
|
|
101
|
+
rescue ClickSendClient::ApiError => e
|
|
102
|
+
puts "Exception when calling SMSApi->sms_cancel_by_message_id_put: #{e}"
|
|
103
|
+
end
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Parameters
|
|
107
|
+
|
|
108
|
+
Name | Type | Description | Notes
|
|
109
|
+
------------- | ------------- | ------------- | -------------
|
|
110
|
+
**message_id** | **String**| The message ID you want to cancel |
|
|
111
|
+
|
|
112
|
+
### Return type
|
|
113
|
+
|
|
114
|
+
**String**
|
|
115
|
+
|
|
116
|
+
### Authorization
|
|
117
|
+
|
|
118
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
119
|
+
|
|
120
|
+
### HTTP request headers
|
|
121
|
+
|
|
122
|
+
- **Content-Type**: application/json
|
|
123
|
+
- **Accept**: application/json
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
# **sms_history_export_get**
|
|
128
|
+
> String sms_history_export_get(filename)
|
|
129
|
+
|
|
130
|
+
Export all sms history
|
|
131
|
+
|
|
132
|
+
Export all sms history
|
|
133
|
+
|
|
134
|
+
### Example
|
|
135
|
+
```ruby
|
|
136
|
+
# load the gem
|
|
137
|
+
require 'clicksend_client'
|
|
138
|
+
# setup authorization
|
|
139
|
+
ClickSendClient.configure do |config|
|
|
140
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
141
|
+
config.username = 'YOUR USERNAME'
|
|
142
|
+
config.password = 'YOUR PASSWORD'
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
api_instance = ClickSendClient::SMSApi.new
|
|
146
|
+
|
|
147
|
+
filename = 'filename_example' # String | Filename to download history as
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
begin
|
|
151
|
+
#Export all sms history
|
|
152
|
+
result = api_instance.sms_history_export_get(filename)
|
|
153
|
+
p result
|
|
154
|
+
rescue ClickSendClient::ApiError => e
|
|
155
|
+
puts "Exception when calling SMSApi->sms_history_export_get: #{e}"
|
|
156
|
+
end
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Parameters
|
|
160
|
+
|
|
161
|
+
Name | Type | Description | Notes
|
|
162
|
+
------------- | ------------- | ------------- | -------------
|
|
163
|
+
**filename** | **String**| Filename to download history as |
|
|
164
|
+
|
|
165
|
+
### Return type
|
|
166
|
+
|
|
167
|
+
**String**
|
|
168
|
+
|
|
169
|
+
### Authorization
|
|
170
|
+
|
|
171
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
172
|
+
|
|
173
|
+
### HTTP request headers
|
|
174
|
+
|
|
175
|
+
- **Content-Type**: application/json
|
|
176
|
+
- **Accept**: application/json
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
# **sms_history_get**
|
|
181
|
+
> String sms_history_get(opts)
|
|
182
|
+
|
|
183
|
+
Get all sms history
|
|
184
|
+
|
|
185
|
+
Get all sms history
|
|
186
|
+
|
|
187
|
+
### Example
|
|
188
|
+
```ruby
|
|
189
|
+
# load the gem
|
|
190
|
+
require 'clicksend_client'
|
|
191
|
+
# setup authorization
|
|
192
|
+
ClickSendClient.configure do |config|
|
|
193
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
194
|
+
config.username = 'YOUR USERNAME'
|
|
195
|
+
config.password = 'YOUR PASSWORD'
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
api_instance = ClickSendClient::SMSApi.new
|
|
199
|
+
|
|
200
|
+
opts = {
|
|
201
|
+
q: 'q_example', # String | Custom query Example: from:{number},status_code:201.
|
|
202
|
+
date_from: 56, # Integer | Start date
|
|
203
|
+
date_to: 56, # Integer | End date
|
|
204
|
+
page: 1, # Integer | Page number
|
|
205
|
+
limit: 10 # Integer | Number of records per page
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
begin
|
|
209
|
+
#Get all sms history
|
|
210
|
+
result = api_instance.sms_history_get(opts)
|
|
211
|
+
p result
|
|
212
|
+
rescue ClickSendClient::ApiError => e
|
|
213
|
+
puts "Exception when calling SMSApi->sms_history_get: #{e}"
|
|
214
|
+
end
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
### Parameters
|
|
218
|
+
|
|
219
|
+
Name | Type | Description | Notes
|
|
220
|
+
------------- | ------------- | ------------- | -------------
|
|
221
|
+
**q** | **String**| Custom query Example: from:{number},status_code:201. | [optional]
|
|
222
|
+
**date_from** | **Integer**| Start date | [optional]
|
|
223
|
+
**date_to** | **Integer**| End date | [optional]
|
|
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
|
+
# **sms_inbound_get**
|
|
243
|
+
> String sms_inbound_get(opts)
|
|
244
|
+
|
|
245
|
+
Get all inbound sms
|
|
246
|
+
|
|
247
|
+
Get all inbound sms
|
|
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::SMSApi.new
|
|
261
|
+
|
|
262
|
+
opts = {
|
|
263
|
+
q: 'q_example', # String | Your keyword or query.
|
|
264
|
+
page: 1, # Integer | Page number
|
|
265
|
+
limit: 10 # Integer | Number of records per page
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
begin
|
|
269
|
+
#Get all inbound sms
|
|
270
|
+
result = api_instance.sms_inbound_get(opts)
|
|
271
|
+
p result
|
|
272
|
+
rescue ClickSendClient::ApiError => e
|
|
273
|
+
puts "Exception when calling SMSApi->sms_inbound_get: #{e}"
|
|
274
|
+
end
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### Parameters
|
|
278
|
+
|
|
279
|
+
Name | Type | Description | Notes
|
|
280
|
+
------------- | ------------- | ------------- | -------------
|
|
281
|
+
**q** | **String**| Your keyword or query. | [optional]
|
|
282
|
+
**page** | **Integer**| Page number | [optional] [default to 1]
|
|
283
|
+
**limit** | **Integer**| Number of records per page | [optional] [default to 10]
|
|
284
|
+
|
|
285
|
+
### Return type
|
|
286
|
+
|
|
287
|
+
**String**
|
|
288
|
+
|
|
289
|
+
### Authorization
|
|
290
|
+
|
|
291
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
292
|
+
|
|
293
|
+
### HTTP request headers
|
|
294
|
+
|
|
295
|
+
- **Content-Type**: application/json
|
|
296
|
+
- **Accept**: application/json
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
# **sms_inbound_post**
|
|
301
|
+
> String sms_inbound_post(url)
|
|
302
|
+
|
|
303
|
+
Create inbound sms
|
|
304
|
+
|
|
305
|
+
Create inbound sms
|
|
306
|
+
|
|
307
|
+
### Example
|
|
308
|
+
```ruby
|
|
309
|
+
# load the gem
|
|
310
|
+
require 'clicksend_client'
|
|
311
|
+
# setup authorization
|
|
312
|
+
ClickSendClient.configure do |config|
|
|
313
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
314
|
+
config.username = 'YOUR USERNAME'
|
|
315
|
+
config.password = 'YOUR PASSWORD'
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
api_instance = ClickSendClient::SMSApi.new
|
|
319
|
+
|
|
320
|
+
url = ClickSendClient::Url.new # Url | Url model
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
begin
|
|
324
|
+
#Create inbound sms
|
|
325
|
+
result = api_instance.sms_inbound_post(url)
|
|
326
|
+
p result
|
|
327
|
+
rescue ClickSendClient::ApiError => e
|
|
328
|
+
puts "Exception when calling SMSApi->sms_inbound_post: #{e}"
|
|
329
|
+
end
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
### Parameters
|
|
333
|
+
|
|
334
|
+
Name | Type | Description | Notes
|
|
335
|
+
------------- | ------------- | ------------- | -------------
|
|
336
|
+
**url** | [**Url**](Url.md)| Url model |
|
|
337
|
+
|
|
338
|
+
### Return type
|
|
339
|
+
|
|
340
|
+
**String**
|
|
341
|
+
|
|
342
|
+
### Authorization
|
|
343
|
+
|
|
344
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
345
|
+
|
|
346
|
+
### HTTP request headers
|
|
347
|
+
|
|
348
|
+
- **Content-Type**: application/json
|
|
349
|
+
- **Accept**: application/json
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
# **sms_inbound_read_by_message_id_put**
|
|
354
|
+
> String sms_inbound_read_by_message_id_put(message_id)
|
|
355
|
+
|
|
356
|
+
Mark inbound SMS as read
|
|
357
|
+
|
|
358
|
+
Mark specific inbound SMS as read
|
|
359
|
+
|
|
360
|
+
### Example
|
|
361
|
+
```ruby
|
|
362
|
+
# load the gem
|
|
363
|
+
require 'clicksend_client'
|
|
364
|
+
# setup authorization
|
|
365
|
+
ClickSendClient.configure do |config|
|
|
366
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
367
|
+
config.username = 'YOUR USERNAME'
|
|
368
|
+
config.password = 'YOUR PASSWORD'
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
api_instance = ClickSendClient::SMSApi.new
|
|
372
|
+
|
|
373
|
+
message_id = 'message_id_example' # String | Message ID
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
begin
|
|
377
|
+
#Mark inbound SMS as read
|
|
378
|
+
result = api_instance.sms_inbound_read_by_message_id_put(message_id)
|
|
379
|
+
p result
|
|
380
|
+
rescue ClickSendClient::ApiError => e
|
|
381
|
+
puts "Exception when calling SMSApi->sms_inbound_read_by_message_id_put: #{e}"
|
|
382
|
+
end
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
### Parameters
|
|
386
|
+
|
|
387
|
+
Name | Type | Description | Notes
|
|
388
|
+
------------- | ------------- | ------------- | -------------
|
|
389
|
+
**message_id** | **String**| Message ID |
|
|
390
|
+
|
|
391
|
+
### Return type
|
|
392
|
+
|
|
393
|
+
**String**
|
|
394
|
+
|
|
395
|
+
### Authorization
|
|
396
|
+
|
|
397
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
398
|
+
|
|
399
|
+
### HTTP request headers
|
|
400
|
+
|
|
401
|
+
- **Content-Type**: application/json
|
|
402
|
+
- **Accept**: application/json
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
# **sms_inbound_read_put**
|
|
407
|
+
> String sms_inbound_read_put(opts)
|
|
408
|
+
|
|
409
|
+
Mark inbound SMS as read
|
|
410
|
+
|
|
411
|
+
Mark all inbound SMS as read optionally before a certain date
|
|
412
|
+
|
|
413
|
+
### Example
|
|
414
|
+
```ruby
|
|
415
|
+
# load the gem
|
|
416
|
+
require 'clicksend_client'
|
|
417
|
+
# setup authorization
|
|
418
|
+
ClickSendClient.configure do |config|
|
|
419
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
420
|
+
config.username = 'YOUR USERNAME'
|
|
421
|
+
config.password = 'YOUR PASSWORD'
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
api_instance = ClickSendClient::SMSApi.new
|
|
425
|
+
|
|
426
|
+
opts = {
|
|
427
|
+
date_before: ClickSendClient::DateBefore.new # DateBefore | DateBefore model
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
begin
|
|
431
|
+
#Mark inbound SMS as read
|
|
432
|
+
result = api_instance.sms_inbound_read_put(opts)
|
|
433
|
+
p result
|
|
434
|
+
rescue ClickSendClient::ApiError => e
|
|
435
|
+
puts "Exception when calling SMSApi->sms_inbound_read_put: #{e}"
|
|
436
|
+
end
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
### Parameters
|
|
440
|
+
|
|
441
|
+
Name | Type | Description | Notes
|
|
442
|
+
------------- | ------------- | ------------- | -------------
|
|
443
|
+
**date_before** | [**DateBefore**](DateBefore.md)| DateBefore model | [optional]
|
|
444
|
+
|
|
445
|
+
### Return type
|
|
446
|
+
|
|
447
|
+
**String**
|
|
448
|
+
|
|
449
|
+
### Authorization
|
|
450
|
+
|
|
451
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
452
|
+
|
|
453
|
+
### HTTP request headers
|
|
454
|
+
|
|
455
|
+
- **Content-Type**: application/json
|
|
456
|
+
- **Accept**: application/json
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
# **sms_price_post**
|
|
461
|
+
> String sms_price_post(sms_messages)
|
|
462
|
+
|
|
463
|
+
Calculate sms price
|
|
464
|
+
|
|
465
|
+
Calculate sms price
|
|
466
|
+
|
|
467
|
+
### Example
|
|
468
|
+
```ruby
|
|
469
|
+
# load the gem
|
|
470
|
+
require 'clicksend_client'
|
|
471
|
+
# setup authorization
|
|
472
|
+
ClickSendClient.configure do |config|
|
|
473
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
474
|
+
config.username = 'YOUR USERNAME'
|
|
475
|
+
config.password = 'YOUR PASSWORD'
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
api_instance = ClickSendClient::SMSApi.new
|
|
479
|
+
|
|
480
|
+
sms_messages = ClickSendClient::SmsMessageCollection.new # SmsMessageCollection | SmsMessageCollection model
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
begin
|
|
484
|
+
#Calculate sms price
|
|
485
|
+
result = api_instance.sms_price_post(sms_messages)
|
|
486
|
+
p result
|
|
487
|
+
rescue ClickSendClient::ApiError => e
|
|
488
|
+
puts "Exception when calling SMSApi->sms_price_post: #{e}"
|
|
489
|
+
end
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
### Parameters
|
|
493
|
+
|
|
494
|
+
Name | Type | Description | Notes
|
|
495
|
+
------------- | ------------- | ------------- | -------------
|
|
496
|
+
**sms_messages** | [**SmsMessageCollection**](SmsMessageCollection.md)| SmsMessageCollection model |
|
|
497
|
+
|
|
498
|
+
### Return type
|
|
499
|
+
|
|
500
|
+
**String**
|
|
501
|
+
|
|
502
|
+
### Authorization
|
|
503
|
+
|
|
504
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
505
|
+
|
|
506
|
+
### HTTP request headers
|
|
507
|
+
|
|
508
|
+
- **Content-Type**: application/json
|
|
509
|
+
- **Accept**: application/json
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
# **sms_receipts_by_message_id_get**
|
|
514
|
+
> String sms_receipts_by_message_id_get(message_id)
|
|
515
|
+
|
|
516
|
+
Get a Specific Delivery Receipt
|
|
517
|
+
|
|
518
|
+
Get a Specific Delivery Receipt
|
|
519
|
+
|
|
520
|
+
### Example
|
|
521
|
+
```ruby
|
|
522
|
+
# load the gem
|
|
523
|
+
require 'clicksend_client'
|
|
524
|
+
# setup authorization
|
|
525
|
+
ClickSendClient.configure do |config|
|
|
526
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
527
|
+
config.username = 'YOUR USERNAME'
|
|
528
|
+
config.password = 'YOUR PASSWORD'
|
|
529
|
+
end
|
|
530
|
+
|
|
531
|
+
api_instance = ClickSendClient::SMSApi.new
|
|
532
|
+
|
|
533
|
+
message_id = 'message_id_example' # String | Message ID
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
begin
|
|
537
|
+
#Get a Specific Delivery Receipt
|
|
538
|
+
result = api_instance.sms_receipts_by_message_id_get(message_id)
|
|
539
|
+
p result
|
|
540
|
+
rescue ClickSendClient::ApiError => e
|
|
541
|
+
puts "Exception when calling SMSApi->sms_receipts_by_message_id_get: #{e}"
|
|
542
|
+
end
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
### Parameters
|
|
546
|
+
|
|
547
|
+
Name | Type | Description | Notes
|
|
548
|
+
------------- | ------------- | ------------- | -------------
|
|
549
|
+
**message_id** | **String**| Message ID |
|
|
550
|
+
|
|
551
|
+
### Return type
|
|
552
|
+
|
|
553
|
+
**String**
|
|
554
|
+
|
|
555
|
+
### Authorization
|
|
556
|
+
|
|
557
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
558
|
+
|
|
559
|
+
### HTTP request headers
|
|
560
|
+
|
|
561
|
+
- **Content-Type**: application/json
|
|
562
|
+
- **Accept**: application/json
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
# **sms_receipts_get**
|
|
567
|
+
> String sms_receipts_get(opts)
|
|
568
|
+
|
|
569
|
+
Get all delivery receipts
|
|
570
|
+
|
|
571
|
+
Get all delivery receipts
|
|
572
|
+
|
|
573
|
+
### Example
|
|
574
|
+
```ruby
|
|
575
|
+
# load the gem
|
|
576
|
+
require 'clicksend_client'
|
|
577
|
+
# setup authorization
|
|
578
|
+
ClickSendClient.configure do |config|
|
|
579
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
580
|
+
config.username = 'YOUR USERNAME'
|
|
581
|
+
config.password = 'YOUR PASSWORD'
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
api_instance = ClickSendClient::SMSApi.new
|
|
585
|
+
|
|
586
|
+
opts = {
|
|
587
|
+
page: 1, # Integer | Page number
|
|
588
|
+
limit: 10 # Integer | Number of records per page
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
begin
|
|
592
|
+
#Get all delivery receipts
|
|
593
|
+
result = api_instance.sms_receipts_get(opts)
|
|
594
|
+
p result
|
|
595
|
+
rescue ClickSendClient::ApiError => e
|
|
596
|
+
puts "Exception when calling SMSApi->sms_receipts_get: #{e}"
|
|
597
|
+
end
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
### Parameters
|
|
601
|
+
|
|
602
|
+
Name | Type | Description | Notes
|
|
603
|
+
------------- | ------------- | ------------- | -------------
|
|
604
|
+
**page** | **Integer**| Page number | [optional] [default to 1]
|
|
605
|
+
**limit** | **Integer**| Number of records per page | [optional] [default to 10]
|
|
606
|
+
|
|
607
|
+
### Return type
|
|
608
|
+
|
|
609
|
+
**String**
|
|
610
|
+
|
|
611
|
+
### Authorization
|
|
612
|
+
|
|
613
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
614
|
+
|
|
615
|
+
### HTTP request headers
|
|
616
|
+
|
|
617
|
+
- **Content-Type**: application/json
|
|
618
|
+
- **Accept**: application/json
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
# **sms_receipts_post**
|
|
623
|
+
> String sms_receipts_post(url)
|
|
624
|
+
|
|
625
|
+
Add a delivery receipt
|
|
626
|
+
|
|
627
|
+
Add a delivery receipt
|
|
628
|
+
|
|
629
|
+
### Example
|
|
630
|
+
```ruby
|
|
631
|
+
# load the gem
|
|
632
|
+
require 'clicksend_client'
|
|
633
|
+
# setup authorization
|
|
634
|
+
ClickSendClient.configure do |config|
|
|
635
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
636
|
+
config.username = 'YOUR USERNAME'
|
|
637
|
+
config.password = 'YOUR PASSWORD'
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
api_instance = ClickSendClient::SMSApi.new
|
|
641
|
+
|
|
642
|
+
url = ClickSendClient::Url.new # Url | Url model
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
begin
|
|
646
|
+
#Add a delivery receipt
|
|
647
|
+
result = api_instance.sms_receipts_post(url)
|
|
648
|
+
p result
|
|
649
|
+
rescue ClickSendClient::ApiError => e
|
|
650
|
+
puts "Exception when calling SMSApi->sms_receipts_post: #{e}"
|
|
651
|
+
end
|
|
652
|
+
```
|
|
653
|
+
|
|
654
|
+
### Parameters
|
|
655
|
+
|
|
656
|
+
Name | Type | Description | Notes
|
|
657
|
+
------------- | ------------- | ------------- | -------------
|
|
658
|
+
**url** | [**Url**](Url.md)| Url model |
|
|
659
|
+
|
|
660
|
+
### Return type
|
|
661
|
+
|
|
662
|
+
**String**
|
|
663
|
+
|
|
664
|
+
### Authorization
|
|
665
|
+
|
|
666
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
667
|
+
|
|
668
|
+
### HTTP request headers
|
|
669
|
+
|
|
670
|
+
- **Content-Type**: application/json
|
|
671
|
+
- **Accept**: application/json
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
# **sms_receipts_read_put**
|
|
676
|
+
> String sms_receipts_read_put(opts)
|
|
677
|
+
|
|
678
|
+
Mark delivery receipts as read
|
|
679
|
+
|
|
680
|
+
Mark delivery receipts as read
|
|
681
|
+
|
|
682
|
+
### Example
|
|
683
|
+
```ruby
|
|
684
|
+
# load the gem
|
|
685
|
+
require 'clicksend_client'
|
|
686
|
+
# setup authorization
|
|
687
|
+
ClickSendClient.configure do |config|
|
|
688
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
689
|
+
config.username = 'YOUR USERNAME'
|
|
690
|
+
config.password = 'YOUR PASSWORD'
|
|
691
|
+
end
|
|
692
|
+
|
|
693
|
+
api_instance = ClickSendClient::SMSApi.new
|
|
694
|
+
|
|
695
|
+
opts = {
|
|
696
|
+
date_before: ClickSendClient::DateBefore.new # DateBefore | DateBefore model
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
begin
|
|
700
|
+
#Mark delivery receipts as read
|
|
701
|
+
result = api_instance.sms_receipts_read_put(opts)
|
|
702
|
+
p result
|
|
703
|
+
rescue ClickSendClient::ApiError => e
|
|
704
|
+
puts "Exception when calling SMSApi->sms_receipts_read_put: #{e}"
|
|
705
|
+
end
|
|
706
|
+
```
|
|
707
|
+
|
|
708
|
+
### Parameters
|
|
709
|
+
|
|
710
|
+
Name | Type | Description | Notes
|
|
711
|
+
------------- | ------------- | ------------- | -------------
|
|
712
|
+
**date_before** | [**DateBefore**](DateBefore.md)| DateBefore model | [optional]
|
|
713
|
+
|
|
714
|
+
### Return type
|
|
715
|
+
|
|
716
|
+
**String**
|
|
717
|
+
|
|
718
|
+
### Authorization
|
|
719
|
+
|
|
720
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
721
|
+
|
|
722
|
+
### HTTP request headers
|
|
723
|
+
|
|
724
|
+
- **Content-Type**: application/json
|
|
725
|
+
- **Accept**: application/json
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
# **sms_send_post**
|
|
730
|
+
> String sms_send_post(sms_messages)
|
|
731
|
+
|
|
732
|
+
Send sms message(s)
|
|
733
|
+
|
|
734
|
+
# Send one or more SMS messages You can post up to 1000 messages with each API call. You can send to a mix of contacts and contact lists, as long as the total number of recipients is up to 1000. The response contains status and details for each recipient. *Refer to [Application Status Codes](https://dashboard.clicksend.com/#/signup/step1/) for the possible response message status strings.*
|
|
735
|
+
|
|
736
|
+
### Example
|
|
737
|
+
```ruby
|
|
738
|
+
# load the gem
|
|
739
|
+
require 'clicksend_client'
|
|
740
|
+
# setup authorization
|
|
741
|
+
ClickSendClient.configure do |config|
|
|
742
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
743
|
+
config.username = 'YOUR USERNAME'
|
|
744
|
+
config.password = 'YOUR PASSWORD'
|
|
745
|
+
end
|
|
746
|
+
|
|
747
|
+
api_instance = ClickSendClient::SMSApi.new
|
|
748
|
+
|
|
749
|
+
sms_messages = ClickSendClient::SmsMessageCollection.new # SmsMessageCollection | SmsMessageCollection model
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
begin
|
|
753
|
+
#Send sms message(s)
|
|
754
|
+
result = api_instance.sms_send_post(sms_messages)
|
|
755
|
+
p result
|
|
756
|
+
rescue ClickSendClient::ApiError => e
|
|
757
|
+
puts "Exception when calling SMSApi->sms_send_post: #{e}"
|
|
758
|
+
end
|
|
759
|
+
```
|
|
760
|
+
|
|
761
|
+
### Parameters
|
|
762
|
+
|
|
763
|
+
Name | Type | Description | Notes
|
|
764
|
+
------------- | ------------- | ------------- | -------------
|
|
765
|
+
**sms_messages** | [**SmsMessageCollection**](SmsMessageCollection.md)| SmsMessageCollection model |
|
|
766
|
+
|
|
767
|
+
### Return type
|
|
768
|
+
|
|
769
|
+
**String**
|
|
770
|
+
|
|
771
|
+
### Authorization
|
|
772
|
+
|
|
773
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
774
|
+
|
|
775
|
+
### HTTP request headers
|
|
776
|
+
|
|
777
|
+
- **Content-Type**: application/json
|
|
778
|
+
- **Accept**: application/json
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
# **sms_templates_by_template_id_delete**
|
|
783
|
+
> String sms_templates_by_template_id_delete(template_id)
|
|
784
|
+
|
|
785
|
+
Delete sms template
|
|
786
|
+
|
|
787
|
+
Delete sms template
|
|
788
|
+
|
|
789
|
+
### Example
|
|
790
|
+
```ruby
|
|
791
|
+
# load the gem
|
|
792
|
+
require 'clicksend_client'
|
|
793
|
+
# setup authorization
|
|
794
|
+
ClickSendClient.configure do |config|
|
|
795
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
796
|
+
config.username = 'YOUR USERNAME'
|
|
797
|
+
config.password = 'YOUR PASSWORD'
|
|
798
|
+
end
|
|
799
|
+
|
|
800
|
+
api_instance = ClickSendClient::SMSApi.new
|
|
801
|
+
|
|
802
|
+
template_id = 56 # Integer | Template id
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
begin
|
|
806
|
+
#Delete sms template
|
|
807
|
+
result = api_instance.sms_templates_by_template_id_delete(template_id)
|
|
808
|
+
p result
|
|
809
|
+
rescue ClickSendClient::ApiError => e
|
|
810
|
+
puts "Exception when calling SMSApi->sms_templates_by_template_id_delete: #{e}"
|
|
811
|
+
end
|
|
812
|
+
```
|
|
813
|
+
|
|
814
|
+
### Parameters
|
|
815
|
+
|
|
816
|
+
Name | Type | Description | Notes
|
|
817
|
+
------------- | ------------- | ------------- | -------------
|
|
818
|
+
**template_id** | **Integer**| Template id |
|
|
819
|
+
|
|
820
|
+
### Return type
|
|
821
|
+
|
|
822
|
+
**String**
|
|
823
|
+
|
|
824
|
+
### Authorization
|
|
825
|
+
|
|
826
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
827
|
+
|
|
828
|
+
### HTTP request headers
|
|
829
|
+
|
|
830
|
+
- **Content-Type**: application/json
|
|
831
|
+
- **Accept**: application/json
|
|
832
|
+
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
# **sms_templates_by_template_id_put**
|
|
836
|
+
> String sms_templates_by_template_id_put(template_id, sms_template)
|
|
837
|
+
|
|
838
|
+
Update sms template
|
|
839
|
+
|
|
840
|
+
Update sms template
|
|
841
|
+
|
|
842
|
+
### Example
|
|
843
|
+
```ruby
|
|
844
|
+
# load the gem
|
|
845
|
+
require 'clicksend_client'
|
|
846
|
+
# setup authorization
|
|
847
|
+
ClickSendClient.configure do |config|
|
|
848
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
849
|
+
config.username = 'YOUR USERNAME'
|
|
850
|
+
config.password = 'YOUR PASSWORD'
|
|
851
|
+
end
|
|
852
|
+
|
|
853
|
+
api_instance = ClickSendClient::SMSApi.new
|
|
854
|
+
|
|
855
|
+
template_id = 56 # Integer | Template id
|
|
856
|
+
|
|
857
|
+
sms_template = ClickSendClient::SmsTemplate.new # SmsTemplate | Template item
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
begin
|
|
861
|
+
#Update sms template
|
|
862
|
+
result = api_instance.sms_templates_by_template_id_put(template_id, sms_template)
|
|
863
|
+
p result
|
|
864
|
+
rescue ClickSendClient::ApiError => e
|
|
865
|
+
puts "Exception when calling SMSApi->sms_templates_by_template_id_put: #{e}"
|
|
866
|
+
end
|
|
867
|
+
```
|
|
868
|
+
|
|
869
|
+
### Parameters
|
|
870
|
+
|
|
871
|
+
Name | Type | Description | Notes
|
|
872
|
+
------------- | ------------- | ------------- | -------------
|
|
873
|
+
**template_id** | **Integer**| Template id |
|
|
874
|
+
**sms_template** | [**SmsTemplate**](SmsTemplate.md)| Template item |
|
|
875
|
+
|
|
876
|
+
### Return type
|
|
877
|
+
|
|
878
|
+
**String**
|
|
879
|
+
|
|
880
|
+
### Authorization
|
|
881
|
+
|
|
882
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
883
|
+
|
|
884
|
+
### HTTP request headers
|
|
885
|
+
|
|
886
|
+
- **Content-Type**: application/json
|
|
887
|
+
- **Accept**: application/json
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
# **sms_templates_get**
|
|
892
|
+
> String sms_templates_get(opts)
|
|
893
|
+
|
|
894
|
+
Get lists of all sms templates
|
|
895
|
+
|
|
896
|
+
Get lists of all sms templates
|
|
897
|
+
|
|
898
|
+
### Example
|
|
899
|
+
```ruby
|
|
900
|
+
# load the gem
|
|
901
|
+
require 'clicksend_client'
|
|
902
|
+
# setup authorization
|
|
903
|
+
ClickSendClient.configure do |config|
|
|
904
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
905
|
+
config.username = 'YOUR USERNAME'
|
|
906
|
+
config.password = 'YOUR PASSWORD'
|
|
907
|
+
end
|
|
908
|
+
|
|
909
|
+
api_instance = ClickSendClient::SMSApi.new
|
|
910
|
+
|
|
911
|
+
opts = {
|
|
912
|
+
page: 1, # Integer | Page number
|
|
913
|
+
limit: 10 # Integer | Number of records per page
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
begin
|
|
917
|
+
#Get lists of all sms templates
|
|
918
|
+
result = api_instance.sms_templates_get(opts)
|
|
919
|
+
p result
|
|
920
|
+
rescue ClickSendClient::ApiError => e
|
|
921
|
+
puts "Exception when calling SMSApi->sms_templates_get: #{e}"
|
|
922
|
+
end
|
|
923
|
+
```
|
|
924
|
+
|
|
925
|
+
### Parameters
|
|
926
|
+
|
|
927
|
+
Name | Type | Description | Notes
|
|
928
|
+
------------- | ------------- | ------------- | -------------
|
|
929
|
+
**page** | **Integer**| Page number | [optional] [default to 1]
|
|
930
|
+
**limit** | **Integer**| Number of records per page | [optional] [default to 10]
|
|
931
|
+
|
|
932
|
+
### Return type
|
|
933
|
+
|
|
934
|
+
**String**
|
|
935
|
+
|
|
936
|
+
### Authorization
|
|
937
|
+
|
|
938
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
939
|
+
|
|
940
|
+
### HTTP request headers
|
|
941
|
+
|
|
942
|
+
- **Content-Type**: application/json
|
|
943
|
+
- **Accept**: application/json
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
# **sms_templates_post**
|
|
948
|
+
> String sms_templates_post(sms_template)
|
|
949
|
+
|
|
950
|
+
Create sms template
|
|
951
|
+
|
|
952
|
+
Create sms template
|
|
953
|
+
|
|
954
|
+
### Example
|
|
955
|
+
```ruby
|
|
956
|
+
# load the gem
|
|
957
|
+
require 'clicksend_client'
|
|
958
|
+
# setup authorization
|
|
959
|
+
ClickSendClient.configure do |config|
|
|
960
|
+
# Configure HTTP basic authorization: BasicAuth
|
|
961
|
+
config.username = 'YOUR USERNAME'
|
|
962
|
+
config.password = 'YOUR PASSWORD'
|
|
963
|
+
end
|
|
964
|
+
|
|
965
|
+
api_instance = ClickSendClient::SMSApi.new
|
|
966
|
+
|
|
967
|
+
sms_template = ClickSendClient::SmsTemplate.new # SmsTemplate | SmsTemplate model
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
begin
|
|
971
|
+
#Create sms template
|
|
972
|
+
result = api_instance.sms_templates_post(sms_template)
|
|
973
|
+
p result
|
|
974
|
+
rescue ClickSendClient::ApiError => e
|
|
975
|
+
puts "Exception when calling SMSApi->sms_templates_post: #{e}"
|
|
976
|
+
end
|
|
977
|
+
```
|
|
978
|
+
|
|
979
|
+
### Parameters
|
|
980
|
+
|
|
981
|
+
Name | Type | Description | Notes
|
|
982
|
+
------------- | ------------- | ------------- | -------------
|
|
983
|
+
**sms_template** | [**SmsTemplate**](SmsTemplate.md)| SmsTemplate model |
|
|
984
|
+
|
|
985
|
+
### Return type
|
|
986
|
+
|
|
987
|
+
**String**
|
|
988
|
+
|
|
989
|
+
### Authorization
|
|
990
|
+
|
|
991
|
+
[BasicAuth](../README.md#BasicAuth)
|
|
992
|
+
|
|
993
|
+
### HTTP request headers
|
|
994
|
+
|
|
995
|
+
- **Content-Type**: application/json
|
|
996
|
+
- **Accept**: application/json
|
|
997
|
+
|
|
998
|
+
|
|
999
|
+
|