sib-api-v3-sdk 3.0.1 → 4.0.0

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 (58) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -11
  3. data/docs/AddContactToList.md +8 -0
  4. data/docs/AddCredits.md +2 -2
  5. data/docs/ContactsApi.md +9 -9
  6. data/docs/CreateReseller.md +8 -0
  7. data/docs/GetChildInfo.md +2 -2
  8. data/docs/GetChildInfoApiKeys.md +2 -3
  9. data/docs/GetChildInfoApiKeysV2.md +9 -0
  10. data/docs/GetChildInfoApiKeysV3.md +9 -0
  11. data/docs/GetEmailCampaign.md +2 -0
  12. data/docs/GetSmsCampaign.md +2 -0
  13. data/docs/ListsApi.md +9 -9
  14. data/docs/ManageIp.md +1 -1
  15. data/docs/RemoveContactFromList.md +9 -0
  16. data/docs/RemoveCredits.md +2 -2
  17. data/docs/ResellerApi.md +45 -45
  18. data/docs/SendSmtpEmail.md +7 -5
  19. data/docs/UpdateChild.md +0 -1
  20. data/lib/sib-api-v3-sdk.rb +5 -2
  21. data/lib/sib-api-v3-sdk/api/contacts_api.rb +7 -7
  22. data/lib/sib-api-v3-sdk/api/lists_api.rb +7 -7
  23. data/lib/sib-api-v3-sdk/api/reseller_api.rb +82 -82
  24. data/lib/sib-api-v3-sdk/models/{add_remove_contact_to_list.rb → add_contact_to_list.rb} +2 -2
  25. data/lib/sib-api-v3-sdk/models/add_credits.rb +2 -2
  26. data/lib/sib-api-v3-sdk/models/create_reseller.rb +194 -0
  27. data/lib/sib-api-v3-sdk/models/error_model.rb +2 -2
  28. data/lib/sib-api-v3-sdk/models/get_child_info.rb +3 -6
  29. data/lib/sib-api-v3-sdk/models/get_child_info_api_keys.rb +21 -34
  30. data/lib/sib-api-v3-sdk/models/get_child_info_api_keys_v2.rb +209 -0
  31. data/lib/sib-api-v3-sdk/models/get_child_info_api_keys_v3.rb +209 -0
  32. data/lib/sib-api-v3-sdk/models/get_email_campaign.rb +32 -4
  33. data/lib/sib-api-v3-sdk/models/get_sms_campaign.rb +32 -4
  34. data/lib/sib-api-v3-sdk/models/manage_ip.rb +8 -8
  35. data/lib/sib-api-v3-sdk/models/{get_child_info_ips.rb → remove_contact_from_list.rb} +18 -26
  36. data/lib/sib-api-v3-sdk/models/remove_credits.rb +2 -2
  37. data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +29 -23
  38. data/lib/sib-api-v3-sdk/models/send_smtp_email_sender.rb +1 -1
  39. data/lib/sib-api-v3-sdk/models/update_child.rb +4 -15
  40. data/lib/sib-api-v3-sdk/version.rb +1 -1
  41. data/spec/api/contacts_api_spec.rb +2 -2
  42. data/spec/api/lists_api_spec.rb +2 -2
  43. data/spec/api/reseller_api_spec.rb +12 -12
  44. data/spec/models/{add_remove_contact_to_list_spec.rb → add_contact_to_list_spec.rb} +6 -6
  45. data/spec/models/create_reseller_spec.rb +42 -0
  46. data/spec/models/error_model_spec.rb +1 -1
  47. data/spec/models/get_child_info_api_keys_spec.rb +2 -8
  48. data/spec/models/{get_child_info_ips_spec.rb → get_child_info_api_keys_v2_spec.rb} +8 -8
  49. data/spec/models/get_child_info_api_keys_v3_spec.rb +48 -0
  50. data/spec/models/get_email_campaign_spec.rb +12 -0
  51. data/spec/models/get_sms_campaign_spec.rb +12 -0
  52. data/spec/models/manage_ip_spec.rb +1 -1
  53. data/spec/models/remove_contact_from_list_spec.rb +48 -0
  54. data/spec/models/send_smtp_email_spec.rb +12 -0
  55. data/spec/models/update_child_spec.rb +0 -6
  56. metadata +22 -10
  57. data/docs/AddRemoveContactToList.md +0 -8
  58. data/docs/GetChildInfoIps.md +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 813eff67db9f8ec7fc1484bdcd209c21a2ffa4d3
4
- data.tar.gz: 5d86fd822b16ddeae5913d0f64e4a4554c91cd17
3
+ metadata.gz: e23dd63c039bcf24c9bfffbe00bc30bdb83b39af
4
+ data.tar.gz: e1e8ef093da156abfb961287f509005baded18a7
5
5
  SHA512:
