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.
Files changed (261) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +78 -0
  4. data/Rakefile +8 -0
  5. data/clicksend_client-1.0.1.gem +0 -0
  6. data/clicksend_client.gemspec +45 -0
  7. data/docs/Account.md +15 -0
  8. data/docs/AccountApi.md +433 -0
  9. data/docs/AccountForgotPasswordVerify.md +10 -0
  10. data/docs/AccountRechargeApi.md +330 -0
  11. data/docs/AccountVerify.md +10 -0
  12. data/docs/Address.md +14 -0
  13. data/docs/Attachment.md +12 -0
  14. data/docs/Contact.md +23 -0
  15. data/docs/ContactApi.md +416 -0
  16. data/docs/ContactList.md +8 -0
  17. data/docs/ContactListApi.md +398 -0
  18. data/docs/ContactListImport.md +9 -0
  19. data/docs/CountriesApi.md +50 -0
  20. data/docs/CreditCard.md +13 -0
  21. data/docs/DateBefore.md +8 -0
  22. data/docs/DeliveryIssue.md +12 -0
  23. data/docs/DeliveryIssuesApi.md +119 -0
  24. data/docs/DeliveryReceiptRule.md +12 -0
  25. data/docs/DetectAddressApi.md +62 -0
  26. data/docs/Email.md +15 -0
  27. data/docs/EmailAddress.md +8 -0
  28. data/docs/EmailCampaign.md +15 -0
  29. data/docs/EmailDeliveryReceiptRulesApi.md +286 -0
  30. data/docs/EmailFrom.md +9 -0
  31. data/docs/EmailMarketingApi.md +793 -0
  32. data/docs/EmailRecipient.md +9 -0
  33. data/docs/EmailSMSAddress.md +10 -0
  34. data/docs/EmailTemplateNew.md +9 -0
  35. data/docs/EmailTemplateUpdate.md +9 -0
  36. data/docs/EmailToSmsApi.md +395 -0
  37. data/docs/FAXApi.md +401 -0
  38. data/docs/FAXDeliveryReceiptRulesApi.md +286 -0
  39. data/docs/FaxMessage.md +15 -0
  40. data/docs/FaxMessageCollection.md +9 -0
  41. data/docs/Fields.md +8 -0
  42. data/docs/FieldsFields.md +23 -0
  43. data/docs/ForgotPassword.md +8 -0
  44. data/docs/ForgotUsername.md +9 -0
  45. data/docs/InboundFAXRulesApi.md +286 -0
  46. data/docs/InboundFaxRule.md +12 -0
  47. data/docs/InboundSMSRule.md +14 -0
  48. data/docs/InboundSMSRulesApi.md +286 -0
  49. data/docs/MMSApi.md +228 -0
  50. data/docs/MasterEmailTemplatesApi.md +290 -0
  51. data/docs/MmsCampaign.md +14 -0
  52. data/docs/MmsCampaignApi.md +338 -0
  53. data/docs/MmsMessage.md +17 -0
  54. data/docs/MmsMessageCollection.md +9 -0
  55. data/docs/NumberApi.md +183 -0
  56. data/docs/PostLetter.md +14 -0
  57. data/docs/PostLetterApi.md +227 -0
  58. data/docs/PostPostcard.md +9 -0
  59. data/docs/PostPostcardApi.md +227 -0
  60. data/docs/PostRecipient.md +16 -0
  61. data/docs/PostReturnAddressApi.md +284 -0
  62. data/docs/ReferralAccountApi.md +65 -0
  63. data/docs/ResellerAccount.md +15 -0
  64. data/docs/ResellerAccountApi.md +230 -0
  65. data/docs/ResellerAccountTransferCredit.md +10 -0
  66. data/docs/SMSApi.md +999 -0
  67. data/docs/SMSDeliveryReceiptRulesApi.md +286 -0
  68. data/docs/SearchApi.md +68 -0
  69. data/docs/SmsCampaign.md +12 -0
  70. data/docs/SmsCampaignApi.md +338 -0
  71. data/docs/SmsMessage.md +16 -0
  72. data/docs/SmsMessageCollection.md +8 -0
  73. data/docs/SmsTemplate.md +9 -0
  74. data/docs/StatisticsApi.md +104 -0
  75. data/docs/StrippedString.md +8 -0
  76. data/docs/Subaccount.md +18 -0
  77. data/docs/SubaccountApi.md +338 -0
  78. data/docs/TimezonesApi.md +65 -0
  79. data/docs/TransactionalEmailApi.md +237 -0
  80. data/docs/TransferCreditApi.md +62 -0
  81. data/docs/UploadApi.md +65 -0
  82. data/docs/UploadFile.md +8 -0
  83. data/docs/Url.md +8 -0
  84. data/docs/UserEmailTemplatesApi.md +284 -0
  85. data/docs/VoiceApi.md +547 -0
  86. data/docs/VoiceDeliveryReceiptRulesApi.md +286 -0
  87. data/docs/VoiceMessage.md +18 -0
  88. data/docs/VoiceMessageCollection.md +8 -0
  89. data/lib/clicksend_client.rb +121 -0
  90. data/lib/clicksend_client/api/account_api.rb +447 -0
  91. data/lib/clicksend_client/api/account_recharge_api.rb +346 -0
  92. data/lib/clicksend_client/api/contact_api.rb +463 -0
  93. data/lib/clicksend_client/api/contact_list_api.rb +427 -0
  94. data/lib/clicksend_client/api/countries_api.rb +71 -0
  95. data/lib/clicksend_client/api/delivery_issues_api.rb +139 -0
  96. data/lib/clicksend_client/api/detect_address_api.rb +77 -0
  97. data/lib/clicksend_client/api/email_delivery_receipt_rules_api.rb +310 -0
  98. data/lib/clicksend_client/api/email_marketing_api.rb +829 -0
  99. data/lib/clicksend_client/api/email_to_sms_api.rb +423 -0
  100. data/lib/clicksend_client/api/fax_api.rb +425 -0
  101. data/lib/clicksend_client/api/fax_delivery_receipt_rules_api.rb +310 -0
  102. data/lib/clicksend_client/api/inbound_fax_rules_api.rb +310 -0
  103. data/lib/clicksend_client/api/inbound_sms_rules_api.rb +310 -0
  104. data/lib/clicksend_client/api/master_email_templates_api.rb +323 -0
  105. data/lib/clicksend_client/api/mms_api.rb +243 -0
  106. data/lib/clicksend_client/api/mms_campaign_api.rb +361 -0
  107. data/lib/clicksend_client/api/number_api.rb +213 -0
  108. data/lib/clicksend_client/api/post_letter_api.rb +248 -0
  109. data/lib/clicksend_client/api/post_postcard_api.rb +248 -0
  110. data/lib/clicksend_client/api/post_return_address_api.rb +307 -0
  111. data/lib/clicksend_client/api/referral_account_api.rb +85 -0
  112. data/lib/clicksend_client/api/reseller_account_api.rb +253 -0
  113. data/lib/clicksend_client/api/search_api.rb +92 -0
  114. data/lib/clicksend_client/api/sms_api.rb +1032 -0
  115. data/lib/clicksend_client/api/sms_campaign_api.rb +361 -0
  116. data/lib/clicksend_client/api/sms_delivery_receipt_rules_api.rb +310 -0
  117. data/lib/clicksend_client/api/statistics_api.rb +119 -0
  118. data/lib/clicksend_client/api/subaccount_api.rb +361 -0
  119. data/lib/clicksend_client/api/timezones_api.rb +85 -0
  120. data/lib/clicksend_client/api/transactional_email_api.rb +260 -0
  121. data/lib/clicksend_client/api/transfer_credit_api.rb +77 -0
  122. data/lib/clicksend_client/api/upload_api.rb +84 -0
  123. data/lib/clicksend_client/api/user_email_templates_api.rb +307 -0
  124. data/lib/clicksend_client/api/voice_api.rb +570 -0
  125. data/lib/clicksend_client/api/voice_delivery_receipt_rules_api.rb +310 -0
  126. data/lib/clicksend_client/api_client.rb +389 -0
  127. data/lib/clicksend_client/api_error.rb +38 -0
  128. data/lib/clicksend_client/configuration.rb +209 -0
  129. data/lib/clicksend_client/models/account.rb +295 -0
  130. data/lib/clicksend_client/models/account_forgot_password_verify.rb +219 -0
  131. data/lib/clicksend_client/models/account_verify.rb +220 -0
  132. data/lib/clicksend_client/models/address.rb +270 -0
  133. data/lib/clicksend_client/models/attachment.rb +250 -0
  134. data/lib/clicksend_client/models/contact.rb +345 -0
  135. data/lib/clicksend_client/models/contact_list.rb +190 -0
  136. data/lib/clicksend_client/models/contact_list_import.rb +207 -0
  137. data/lib/clicksend_client/models/credit_card.rb +265 -0
  138. data/lib/clicksend_client/models/date_before.rb +185 -0
  139. data/lib/clicksend_client/models/delivery_issue.rb +240 -0
  140. data/lib/clicksend_client/models/delivery_receipt_rule.rb +250 -0
  141. data/lib/clicksend_client/models/email.rb +277 -0
  142. data/lib/clicksend_client/models/email_address.rb +189 -0
  143. data/lib/clicksend_client/models/email_campaign.rb +287 -0
  144. data/lib/clicksend_client/models/email_from.rb +200 -0
  145. data/lib/clicksend_client/models/email_recipient.rb +200 -0
  146. data/lib/clicksend_client/models/email_sms_address.rb +215 -0
  147. data/lib/clicksend_client/models/email_template_new.rb +205 -0
  148. data/lib/clicksend_client/models/email_template_update.rb +200 -0
  149. data/lib/clicksend_client/models/fax_message.rb +262 -0
  150. data/lib/clicksend_client/models/fax_message_collection.rb +207 -0
  151. data/lib/clicksend_client/models/fields.rb +184 -0
  152. data/lib/clicksend_client/models/fields_fields.rb +335 -0
  153. data/lib/clicksend_client/models/forgot_password.rb +189 -0
  154. data/lib/clicksend_client/models/forgot_username.rb +194 -0
  155. data/lib/clicksend_client/models/inbound_fax_rule.rb +250 -0
  156. data/lib/clicksend_client/models/inbound_sms_rule.rb +280 -0
  157. data/lib/clicksend_client/models/mms_campaign.rb +272 -0
  158. data/lib/clicksend_client/models/mms_message.rb +294 -0
  159. data/lib/clicksend_client/models/mms_message_collection.rb +207 -0
  160. data/lib/clicksend_client/models/post_letter.rb +267 -0
  161. data/lib/clicksend_client/models/post_postcard.rb +209 -0
  162. data/lib/clicksend_client/models/post_recipient.rb +302 -0
  163. data/lib/clicksend_client/models/reseller_account.rb +295 -0
  164. data/lib/clicksend_client/models/reseller_account_transfer_credit.rb +220 -0
  165. data/lib/clicksend_client/models/sms_campaign.rb +242 -0
  166. data/lib/clicksend_client/models/sms_message.rb +279 -0
  167. data/lib/clicksend_client/models/sms_message_collection.rb +192 -0
  168. data/lib/clicksend_client/models/sms_template.rb +205 -0
  169. data/lib/clicksend_client/models/stripped_string.rb +190 -0
  170. data/lib/clicksend_client/models/subaccount.rb +325 -0
  171. data/lib/clicksend_client/models/upload_file.rb +190 -0
  172. data/lib/clicksend_client/models/url.rb +190 -0
  173. data/lib/clicksend_client/models/voice_message.rb +316 -0
  174. data/lib/clicksend_client/models/voice_message_collection.rb +192 -0
  175. data/lib/clicksend_client/version.rb +15 -0
  176. data/spec/api/account_api_spec.rb +131 -0
  177. data/spec/api/account_recharge_api_spec.rb +107 -0
  178. data/spec/api/contact_api_spec.rb +129 -0
  179. data/spec/api/contact_list_api_spec.rb +123 -0
  180. data/spec/api/countries_api_spec.rb +46 -0
  181. data/spec/api/delivery_issues_api_spec.rb +60 -0
  182. data/spec/api/detect_address_api_spec.rb +47 -0
  183. data/spec/api/email_delivery_receipt_rules_api_spec.rb +98 -0
  184. data/spec/api/email_marketing_api_spec.rb +213 -0
  185. data/spec/api/email_to_sms_api_spec.rb +122 -0
  186. data/spec/api/fax_api_spec.rb +125 -0
  187. data/spec/api/fax_delivery_receipt_rules_api_spec.rb +98 -0
  188. data/spec/api/inbound_fax_rules_api_spec.rb +98 -0
  189. data/spec/api/inbound_sms_rules_api_spec.rb +98 -0
  190. data/spec/api/master_email_templates_api_spec.rb +99 -0
  191. data/spec/api/mms_api_spec.rb +84 -0
  192. data/spec/api/mms_campaign_api_spec.rb +109 -0
  193. data/spec/api/number_api_spec.rb +76 -0
  194. data/spec/api/post_letter_api_spec.rb +84 -0
  195. data/spec/api/post_postcard_api_spec.rb +84 -0
  196. data/spec/api/post_return_address_api_spec.rb +97 -0
  197. data/spec/api/referral_account_api_spec.rb +48 -0
  198. data/spec/api/reseller_account_api_spec.rb +85 -0
  199. data/spec/api/search_api_spec.rb +49 -0
  200. data/spec/api/sms_api_spec.rb +259 -0
  201. data/spec/api/sms_campaign_api_spec.rb +109 -0
  202. data/spec/api/sms_delivery_receipt_rules_api_spec.rb +98 -0
  203. data/spec/api/statistics_api_spec.rb +57 -0
  204. data/spec/api/subaccount_api_spec.rb +109 -0
  205. data/spec/api/timezones_api_spec.rb +48 -0
  206. data/spec/api/transactional_email_api_spec.rb +88 -0
  207. data/spec/api/transfer_credit_api_spec.rb +47 -0
  208. data/spec/api/upload_api_spec.rb +48 -0
  209. data/spec/api/user_email_templates_api_spec.rb +97 -0
  210. data/spec/api/voice_api_spec.rb +157 -0
  211. data/spec/api/voice_delivery_receipt_rules_api_spec.rb +98 -0
  212. data/spec/api_client_spec.rb +226 -0
  213. data/spec/configuration_spec.rb +42 -0
  214. data/spec/models/account_forgot_password_verify_spec.rb +53 -0
  215. data/spec/models/account_spec.rb +83 -0
  216. data/spec/models/account_verify_spec.rb +53 -0
  217. data/spec/models/address_spec.rb +77 -0
  218. data/spec/models/attachment_spec.rb +65 -0
  219. data/spec/models/contact_list_import_spec.rb +47 -0
  220. data/spec/models/contact_list_spec.rb +41 -0
  221. data/spec/models/contact_spec.rb +131 -0
  222. data/spec/models/credit_card_spec.rb +71 -0
  223. data/spec/models/date_before_spec.rb +41 -0
  224. data/spec/models/delivery_issue_spec.rb +65 -0
  225. data/spec/models/delivery_receipt_rule_spec.rb +65 -0
  226. data/spec/models/email_address_spec.rb +41 -0
  227. data/spec/models/email_campaign_spec.rb +83 -0
  228. data/spec/models/email_from_spec.rb +47 -0
  229. data/spec/models/email_recipient_spec.rb +47 -0
  230. data/spec/models/email_sms_address_spec.rb +53 -0
  231. data/spec/models/email_spec.rb +83 -0
  232. data/spec/models/email_template_new_spec.rb +47 -0
  233. data/spec/models/email_template_update_spec.rb +47 -0
  234. data/spec/models/fax_message_collection_spec.rb +47 -0
  235. data/spec/models/fax_message_spec.rb +83 -0
  236. data/spec/models/fields_fields_spec.rb +131 -0
  237. data/spec/models/fields_spec.rb +41 -0
  238. data/spec/models/forgot_password_spec.rb +41 -0
  239. data/spec/models/forgot_username_spec.rb +47 -0
  240. data/spec/models/inbound_fax_rule_spec.rb +65 -0
  241. data/spec/models/inbound_sms_rule_spec.rb +77 -0
  242. data/spec/models/mms_campaign_spec.rb +77 -0
  243. data/spec/models/mms_message_collection_spec.rb +47 -0
  244. data/spec/models/mms_message_spec.rb +95 -0
  245. data/spec/models/post_letter_spec.rb +77 -0
  246. data/spec/models/post_postcard_spec.rb +47 -0
  247. data/spec/models/post_recipient_spec.rb +89 -0
  248. data/spec/models/reseller_account_spec.rb +83 -0
  249. data/spec/models/reseller_account_transfer_credit_spec.rb +53 -0
  250. data/spec/models/sms_campaign_spec.rb +65 -0
  251. data/spec/models/sms_message_collection_spec.rb +41 -0
  252. data/spec/models/sms_message_spec.rb +89 -0
  253. data/spec/models/sms_template_spec.rb +47 -0
  254. data/spec/models/stripped_string_spec.rb +41 -0
  255. data/spec/models/subaccount_spec.rb +101 -0
  256. data/spec/models/upload_file_spec.rb +41 -0
  257. data/spec/models/url_spec.rb +41 -0
  258. data/spec/models/voice_message_collection_spec.rb +41 -0
  259. data/spec/models/voice_message_spec.rb +101 -0
  260. data/spec/spec_helper.rb +111 -0
  261. metadata +568 -0
@@ -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
+
@@ -0,0 +1,8 @@
1
+ # ClickSendClient::SmsMessageCollection
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **messages** | [**Array<SmsMessage>**](SmsMessage.md) | Array of SmsMessage items |
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # ClickSendClient::SmsTemplate
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **template_name** | **String** | Name of template |
7
+ **body** | **String** | Body of template |
8
+
9
+
@@ -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
+
@@ -0,0 +1,8 @@
1
+ # ClickSendClient::StrippedString
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **strip_string** | **String** | String to be. |
7
+
8
+
@@ -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
+