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
data/docs/SmsMessage.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# ClickSendClient::SmsMessage
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**from** | **String** | Your sender id - more info: http://help.clicksend.com/SMS/what-is-a-sender-id-or-sender-number. | [optional]
|
7
|
+
**body** | **String** | Your message. |
|
8
|
+
**to** | **String** | Recipient phone number in E.164 format. |
|
9
|
+
**source** | **String** | Your method of sending e.g. 'wordpress', 'php', 'c#'. | [optional] [default to 'sdk']
|
10
|
+
**schedule** | **Integer** | Leave blank for immediate delivery. Your schedule time in unix format http://help.clicksend.com/what-is-a-unix-timestamp | [optional] [default to 0]
|
11
|
+
**custom_string** | **String** | Your reference. Will be passed back with all replies and delivery reports. | [optional]
|
12
|
+
**list_id** | **Integer** | Your list ID if sending to a whole list. Can be used instead of 'to'. | [optional]
|
13
|
+
**country** | **String** | Recipient country. | [optional]
|
14
|
+
**from_email** | **String** | An email address where the reply should be emailed to. If omitted, the reply will be emailed back to the user who sent the outgoing SMS. | [optional]
|
15
|
+
|
16
|
+
|
data/docs/SmsTemplate.md
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
# ClickSendClient::StatisticsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://rest.clicksend.com/v3*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**statistics_sms_get**](StatisticsApi.md#statistics_sms_get) | **GET** /statistics/sms | Get sms statistics
|
8
|
+
[**statistics_voice_get**](StatisticsApi.md#statistics_voice_get) | **GET** /statistics/voice | Get voice statistics
|
9
|
+
|
10
|
+
|
11
|
+
# **statistics_sms_get**
|
12
|
+
> String statistics_sms_get
|
13
|
+
|
14
|
+
Get sms statistics
|
15
|
+
|
16
|
+
Get sms statistics
|
17
|
+
|
18
|
+
### Example
|
19
|
+
```ruby
|
20
|
+
# load the gem
|
21
|
+
require 'clicksend_client'
|
22
|
+
# setup authorization
|
23
|
+
ClickSendClient.configure do |config|
|
24
|
+
# Configure HTTP basic authorization: BasicAuth
|
25
|
+
config.username = 'YOUR USERNAME'
|
26
|
+
config.password = 'YOUR PASSWORD'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = ClickSendClient::StatisticsApi.new
|
30
|
+
|
31
|
+
begin
|
32
|
+
#Get sms statistics
|
33
|
+
result = api_instance.statistics_sms_get
|
34
|
+
p result
|
35
|
+
rescue ClickSendClient::ApiError => e
|
36
|
+
puts "Exception when calling StatisticsApi->statistics_sms_get: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
### Parameters
|
41
|
+
This endpoint does not need any parameter.
|
42
|
+
|
43
|
+
### Return type
|
44
|
+
|
45
|
+
**String**
|
46
|
+
|
47
|
+
### Authorization
|
48
|
+
|
49
|
+
[BasicAuth](../README.md#BasicAuth)
|
50
|
+
|
51
|
+
### HTTP request headers
|
52
|
+
|
53
|
+
- **Content-Type**: application/json
|
54
|
+
- **Accept**: application/json
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
# **statistics_voice_get**
|
59
|
+
> String statistics_voice_get
|
60
|
+
|
61
|
+
Get voice statistics
|
62
|
+
|
63
|
+
Get voice statistics
|
64
|
+
|
65
|
+
### Example
|
66
|
+
```ruby
|
67
|
+
# load the gem
|
68
|
+
require 'clicksend_client'
|
69
|
+
# setup authorization
|
70
|
+
ClickSendClient.configure do |config|
|
71
|
+
# Configure HTTP basic authorization: BasicAuth
|
72
|
+
config.username = 'YOUR USERNAME'
|
73
|
+
config.password = 'YOUR PASSWORD'
|
74
|
+
end
|
75
|
+
|
76
|
+
api_instance = ClickSendClient::StatisticsApi.new
|
77
|
+
|
78
|
+
begin
|
79
|
+
#Get voice statistics
|
80
|
+
result = api_instance.statistics_voice_get
|
81
|
+
p result
|
82
|
+
rescue ClickSendClient::ApiError => e
|
83
|
+
puts "Exception when calling StatisticsApi->statistics_voice_get: #{e}"
|
84
|
+
end
|
85
|
+
```
|
86
|
+
|
87
|
+
### Parameters
|
88
|
+
This endpoint does not need any parameter.
|
89
|
+
|
90
|
+
### Return type
|
91
|
+
|
92
|
+
**String**
|
93
|
+
|
94
|
+
### Authorization
|
95
|
+
|
96
|
+
[BasicAuth](../README.md#BasicAuth)
|
97
|
+
|
98
|
+
### HTTP request headers
|
99
|
+
|
100
|
+
- **Content-Type**: application/json
|
101
|
+
- **Accept**: application/json
|
102
|
+
|
103
|
+
|
104
|
+
|
data/docs/Subaccount.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# ClickSendClient::Subaccount
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**api_username** | **String** | Your new api username. |
|
7
|
+
**password** | **String** | Your new password |
|
8
|
+
**email** | **String** | Your new email. |
|
9
|
+
**phone_number** | **String** | Your phone number in E.164 format. |
|
10
|
+
**first_name** | **String** | Your firstname |
|
11
|
+
**last_name** | **String** | Your lastname |
|
12
|
+
**access_users** | **Integer** | Your access users flag value, must be 1 or 0. | [optional] [default to 1]
|
13
|
+
**access_billing** | **Integer** | Your access billing flag value, must be 1 or 0. | [optional] [default to 1]
|
14
|
+
**access_reporting** | **Integer** | Your access reporting flag value, must be 1 or 0. | [optional] [default to 1]
|
15
|
+
**access_contacts** | **Integer** | Your access contacts flag value, must be 1 or 0. | [optional] [default to 0]
|
16
|
+
**access_settings** | **Integer** | Your access settings flag value, must be 1 or 0. | [optional] [default to 1]
|
17
|
+
|
18
|
+
|
@@ -0,0 +1,338 @@
|
|
1
|
+
# ClickSendClient::SubaccountApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://rest.clicksend.com/v3*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**subaccounts_by_subaccount_id_delete**](SubaccountApi.md#subaccounts_by_subaccount_id_delete) | **DELETE** /subaccounts/{subaccount_id} | Delete a subaccount
|
8
|
+
[**subaccounts_by_subaccount_id_get**](SubaccountApi.md#subaccounts_by_subaccount_id_get) | **GET** /subaccounts/{subaccount_id} | Get specific subaccount
|
9
|
+
[**subaccounts_by_subaccount_id_put**](SubaccountApi.md#subaccounts_by_subaccount_id_put) | **PUT** /subaccounts/{subaccount_id} | Update subaccount
|
10
|
+
[**subaccounts_get**](SubaccountApi.md#subaccounts_get) | **GET** /subaccounts | Get all subaccounts
|
11
|
+
[**subaccounts_post**](SubaccountApi.md#subaccounts_post) | **POST** /subaccounts | Create new subaccount
|
12
|
+
[**subaccounts_regen_api_key_by_subaccount_id_put**](SubaccountApi.md#subaccounts_regen_api_key_by_subaccount_id_put) | **PUT** /subaccounts/{subaccount_id}/regen-api-key | Regenerate an API Key
|
13
|
+
|
14
|
+
|
15
|
+
# **subaccounts_by_subaccount_id_delete**
|
16
|
+
> String subaccounts_by_subaccount_id_delete(subaccount_id)
|
17
|
+
|
18
|
+
Delete a subaccount
|
19
|
+
|
20
|
+
Delete a subaccount
|
21
|
+
|
22
|
+
### Example
|
23
|
+
```ruby
|
24
|
+
# load the gem
|
25
|
+
require 'clicksend_client'
|
26
|
+
# setup authorization
|
27
|
+
ClickSendClient.configure do |config|
|
28
|
+
# Configure HTTP basic authorization: BasicAuth
|
29
|
+
config.username = 'YOUR USERNAME'
|
30
|
+
config.password = 'YOUR PASSWORD'
|
31
|
+
end
|
32
|
+
|
33
|
+
api_instance = ClickSendClient::SubaccountApi.new
|
34
|
+
|
35
|
+
subaccount_id = 56 # Integer | ID of subaccount to delete
|
36
|
+
|
37
|
+
|
38
|
+
begin
|
39
|
+
#Delete a subaccount
|
40
|
+
result = api_instance.subaccounts_by_subaccount_id_delete(subaccount_id)
|
41
|
+
p result
|
42
|
+
rescue ClickSendClient::ApiError => e
|
43
|
+
puts "Exception when calling SubaccountApi->subaccounts_by_subaccount_id_delete: #{e}"
|
44
|
+
end
|
45
|
+
```
|
46
|
+
|
47
|
+
### Parameters
|
48
|
+
|
49
|
+
Name | Type | Description | Notes
|
50
|
+
------------- | ------------- | ------------- | -------------
|
51
|
+
**subaccount_id** | **Integer**| ID of subaccount to delete |
|
52
|
+
|
53
|
+
### Return type
|
54
|
+
|
55
|
+
**String**
|
56
|
+
|
57
|
+
### Authorization
|
58
|
+
|
59
|
+
[BasicAuth](../README.md#BasicAuth)
|
60
|
+
|
61
|
+
### HTTP request headers
|
62
|
+
|
63
|
+
- **Content-Type**: application/json
|
64
|
+
- **Accept**: application/json
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
# **subaccounts_by_subaccount_id_get**
|
69
|
+
> String subaccounts_by_subaccount_id_get(subaccount_id)
|
70
|
+
|
71
|
+
Get specific subaccount
|
72
|
+
|
73
|
+
Get specific subaccount
|
74
|
+
|
75
|
+
### Example
|
76
|
+
```ruby
|
77
|
+
# load the gem
|
78
|
+
require 'clicksend_client'
|
79
|
+
# setup authorization
|
80
|
+
ClickSendClient.configure do |config|
|
81
|
+
# Configure HTTP basic authorization: BasicAuth
|
82
|
+
config.username = 'YOUR USERNAME'
|
83
|
+
config.password = 'YOUR PASSWORD'
|
84
|
+
end
|
85
|
+
|
86
|
+
api_instance = ClickSendClient::SubaccountApi.new
|
87
|
+
|
88
|
+
subaccount_id = 56 # Integer | ID of subaccount to get
|
89
|
+
|
90
|
+
|
91
|
+
begin
|
92
|
+
#Get specific subaccount
|
93
|
+
result = api_instance.subaccounts_by_subaccount_id_get(subaccount_id)
|
94
|
+
p result
|
95
|
+
rescue ClickSendClient::ApiError => e
|
96
|
+
puts "Exception when calling SubaccountApi->subaccounts_by_subaccount_id_get: #{e}"
|
97
|
+
end
|
98
|
+
```
|
99
|
+
|
100
|
+
### Parameters
|
101
|
+
|
102
|
+
Name | Type | Description | Notes
|
103
|
+
------------- | ------------- | ------------- | -------------
|
104
|
+
**subaccount_id** | **Integer**| ID of subaccount to get |
|
105
|
+
|
106
|
+
### Return type
|
107
|
+
|
108
|
+
**String**
|
109
|
+
|
110
|
+
### Authorization
|
111
|
+
|
112
|
+
[BasicAuth](../README.md#BasicAuth)
|
113
|
+
|
114
|
+
### HTTP request headers
|
115
|
+
|
116
|
+
- **Content-Type**: application/json
|
117
|
+
- **Accept**: application/json
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
# **subaccounts_by_subaccount_id_put**
|
122
|
+
> String subaccounts_by_subaccount_id_put(subaccount_id, subaccount)
|
123
|
+
|
124
|
+
Update subaccount
|
125
|
+
|
126
|
+
Update subaccount
|
127
|
+
|
128
|
+
### Example
|
129
|
+
```ruby
|
130
|
+
# load the gem
|
131
|
+
require 'clicksend_client'
|
132
|
+
# setup authorization
|
133
|
+
ClickSendClient.configure do |config|
|
134
|
+
# Configure HTTP basic authorization: BasicAuth
|
135
|
+
config.username = 'YOUR USERNAME'
|
136
|
+
config.password = 'YOUR PASSWORD'
|
137
|
+
end
|
138
|
+
|
139
|
+
api_instance = ClickSendClient::SubaccountApi.new
|
140
|
+
|
141
|
+
subaccount_id = 56 # Integer | ID of subaccount to update
|
142
|
+
|
143
|
+
subaccount = ClickSendClient::Subaccount.new # Subaccount | Subaccount model
|
144
|
+
|
145
|
+
|
146
|
+
begin
|
147
|
+
#Update subaccount
|
148
|
+
result = api_instance.subaccounts_by_subaccount_id_put(subaccount_id, subaccount)
|
149
|
+
p result
|
150
|
+
rescue ClickSendClient::ApiError => e
|
151
|
+
puts "Exception when calling SubaccountApi->subaccounts_by_subaccount_id_put: #{e}"
|
152
|
+
end
|
153
|
+
```
|
154
|
+
|
155
|
+
### Parameters
|
156
|
+
|
157
|
+
Name | Type | Description | Notes
|
158
|
+
------------- | ------------- | ------------- | -------------
|
159
|
+
**subaccount_id** | **Integer**| ID of subaccount to update |
|
160
|
+
**subaccount** | [**Subaccount**](Subaccount.md)| Subaccount model |
|
161
|
+
|
162
|
+
### Return type
|
163
|
+
|
164
|
+
**String**
|
165
|
+
|
166
|
+
### Authorization
|
167
|
+
|
168
|
+
[BasicAuth](../README.md#BasicAuth)
|
169
|
+
|
170
|
+
### HTTP request headers
|
171
|
+
|
172
|
+
- **Content-Type**: application/json
|
173
|
+
- **Accept**: application/json
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
# **subaccounts_get**
|
178
|
+
> String subaccounts_get(opts)
|
179
|
+
|
180
|
+
Get all subaccounts
|
181
|
+
|
182
|
+
Get all subaccounts
|
183
|
+
|
184
|
+
### Example
|
185
|
+
```ruby
|
186
|
+
# load the gem
|
187
|
+
require 'clicksend_client'
|
188
|
+
# setup authorization
|
189
|
+
ClickSendClient.configure do |config|
|
190
|
+
# Configure HTTP basic authorization: BasicAuth
|
191
|
+
config.username = 'YOUR USERNAME'
|
192
|
+
config.password = 'YOUR PASSWORD'
|
193
|
+
end
|
194
|
+
|
195
|
+
api_instance = ClickSendClient::SubaccountApi.new
|
196
|
+
|
197
|
+
opts = {
|
198
|
+
page: 1, # Integer | Page number
|
199
|
+
limit: 10 # Integer | Number of records per page
|
200
|
+
}
|
201
|
+
|
202
|
+
begin
|
203
|
+
#Get all subaccounts
|
204
|
+
result = api_instance.subaccounts_get(opts)
|
205
|
+
p result
|
206
|
+
rescue ClickSendClient::ApiError => e
|
207
|
+
puts "Exception when calling SubaccountApi->subaccounts_get: #{e}"
|
208
|
+
end
|
209
|
+
```
|
210
|
+
|
211
|
+
### Parameters
|
212
|
+
|
213
|
+
Name | Type | Description | Notes
|
214
|
+
------------- | ------------- | ------------- | -------------
|
215
|
+
**page** | **Integer**| Page number | [optional] [default to 1]
|
216
|
+
**limit** | **Integer**| Number of records per page | [optional] [default to 10]
|
217
|
+
|
218
|
+
### Return type
|
219
|
+
|
220
|
+
**String**
|
221
|
+
|
222
|
+
### Authorization
|
223
|
+
|
224
|
+
[BasicAuth](../README.md#BasicAuth)
|
225
|
+
|
226
|
+
### HTTP request headers
|
227
|
+
|
228
|
+
- **Content-Type**: application/json
|
229
|
+
- **Accept**: application/json
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
# **subaccounts_post**
|
234
|
+
> String subaccounts_post(subaccount)
|
235
|
+
|
236
|
+
Create new subaccount
|
237
|
+
|
238
|
+
Create new subaccount
|
239
|
+
|
240
|
+
### Example
|
241
|
+
```ruby
|
242
|
+
# load the gem
|
243
|
+
require 'clicksend_client'
|
244
|
+
# setup authorization
|
245
|
+
ClickSendClient.configure do |config|
|
246
|
+
# Configure HTTP basic authorization: BasicAuth
|
247
|
+
config.username = 'YOUR USERNAME'
|
248
|
+
config.password = 'YOUR PASSWORD'
|
249
|
+
end
|
250
|
+
|
251
|
+
api_instance = ClickSendClient::SubaccountApi.new
|
252
|
+
|
253
|
+
subaccount = ClickSendClient::Subaccount.new # Subaccount | Subaccount model
|
254
|
+
|
255
|
+
|
256
|
+
begin
|
257
|
+
#Create new subaccount
|
258
|
+
result = api_instance.subaccounts_post(subaccount)
|
259
|
+
p result
|
260
|
+
rescue ClickSendClient::ApiError => e
|
261
|
+
puts "Exception when calling SubaccountApi->subaccounts_post: #{e}"
|
262
|
+
end
|
263
|
+
```
|
264
|
+
|
265
|
+
### Parameters
|
266
|
+
|
267
|
+
Name | Type | Description | Notes
|
268
|
+
------------- | ------------- | ------------- | -------------
|
269
|
+
**subaccount** | [**Subaccount**](Subaccount.md)| Subaccount model |
|
270
|
+
|
271
|
+
### Return type
|
272
|
+
|
273
|
+
**String**
|
274
|
+
|
275
|
+
### Authorization
|
276
|
+
|
277
|
+
[BasicAuth](../README.md#BasicAuth)
|
278
|
+
|
279
|
+
### HTTP request headers
|
280
|
+
|
281
|
+
- **Content-Type**: application/json
|
282
|
+
- **Accept**: application/json
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
# **subaccounts_regen_api_key_by_subaccount_id_put**
|
287
|
+
> String subaccounts_regen_api_key_by_subaccount_id_put(subaccount_id)
|
288
|
+
|
289
|
+
Regenerate an API Key
|
290
|
+
|
291
|
+
Regenerate an API Key
|
292
|
+
|
293
|
+
### Example
|
294
|
+
```ruby
|
295
|
+
# load the gem
|
296
|
+
require 'clicksend_client'
|
297
|
+
# setup authorization
|
298
|
+
ClickSendClient.configure do |config|
|
299
|
+
# Configure HTTP basic authorization: BasicAuth
|
300
|
+
config.username = 'YOUR USERNAME'
|
301
|
+
config.password = 'YOUR PASSWORD'
|
302
|
+
end
|
303
|
+
|
304
|
+
api_instance = ClickSendClient::SubaccountApi.new
|
305
|
+
|
306
|
+
subaccount_id = 56 # Integer | ID of subaccount to regenerate API key for
|
307
|
+
|
308
|
+
|
309
|
+
begin
|
310
|
+
#Regenerate an API Key
|
311
|
+
result = api_instance.subaccounts_regen_api_key_by_subaccount_id_put(subaccount_id)
|
312
|
+
p result
|
313
|
+
rescue ClickSendClient::ApiError => e
|
314
|
+
puts "Exception when calling SubaccountApi->subaccounts_regen_api_key_by_subaccount_id_put: #{e}"
|
315
|
+
end
|
316
|
+
```
|
317
|
+
|
318
|
+
### Parameters
|
319
|
+
|
320
|
+
Name | Type | Description | Notes
|
321
|
+
------------- | ------------- | ------------- | -------------
|
322
|
+
**subaccount_id** | **Integer**| ID of subaccount to regenerate API key for |
|
323
|
+
|
324
|
+
### Return type
|
325
|
+
|
326
|
+
**String**
|
327
|
+
|
328
|
+
### Authorization
|
329
|
+
|
330
|
+
[BasicAuth](../README.md#BasicAuth)
|
331
|
+
|
332
|
+
### HTTP request headers
|
333
|
+
|
334
|
+
- **Content-Type**: application/json
|
335
|
+
- **Accept**: application/json
|
336
|
+
|
337
|
+
|
338
|
+
|