6
- metadata.gz: 2882c0e3e2ae0353e9c1f5434309d2b137d48df958122899488e4df0eb2dfc7e06d707e24b46af39f692bfca49239720b475b4095f1c9ac6348e7b51c675575b
7
- data.tar.gz: 15e284dd693fcf10c847041753eb61a0f3edccd5eb6f1d8b7fddd30661fd776754651889d045c75190fadd54f0d4f953b641b39ae5e8e8f4a1c2115ff5b4f3df
6
+ metadata.gz: a6d4f54aed242a2b53603da40cda6b6390261a5e57332964863d8e39d0ddb57e6d6b12926179fb205a0717e68d5e767b1a33492627991b4180052cd8a515a68b
7
+ data.tar.gz: f87cdd763599c024dea92e9771c1a2d62e7ecc14060d9debd3ca24726db3e1d07d507750200b70afe712e940ddd56639875f2a1f4c3adb27788828c2b4a33273
data/README.md CHANGED
@@ -103,7 +103,7 @@ Class | Method | HTTP request | Description
103
103
  *SibApiV3Sdk::ContactsApi* | [**get_list**](docs/ContactsApi.md#get_list) | **GET** /contacts/lists/{listId} | Get the details of a list
104
104
  *SibApiV3Sdk::ContactsApi* | [**get_lists**](docs/ContactsApi.md#get_lists) | **GET** /contacts/lists | Get all the lists
105
105
  *SibApiV3Sdk::ContactsApi* | [**import_contacts**](docs/ContactsApi.md#import_contacts) | **POST** /contacts/import | Import contacts
106
- *SibApiV3Sdk::ContactsApi* | [**remove_contact_to_list**](docs/ContactsApi.md#remove_contact_to_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
106
+ *SibApiV3Sdk::ContactsApi* | [**remove_contact_from_list**](docs/ContactsApi.md#remove_contact_from_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
107
107
  *SibApiV3Sdk::ContactsApi* | [**request_contact_export**](docs/ContactsApi.md#request_contact_export) | **POST** /contacts/export | Export contacts
108
108
  *SibApiV3Sdk::ContactsApi* | [**update_attribute**](docs/ContactsApi.md#update_attribute) | **PUT** /contacts/attributes/{attributeCategory}/{attributeName} | Updates contact attribute
109
109
  *SibApiV3Sdk::ContactsApi* | [**update_contact**](docs/ContactsApi.md#update_contact) | **PUT** /contacts/{email} | Updates a contact
@@ -132,19 +132,19 @@ Class | Method | HTTP request | Description
132
132
  *SibApiV3Sdk::ListsApi* | [**get_folder_lists**](docs/ListsApi.md#get_folder_lists) | **GET** /contacts/folders/{folderId}/lists | Get the lists in a folder
133
133
  *SibApiV3Sdk::ListsApi* | [**get_list**](docs/ListsApi.md#get_list) | **GET** /contacts/lists/{listId} | Get the details of a list
134
134
  *SibApiV3Sdk::ListsApi* | [**get_lists**](docs/ListsApi.md#get_lists) | **GET** /contacts/lists | Get all the lists
135
- *SibApiV3Sdk::ListsApi* | [**remove_contact_to_list**](docs/ListsApi.md#remove_contact_to_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
135
+ *SibApiV3Sdk::ListsApi* | [**remove_contact_from_list**](docs/ListsApi.md#remove_contact_from_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
136
136
  *SibApiV3Sdk::ListsApi* | [**update_list**](docs/ListsApi.md#update_list) | **PUT** /contacts/lists/{listId} | Update a list
137
137
  *SibApiV3Sdk::ProcessApi* | [**get_process**](docs/ProcessApi.md#get_process) | **GET** /processes/{processId} | Return the informations for a process
138
138
  *SibApiV3Sdk::ProcessApi* | [**get_processes**](docs/ProcessApi.md#get_processes) | **GET** /processes | Return all the processes for your account
139
- *SibApiV3Sdk::ResellerApi* | [**add_credits**](docs/ResellerApi.md#add_credits) | **POST** /reseller/children/{childId}/credits/add | Add Email and/or SMS credits to a specific child account
140
- *SibApiV3Sdk::ResellerApi* | [**associate_ip_to_child**](docs/ResellerApi.md#associate_ip_to_child) | **POST** /reseller/children/{childId}/ips/associate | Associate a dedicated IP to the child
139
+ *SibApiV3Sdk::ResellerApi* | [**add_credits**](docs/ResellerApi.md#add_credits) | **POST** /reseller/children/{childAuthKey}/credits/add | Add Email and/or SMS credits to a specific child account
140
+ *SibApiV3Sdk::ResellerApi* | [**associate_ip_to_child**](docs/ResellerApi.md#associate_ip_to_child) | **POST** /reseller/children/{childAuthKey}/ips/associate | Associate a dedicated IP to the child
141
141
  *SibApiV3Sdk::ResellerApi* | [**create_reseller_child**](docs/ResellerApi.md#create_reseller_child) | **POST** /reseller/children | Creates a reseller child
142
- *SibApiV3Sdk::ResellerApi* | [**delete_reseller_child**](docs/ResellerApi.md#delete_reseller_child) | **DELETE** /reseller/children/{childId} | Deletes a single reseller child based on the childId supplied
143
- *SibApiV3Sdk::ResellerApi* | [**dissociate_ip_from_child**](docs/ResellerApi.md#dissociate_ip_from_child) | **POST** /reseller/children/{childId}/ips/dissociate | Dissociate a dedicated IP to the child
144
- *SibApiV3Sdk::ResellerApi* | [**get_child_info**](docs/ResellerApi.md#get_child_info) | **GET** /reseller/children/{childId} | Gets the info about a specific child account
142
+ *SibApiV3Sdk::ResellerApi* | [**delete_reseller_child**](docs/ResellerApi.md#delete_reseller_child) | **DELETE** /reseller/children/{childAuthKey} | Deletes a single reseller child based on the childAuthKey supplied
143
+ *SibApiV3Sdk::ResellerApi* | [**dissociate_ip_from_child**](docs/ResellerApi.md#dissociate_ip_from_child) | **POST** /reseller/children/{childAuthKey}/ips/dissociate | Dissociate a dedicated IP to the child
144
+ *SibApiV3Sdk::ResellerApi* | [**get_child_info**](docs/ResellerApi.md#get_child_info) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account
145
145
  *SibApiV3Sdk::ResellerApi* | [**get_reseller_childs**](docs/ResellerApi.md#get_reseller_childs) | **GET** /reseller/children | Gets the list of all reseller's children accounts
146
- *SibApiV3Sdk::ResellerApi* | [**remove_credits**](docs/ResellerApi.md#remove_credits) | **POST** /reseller/children/{childId}/credits/remove | Remove Email and/or SMS credits from a specific child account
147
- *SibApiV3Sdk::ResellerApi* | [**update_reseller_child**](docs/ResellerApi.md#update_reseller_child) | **PUT** /reseller/children/{childId} | Updates infos of reseller's child based on the childId supplied
146
+ *SibApiV3Sdk::ResellerApi* | [**remove_credits**](docs/ResellerApi.md#remove_credits) | **POST** /reseller/children/{childAuthKey}/credits/remove | Remove Email and/or SMS credits from a specific child account
147
+ *SibApiV3Sdk::ResellerApi* | [**update_reseller_child**](docs/ResellerApi.md#update_reseller_child) | **PUT** /reseller/children/{childAuthKey} | Updates infos of reseller's child based on the childAuthKey supplied
148
148
  *SibApiV3Sdk::SMSCampaignsApi* | [**create_sms_campaign**](docs/SMSCampaignsApi.md#create_sms_campaign) | **POST** /smsCampaigns | Creates an SMS campaign
149
149
  *SibApiV3Sdk::SMSCampaignsApi* | [**delete_sms_campaign**](docs/SMSCampaignsApi.md#delete_sms_campaign) | **DELETE** /smsCampaigns/{campaignId} | Delete the SMS campaign
150
150
  *SibApiV3Sdk::SMSCampaignsApi* | [**get_sms_campaign**](docs/SMSCampaignsApi.md#get_sms_campaign) | **GET** /smsCampaigns/{campaignId} | Get an SMS campaign
@@ -186,8 +186,8 @@ Class | Method | HTTP request | Description
186
186
 
187
187
  ## Documentation for Models
188
188
 
189
+ - [SibApiV3Sdk::AddContactToList](docs/AddContactToList.md)
189
190
  - [SibApiV3Sdk::AddCredits](docs/AddCredits.md)
190
- - [SibApiV3Sdk::AddRemoveContactToList](docs/AddRemoveContactToList.md)
191
191
  - [SibApiV3Sdk::CreateAttribute](docs/CreateAttribute.md)
192
192
  - [SibApiV3Sdk::CreateAttributeEnumeration](docs/CreateAttributeEnumeration.md)
193
193
  - [SibApiV3Sdk::CreateChild](docs/CreateChild.md)
@@ -197,6 +197,7 @@ Class | Method | HTTP request | Description
197
197
  - [SibApiV3Sdk::CreateEmailCampaignSender](docs/CreateEmailCampaignSender.md)
198
198
  - [SibApiV3Sdk::CreateList](docs/CreateList.md)
199
199
  - [SibApiV3Sdk::CreateModel](docs/CreateModel.md)
200
+ - [SibApiV3Sdk::CreateReseller](docs/CreateReseller.md)
200
201
  - [SibApiV3Sdk::CreateSender](docs/CreateSender.md)
201
202
  - [SibApiV3Sdk::CreateSenderIps](docs/CreateSenderIps.md)
202
203
  - [SibApiV3Sdk::CreateSenderModel](docs/CreateSenderModel.md)
@@ -223,8 +224,9 @@ Class | Method | HTTP request | Description
223
224
  - [SibApiV3Sdk::GetCampaignRecipients](docs/GetCampaignRecipients.md)
224
225
  - [SibApiV3Sdk::GetCampaignStats](docs/GetCampaignStats.md)
225
226
  - [SibApiV3Sdk::GetChildInfoApiKeys](docs/GetChildInfoApiKeys.md)
227
+ - [SibApiV3Sdk::GetChildInfoApiKeysV2](docs/GetChildInfoApiKeysV2.md)
228
+ - [SibApiV3Sdk::GetChildInfoApiKeysV3](docs/GetChildInfoApiKeysV3.md)
226
229
  - [SibApiV3Sdk::GetChildInfoCredits](docs/GetChildInfoCredits.md)
227
- - [SibApiV3Sdk::GetChildInfoIps](docs/GetChildInfoIps.md)
228
230
  - [SibApiV3Sdk::GetChildInfoStatistics](docs/GetChildInfoStatistics.md)
229
231
  - [SibApiV3Sdk::GetChildrenList](docs/GetChildrenList.md)
230
232
  - [SibApiV3Sdk::GetClient](docs/GetClient.md)
@@ -289,6 +291,7 @@ Class | Method | HTTP request | Description
289
291
  - [SibApiV3Sdk::RemainingCreditModel](docs/RemainingCreditModel.md)
290
292
  - [SibApiV3Sdk::RemainingCreditModelChild](docs/RemainingCreditModelChild.md)
291
293
  - [SibApiV3Sdk::RemainingCreditModelReseller](docs/RemainingCreditModelReseller.md)
294
+ - [SibApiV3Sdk::RemoveContactFromList](docs/RemoveContactFromList.md)
292
295
  - [SibApiV3Sdk::RemoveCredits](docs/RemoveCredits.md)
293
296
  - [SibApiV3Sdk::RequestContactExport](docs/RequestContactExport.md)
294
297
  - [SibApiV3Sdk::RequestContactImport](docs/RequestContactImport.md)
@@ -0,0 +1,8 @@
1
+ # SibApiV3Sdk::AddContactToList
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **emails** | **Array<String>** | Emails to add to a list | [optional]
7
+
8
+
data/docs/AddCredits.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **sms** | **Integer** | SMS credits to be added to the child account | [optional]
7
- **email** | **Integer** | Email credits to be added to the child account | [optional]
6
+ **sms** | **Integer** | Required if email credits are empty. SMS credits to be added to the child account | [optional]
7
+ **email** | **Integer** | Required if sms credits are empty. Email credits to be added to the child account | [optional]
8
8
 
9
9
 
data/docs/ContactsApi.md CHANGED
@@ -23,7 +23,7 @@ Method | HTTP request | Description
23
23
  [**get_list**](ContactsApi.md#get_list) | **GET** /contacts/lists/{listId} | Get the details of a list
24
24
  [**get_lists**](ContactsApi.md#get_lists) | **GET** /contacts/lists | Get all the lists
25
25
  [**import_contacts**](ContactsApi.md#import_contacts) | **POST** /contacts/import | Import contacts
26
- [**remove_contact_to_list**](ContactsApi.md#remove_contact_to_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
26
+ [**remove_contact_from_list**](ContactsApi.md#remove_contact_from_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
27
27
  [**request_contact_export**](ContactsApi.md#request_contact_export) | **POST** /contacts/export | Export contacts
28
28
  [**update_attribute**](ContactsApi.md#update_attribute) | **PUT** /contacts/attributes/{attributeCategory}/{attributeName} | Updates contact attribute
29
29
  [**update_contact**](ContactsApi.md#update_contact) | **PUT** /contacts/{email} | Updates a contact
@@ -52,7 +52,7 @@ api_instance = SibApiV3Sdk::ContactsApi.new
52
52
 
53
53
  list_id = 789 # Integer | Id of the list
54
54
 
55
- contact_emails = SibApiV3Sdk::AddRemoveContactToList.new # AddRemoveContactToList | Emails addresses of the contacts
55
+ contact_emails = SibApiV3Sdk::AddContactToList.new # AddContactToList | Emails addresses of the contacts
56
56
 
57
57
 
58
58
  begin
@@ -69,7 +69,7 @@ end
69
69
  Name | Type | Description | Notes
70
70
  ------------- | ------------- | ------------- | -------------
71
71
  **list_id** | **Integer**| Id of the list |
72
- **contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails addresses of the contacts |
72
+ **contact_emails** | [**AddContactToList**](AddContactToList.md)| Emails addresses of the contacts |
73
73
 
74
74
  ### Return type
75
75
 
@@ -1048,8 +1048,8 @@ Name | Type | Description | Notes
1048
1048
 
1049
1049
 
1050
1050
 
1051
- # **remove_contact_to_list**
1052
- > PostContactInfo remove_contact_to_list(list_id, contact_emails)
1051
+ # **remove_contact_from_list**
1052
+ > PostContactInfo remove_contact_from_list(list_id, contact_emails)
1053
1053
 
1054
1054
  Remove existing contacts from a list
1055
1055
 
@@ -1069,15 +1069,15 @@ api_instance = SibApiV3Sdk::ContactsApi.new
1069
1069
 
1070
1070
  list_id = 789 # Integer | Id of the list
1071
1071
 
1072
- contact_emails = SibApiV3Sdk::AddRemoveContactToList.new # AddRemoveContactToList | Emails adresses of the contact
1072
+ contact_emails = SibApiV3Sdk::RemoveContactFromList.new # RemoveContactFromList | Emails adresses of the contact
1073
1073
 
1074
1074
 
1075
1075
  begin
1076
1076
  #Remove existing contacts from a list
1077
- result = api_instance.remove_contact_to_list(list_id, contact_emails)
1077
+ result = api_instance.remove_contact_from_list(list_id, contact_emails)
1078
1078
  p result
1079
1079
  rescue SibApiV3Sdk::ApiError => e
1080
- puts "Exception when calling ContactsApi->remove_contact_to_list: #{e}"
1080
+ puts "Exception when calling ContactsApi->remove_contact_from_list: #{e}"
1081
1081
  end
1082
1082
  ```
1083
1083
 
@@ -1086,7 +1086,7 @@ end
1086
1086
  Name | Type | Description | Notes
1087
1087
  ------------- | ------------- | ------------- | -------------
1088
1088
  **list_id** | **Integer**| Id of the list |
1089
- **contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails adresses of the contact |
1089
+ **contact_emails** | [**RemoveContactFromList**](RemoveContactFromList.md)| Emails adresses of the contact |
1090
1090
 
1091
1091
  ### Return type
1092
1092
 
@@ -0,0 +1,8 @@
1
+ # SibApiV3Sdk::CreateReseller
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **auth_key** | **String** | AuthKey of Reseller child created |
7
+
8
+
data/docs/GetChildInfo.md CHANGED
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  **credits** | [**GetChildInfoCredits**](GetChildInfoCredits.md) | | [optional]
11
11
  **statistics** | [**GetChildInfoStatistics**](GetChildInfoStatistics.md) | | [optional]
12
12
  **password** | **String** | The encrypted password of child account |
13
- **ips** | [**Array<GetChildInfoIps>**](GetChildInfoIps.md) | IP(s) associated to a child account user | [optional]
14
- **api_keys** | [**Array<GetChildInfoApiKeys>**](GetChildInfoApiKeys.md) | API Keys associated to child account | [optional]
13
+ **ips** | **Array<String>** | IP(s) associated to a child account user | [optional]
14
+ **api_keys** | [**GetChildInfoApiKeys**](GetChildInfoApiKeys.md) | | [optional]
15
15
 
16
16
 
@@ -3,8 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **name** | **String** | Name of the key |
7
- **key** | **String** | API Key |
8
- **secret** | **String** | Secret Key associated to the API Key (in case v1 Key is used only) | [optional]
6
+ **v2** | [**Array<GetChildInfoApiKeysV2>**](GetChildInfoApiKeysV2.md) | |
7
+ **v3** | [**Array<GetChildInfoApiKeysV3>**](GetChildInfoApiKeysV3.md) | | [optional]
9
8
 
10
9
 
@@ -0,0 +1,9 @@
1
+ # SibApiV3Sdk::GetChildInfoApiKeysV2
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | Name of the key for version 2 |
7
+ **key** | **String** | API Key for version 2 |
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # SibApiV3Sdk::GetChildInfoApiKeysV3
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | Name of the key for version 3 |
7
+ **key** | **String** | API Key for version 3 |
8
+
9
+
@@ -23,5 +23,7 @@ Name | Type | Description | Notes
23
23
  **inline_image_activation** | **BOOLEAN** | Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. | [optional]
24
24
  **mirror_active** | **BOOLEAN** | Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign | [optional]
25
25
  **recurring** | **BOOLEAN** | FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times | [optional]
26
+ **recipients** | **Object** | |
27
+ **statistics** | **Object** | |
26
28
 
27
29
 
@@ -12,5 +12,7 @@ Name | Type | Description | Notes
12
12
  **sender** | **String** | Sender of the SMS Campaign |
13
13
  **created_at** | **DateTime** | Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) |
14
14
  **modified_at** | **DateTime** | UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) |
15
+ **recipients** | **Object** | |
16
+ **statistics** | **Object** | |
15
17
 
16
18
 
data/docs/ListsApi.md CHANGED
@@ -11,7 +11,7 @@ Method | HTTP request | Description
11
11
  [**get_folder_lists**](ListsApi.md#get_folder_lists) | **GET** /contacts/folders/{folderId}/lists | Get the lists in a folder
12
12
  [**get_list**](ListsApi.md#get_list) | **GET** /contacts/lists/{listId} | Get the details of a list
13
13
  [**get_lists**](ListsApi.md#get_lists) | **GET** /contacts/lists | Get all the lists
14
- [**remove_contact_to_list**](ListsApi.md#remove_contact_to_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
14
+ [**remove_contact_from_list**](ListsApi.md#remove_contact_from_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
15
15
  [**update_list**](ListsApi.md#update_list) | **PUT** /contacts/lists/{listId} | Update a list
16
16
 
17
17
 
@@ -36,7 +36,7 @@ api_instance = SibApiV3Sdk::ListsApi.new
36
36
 
37
37
  list_id = 789 # Integer | Id of the list
38
38
 
39
- contact_emails = SibApiV3Sdk::AddRemoveContactToList.new # AddRemoveContactToList | Emails addresses of the contacts
39
+ contact_emails = SibApiV3Sdk::AddContactToList.new # AddContactToList | Emails addresses of the contacts
40
40
 
41
41
 
42
42
  begin
@@ -53,7 +53,7 @@ end
53
53
  Name | Type | Description | Notes
54
54
  ------------- | ------------- | ------------- | -------------
55
55
  **list_id** | **Integer**| Id of the list |
56
- **contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails addresses of the contacts |
56
+ **contact_emails** | [**AddContactToList**](AddContactToList.md)| Emails addresses of the contacts |
57
57
 
58
58
  ### Return type
59
59
 
@@ -398,8 +398,8 @@ Name | Type | Description | Notes
398
398
 
399
399
 
400
400
 
401
- # **remove_contact_to_list**
402
- > PostContactInfo remove_contact_to_list(list_id, contact_emails)
401
+ # **remove_contact_from_list**
402
+ > PostContactInfo remove_contact_from_list(list_id, contact_emails)
403
403
 
404
404
  Remove existing contacts from a list
405
405
 
@@ -419,15 +419,15 @@ api_instance = SibApiV3Sdk::ListsApi.new
419
419
 
420
420
  list_id = 789 # Integer | Id of the list
421
421
 
422
- contact_emails = SibApiV3Sdk::AddRemoveContactToList.new # AddRemoveContactToList | Emails adresses of the contact
422
+ contact_emails = SibApiV3Sdk::RemoveContactFromList.new # RemoveContactFromList | Emails adresses of the contact
423
423
 
424
424
 
425
425
  begin
426
426
  #Remove existing contacts from a list
427
- result = api_instance.remove_contact_to_list(list_id, contact_emails)
427
+ result = api_instance.remove_contact_from_list(list_id, contact_emails)
428
428
  p result
429
429
  rescue SibApiV3Sdk::ApiError => e
430
- puts "Exception when calling ListsApi->remove_contact_to_list: #{e}"
430
+ puts "Exception when calling ListsApi->remove_contact_from_list: #{e}"
431
431
  end
432
432
  ```
433
433
 
@@ -436,7 +436,7 @@ end
436
436
  Name | Type | Description | Notes
437
437
  ------------- | ------------- | ------------- | -------------
438
438
  **list_id** | **Integer**| Id of the list |
439
- **contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails adresses of the contact |
439
+ **contact_emails** | [**RemoveContactFromList**](RemoveContactFromList.md)| Emails adresses of the contact |
440
440
 
441
441
  ### Return type
442
442
 
data/docs/ManageIp.md CHANGED
@@ -3,6 +3,6 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **ip_id** | **Integer** | ID of the IP | [optional]
6
+ **ip** | **String** | Dedicated ID | [optional]
7
7
 
8
8
 
@@ -0,0 +1,9 @@
1
+ # SibApiV3Sdk::RemoveContactFromList
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **emails** | **Array<String>** | Required if 'all' is false. Emails to remove from a list | [optional]
7
+ **all** | **BOOLEAN** | Required if 'emails' is empty. Remove all existing contacts from a list | [optional]
8
+
9
+
@@ -3,7 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **sms** | **Integer** | SMS credits to be removed from the child account | [optional]
7
- **email** | **Integer** | Email credits to be removed from the child account | [optional]
6
+ **sms** | **Integer** | Required if email credits are empty. SMS credits to be removed from the child account | [optional]
7
+ **email** | **Integer** | Required if sms credits are empty. Email credits to be removed from the child account | [optional]
8
8
 
9
9
 
data/docs/ResellerApi.md CHANGED
@@ -4,19 +4,19 @@ All URIs are relative to *https://api.sendinblue.com/v3*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**add_credits**](ResellerApi.md#add_credits) | **POST** /reseller/children/{childId}/credits/add | Add Email and/or SMS credits to a specific child account
8
- [**associate_ip_to_child**](ResellerApi.md#associate_ip_to_child) | **POST** /reseller/children/{childId}/ips/associate | Associate a dedicated IP to the child
7
+ [**add_credits**](ResellerApi.md#add_credits) | **POST** /reseller/children/{childAuthKey}/credits/add | Add Email and/or SMS credits to a specific child account
8
+ [**associate_ip_to_child**](ResellerApi.md#associate_ip_to_child) | **POST** /reseller/children/{childAuthKey}/ips/associate | Associate a dedicated IP to the child
9
9
  [**create_reseller_child**](ResellerApi.md#create_reseller_child) | **POST** /reseller/children | Creates a reseller child
10
- [**delete_reseller_child**](ResellerApi.md#delete_reseller_child) | **DELETE** /reseller/children/{childId} | Deletes a single reseller child based on the childId supplied
11
- [**dissociate_ip_from_child**](ResellerApi.md#dissociate_ip_from_child) | **POST** /reseller/children/{childId}/ips/dissociate | Dissociate a dedicated IP to the child
12
- [**get_child_info**](ResellerApi.md#get_child_info) | **GET** /reseller/children/{childId} | Gets the info about a specific child account
10
+ [**delete_reseller_child**](ResellerApi.md#delete_reseller_child) | **DELETE** /reseller/children/{childAuthKey} | Deletes a single reseller child based on the childAuthKey supplied
11
+ [**dissociate_ip_from_child**](ResellerApi.md#dissociate_ip_from_child) | **POST** /reseller/children/{childAuthKey}/ips/dissociate | Dissociate a dedicated IP to the child
12
+ [**get_child_info**](ResellerApi.md#get_child_info) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account
13
13
  [**get_reseller_childs**](ResellerApi.md#get_reseller_childs) | **GET** /reseller/children | Gets the list of all reseller's children accounts
14
- [**remove_credits**](ResellerApi.md#remove_credits) | **POST** /reseller/children/{childId}/credits/remove | Remove Email and/or SMS credits from a specific child account
15
- [**update_reseller_child**](ResellerApi.md#update_reseller_child) | **PUT** /reseller/children/{childId} | Updates infos of reseller's child based on the childId supplied
14
+ [**remove_credits**](ResellerApi.md#remove_credits) | **POST** /reseller/children/{childAuthKey}/credits/remove | Remove Email and/or SMS credits from a specific child account
15
+ [**update_reseller_child**](ResellerApi.md#update_reseller_child) | **PUT** /reseller/children/{childAuthKey} | Updates infos of reseller's child based on the childAuthKey supplied
16
16
 
17
17
 
18
18
  # **add_credits**
19
- > RemainingCreditModel add_credits(child_id, add_credits)
19
+ > RemainingCreditModel add_credits(child_auth_key, add_credits)
20
20
 
21
21
  Add Email and/or SMS credits to a specific child account
22
22
 
@@ -34,14 +34,14 @@ end
34
34
 
35
35
  api_instance = SibApiV3Sdk::ResellerApi.new
36
36
 
37
- child_id = 789 # Integer | id of reseller's child
37
+ child_auth_key = "child_auth_key_example" # String | auth key of reseller's child
38
38
 
39
39
  add_credits = SibApiV3Sdk::AddCredits.new # AddCredits | Values to post to add credit to a specific child account
40
40
 
41
41
 
42
42
  begin
43
43
  #Add Email and/or SMS credits to a specific child account
44
- result = api_instance.add_credits(child_id, add_credits)
44
+ result = api_instance.add_credits(child_auth_key, add_credits)
45
45
  p result
46
46
  rescue SibApiV3Sdk::ApiError => e
47
47
  puts "Exception when calling ResellerApi->add_credits: #{e}"
@@ -52,7 +52,7 @@ end
52
52
 
53
53
  Name | Type | Description | Notes
54
54
  ------------- | ------------- | ------------- | -------------
55
- **child_id** | **Integer**| id of reseller's child |
55
+ **child_auth_key** | **String**| auth key of reseller's child |
56
56
  **add_credits** | [**AddCredits**](AddCredits.md)| Values to post to add credit to a specific child account |
57
57
 
58
58
  ### Return type
@@ -71,7 +71,7 @@ Name | Type | Description | Notes
71
71
 
72
72
 
73
73
  # **associate_ip_to_child**
74
- > associate_ip_to_child(child_id, ip_id)
74
+ > associate_ip_to_child(child_auth_key, ip)
75
75
 
76
76
  Associate a dedicated IP to the child
77
77
 
@@ -89,14 +89,14 @@ end
89
89
 
90
90
  api_instance = SibApiV3Sdk::ResellerApi.new
91
91
 
92
- child_id = 789 # Integer | id of reseller's child
92
+ child_auth_key = "child_auth_key_example" # String | auth key of reseller's child
93
93
 
94
- ip_id = SibApiV3Sdk::ManageIp.new # ManageIp | IP's id
94
+ ip = SibApiV3Sdk::ManageIp.new # ManageIp | IP to associate
95
95
 
96
96
 
97
97
  begin
98
98
  #Associate a dedicated IP to the child
99
- api_instance.associate_ip_to_child(child_id, ip_id)
99
+ api_instance.associate_ip_to_child(child_auth_key, ip)
100
100
  rescue SibApiV3Sdk::ApiError => e
101
101
  puts "Exception when calling ResellerApi->associate_ip_to_child: #{e}"
102
102
  end
@@ -106,8 +106,8 @@ end
106
106
 
107
107
  Name | Type | Description | Notes
108
108
  ------------- | ------------- | ------------- | -------------
109
- **child_id** | **Integer**| id of reseller's child |
110
- **ip_id** | [**ManageIp**](ManageIp.md)| IP's id |
109
+ **child_auth_key** | **String**| auth key of reseller's child |
110
+ **ip** | [**ManageIp**](ManageIp.md)| IP to associate |
111
111
 
112
112
  ### Return type
113
113
 
@@ -125,7 +125,7 @@ nil (empty response body)
125
125
 
126
126
 
127
127
  # **create_reseller_child**
128
- > CreateModel create_reseller_child(opts)
128
+ > CreateReseller create_reseller_child(opts)
129
129
 
130
130
  Creates a reseller child
131
131
 
@@ -164,7 +164,7 @@ Name | Type | Description | Notes
164
164
 
165
165
  ### Return type
166
166
 
167
- [**CreateModel**](CreateModel.md)
167
+ [**CreateReseller**](CreateReseller.md)
168
168
 
169
169
  ### Authorization
170
170
 
@@ -178,9 +178,9 @@ Name | Type | Description | Notes
178
178
 
179
179
 
180
180
  # **delete_reseller_child**
181
- > delete_reseller_child(child_id)
181
+ > delete_reseller_child(child_auth_key)
182
182
 
183
- Deletes a single reseller child based on the childId supplied
183
+ Deletes a single reseller child based on the childAuthKey supplied
184
184
 
185
185
  ### Example
186
186
  ```ruby
@@ -196,12 +196,12 @@ end
196
196
 
197
197
  api_instance = SibApiV3Sdk::ResellerApi.new
198
198
 
199
- child_id = 789 # Integer | id of reseller's child
199
+ child_auth_key = "child_auth_key_example" # String | auth key of reseller's child
200
200
 
201
201
 
202
202
  begin
203
- #Deletes a single reseller child based on the childId supplied
204
- api_instance.delete_reseller_child(child_id)
203
+ #Deletes a single reseller child based on the childAuthKey supplied
204
+ api_instance.delete_reseller_child(child_auth_key)
205
205
  rescue SibApiV3Sdk::ApiError => e
206
206
  puts "Exception when calling ResellerApi->delete_reseller_child: #{e}"
207
207
  end
@@ -211,7 +211,7 @@ end
211
211
 
212
212
  Name | Type | Description | Notes
213
213
  ------------- | ------------- | ------------- | -------------
214
- **child_id** | **Integer**| id of reseller's child |
214
+ **child_auth_key** | **String**| auth key of reseller's child |
215
215
 
216
216
  ### Return type
217
217
 
@@ -229,7 +229,7 @@ nil (empty response body)
229
229
 
230
230
 
231
231
  # **dissociate_ip_from_child**
232
- > dissociate_ip_from_child(child_id, ip_id)
232
+ > dissociate_ip_from_child(child_auth_key, ip)
233
233
 
234
234
  Dissociate a dedicated IP to the child
235
235
 
@@ -247,14 +247,14 @@ end
247
247
 
248
248
  api_instance = SibApiV3Sdk::ResellerApi.new
249
249
 
250
- child_id = 789 # Integer | id of reseller's child
250
+ child_auth_key = "child_auth_key_example" # String | auth key of reseller's child
251
251
 
252
- ip_id = SibApiV3Sdk::ManageIp.new # ManageIp | IP's id
252
+ ip = SibApiV3Sdk::ManageIp.new # ManageIp | IP to dissociate
253
253
 
254
254
 
255
255
  begin
256
256
  #Dissociate a dedicated IP to the child
257
- api_instance.dissociate_ip_from_child(child_id, ip_id)
257
+ api_instance.dissociate_ip_from_child(child_auth_key, ip)
258
258
  rescue SibApiV3Sdk::ApiError => e
259
259
  puts "Exception when calling ResellerApi->dissociate_ip_from_child: #{e}"
260
260
  end
@@ -264,8 +264,8 @@ end
264
264
 
265
265
  Name | Type | Description | Notes
266
266
  ------------- | ------------- | ------------- | -------------
267
- **child_id** | **Integer**| id of reseller's child |
268
- **ip_id** | [**ManageIp**](ManageIp.md)| IP's id |
267
+ **child_auth_key** | **String**| auth key of reseller's child |
268
+ **ip** | [**ManageIp**](ManageIp.md)| IP to dissociate |
269
269
 
270
270
  ### Return type
271
271
 
@@ -283,7 +283,7 @@ nil (empty response body)
283
283
 
284
284
 
285
285
  # **get_child_info**
286
- > GetChildInfo get_child_info(child_id)
286
+ > GetChildInfo get_child_info(child_auth_key)
287
287
 
288
288
  Gets the info about a specific child account
289
289
 
@@ -301,12 +301,12 @@ end
301
301
 
302
302
  api_instance = SibApiV3Sdk::ResellerApi.new
303
303
 
304
- child_id = 789 # Integer | id of reseller's child
304
+ child_auth_key = "child_auth_key_example" # String | auth key of reseller's child
305
305
 
306
306
 
307
307
  begin
308
308
  #Gets the info about a specific child account
309
- result = api_instance.get_child_info(child_id)
309
+ result = api_instance.get_child_info(child_auth_key)
310
310
  p result
311
311
  rescue SibApiV3Sdk::ApiError => e
312
312
  puts "Exception when calling ResellerApi->get_child_info: #{e}"
@@ -317,7 +317,7 @@ end
317
317
 
318
318
  Name | Type | Description | Notes
319
319
  ------------- | ------------- | ------------- | -------------
320
- **child_id** | **Integer**| id of reseller's child |
320
+ **child_auth_key** | **String**| auth key of reseller's child |
321
321
 
322
322
  ### Return type
323
323
 
@@ -381,7 +381,7 @@ This endpoint does not need any parameter.
381
381
 
382
382
 
383
383
  # **remove_credits**
384
- > RemainingCreditModel remove_credits(child_id, remove_credits)
384
+ > RemainingCreditModel remove_credits(child_auth_key, remove_credits)
385
385
 
386
386
  Remove Email and/or SMS credits from a specific child account
387
387
 
@@ -399,14 +399,14 @@ end
399
399
 
400
400
  api_instance = SibApiV3Sdk::ResellerApi.new
401
401
 
402
- child_id = 789 # Integer | id of reseller's child
402
+ child_auth_key = "child_auth_key_example" # String | auth key of reseller's child
403
403
 
404
404
  remove_credits = SibApiV3Sdk::RemoveCredits.new # RemoveCredits | Values to post to remove email or SMS credits from a specific child account
405
405
 
406
406
 
407
407
  begin
408
408
  #Remove Email and/or SMS credits from a specific child account
409
- result = api_instance.remove_credits(child_id, remove_credits)
409
+ result = api_instance.remove_credits(child_auth_key, remove_credits)
410
410
  p result
411
411
  rescue SibApiV3Sdk::ApiError => e
412
412
  puts "Exception when calling ResellerApi->remove_credits: #{e}"
@@ -417,7 +417,7 @@ end
417
417
 
418
418
  Name | Type | Description | Notes
419
419
  ------------- | ------------- | ------------- | -------------
420
- **child_id** | **Integer**| id of reseller's child |
420
+ **child_auth_key** | **String**| auth key of reseller's child |
421
421
  **remove_credits** | [**RemoveCredits**](RemoveCredits.md)| Values to post to remove email or SMS credits from a specific child account |
422
422
 
423
423
  ### Return type
@@ -436,9 +436,9 @@ Name | Type | Description | Notes
436
436
 
437
437
 
438
438
  # **update_reseller_child**
439
- > update_reseller_child(child_id, reseller_child)
439
+ > update_reseller_child(child_auth_key, reseller_child)
440
440
 
441
- Updates infos of reseller's child based on the childId supplied
441
+ Updates infos of reseller's child based on the childAuthKey supplied
442
442
 
443
443
  ### Example
444
444
  ```ruby
@@ -454,14 +454,14 @@ end
454
454
 
455
455
  api_instance = SibApiV3Sdk::ResellerApi.new
456
456
 
457
- child_id = 789 # Integer | id of reseller's child
457
+ child_auth_key = "child_auth_key_example" # String | auth key of reseller's child
458
458
 
459
459
  reseller_child = SibApiV3Sdk::UpdateChild.new # UpdateChild | values to update in child profile
460
460
 
461
461
 
462
462
  begin
463
- #Updates infos of reseller's child based on the childId supplied
464
- api_instance.update_reseller_child(child_id, reseller_child)
463
+ #Updates infos of reseller's child based on the childAuthKey supplied
464
+ api_instance.update_reseller_child(child_auth_key, reseller_child)
465
465
  rescue SibApiV3Sdk::ApiError => e
466
466
  puts "Exception when calling ResellerApi->update_reseller_child: #{e}"
467
467
  end
@@ -471,7 +471,7 @@ end
471
471
 
472
472
  Name | Type | Description | Notes
473
473
  ------------- | ------------- | ------------- | -------------
474
- **child_id** | **Integer**| id of reseller's child |
474
+ **child_auth_key** | **String**| auth key of reseller's child |
475
475
  **reseller_child** | [**UpdateChild**](UpdateChild.md)| values to update in child profile |
476
476
 
477
477
  ### Return type