Skip to content

Commit

Permalink
Merge pull request #15 from sendinblue/feature_updated_swagger_sync
Browse files Browse the repository at this point in the history
Type object fix in get sms/email campaigns call
  • Loading branch information
aakanksha-sib authored Mar 22, 2018
2 parents 4112c8d + 24b39c3 commit 40edcc3
Show file tree
Hide file tree
Showing 56 changed files with 1,218 additions and 381 deletions.
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Class | Method | HTTP request | Description
*SibApiV3Sdk::ContactsApi* | [**get_list**](docs/ContactsApi.md#get_list) | **GET** /contacts/lists/{listId} | Get the details of a list
*SibApiV3Sdk::ContactsApi* | [**get_lists**](docs/ContactsApi.md#get_lists) | **GET** /contacts/lists | Get all the lists
*SibApiV3Sdk::ContactsApi* | [**import_contacts**](docs/ContactsApi.md#import_contacts) | **POST** /contacts/import | Import contacts
*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
*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
*SibApiV3Sdk::ContactsApi* | [**request_contact_export**](docs/ContactsApi.md#request_contact_export) | **POST** /contacts/export | Export contacts
*SibApiV3Sdk::ContactsApi* | [**update_attribute**](docs/ContactsApi.md#update_attribute) | **PUT** /contacts/attributes/{attributeCategory}/{attributeName} | Updates contact attribute
*SibApiV3Sdk::ContactsApi* | [**update_contact**](docs/ContactsApi.md#update_contact) | **PUT** /contacts/{email} | Updates a contact
Expand Down Expand Up @@ -132,19 +132,19 @@ Class | Method | HTTP request | Description
*SibApiV3Sdk::ListsApi* | [**get_folder_lists**](docs/ListsApi.md#get_folder_lists) | **GET** /contacts/folders/{folderId}/lists | Get the lists in a folder
*SibApiV3Sdk::ListsApi* | [**get_list**](docs/ListsApi.md#get_list) | **GET** /contacts/lists/{listId} | Get the details of a list
*SibApiV3Sdk::ListsApi* | [**get_lists**](docs/ListsApi.md#get_lists) | **GET** /contacts/lists | Get all the lists
*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
*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
*SibApiV3Sdk::ListsApi* | [**update_list**](docs/ListsApi.md#update_list) | **PUT** /contacts/lists/{listId} | Update a list
*SibApiV3Sdk::ProcessApi* | [**get_process**](docs/ProcessApi.md#get_process) | **GET** /processes/{processId} | Return the informations for a process
*SibApiV3Sdk::ProcessApi* | [**get_processes**](docs/ProcessApi.md#get_processes) | **GET** /processes | Return all the processes for your account
*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
*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
*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
*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
*SibApiV3Sdk::ResellerApi* | [**create_reseller_child**](docs/ResellerApi.md#create_reseller_child) | **POST** /reseller/children | Creates a reseller child
*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
*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
*SibApiV3Sdk::ResellerApi* | [**get_child_info**](docs/ResellerApi.md#get_child_info) | **GET** /reseller/children/{childId} | Gets the info about a specific child account
*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
*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
*SibApiV3Sdk::ResellerApi* | [**get_child_info**](docs/ResellerApi.md#get_child_info) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account
*SibApiV3Sdk::ResellerApi* | [**get_reseller_childs**](docs/ResellerApi.md#get_reseller_childs) | **GET** /reseller/children | Gets the list of all reseller's children accounts
*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
*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
*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
*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
*SibApiV3Sdk::SMSCampaignsApi* | [**create_sms_campaign**](docs/SMSCampaignsApi.md#create_sms_campaign) | **POST** /smsCampaigns | Creates an SMS campaign
*SibApiV3Sdk::SMSCampaignsApi* | [**delete_sms_campaign**](docs/SMSCampaignsApi.md#delete_sms_campaign) | **DELETE** /smsCampaigns/{campaignId} | Delete the SMS campaign
*SibApiV3Sdk::SMSCampaignsApi* | [**get_sms_campaign**](docs/SMSCampaignsApi.md#get_sms_campaign) | **GET** /smsCampaigns/{campaignId} | Get an SMS campaign
Expand Down Expand Up @@ -186,8 +186,8 @@ Class | Method | HTTP request | Description

## Documentation for Models

- [SibApiV3Sdk::AddContactToList](docs/AddContactToList.md)
- [SibApiV3Sdk::AddCredits](docs/AddCredits.md)
- [SibApiV3Sdk::AddRemoveContactToList](docs/AddRemoveContactToList.md)
- [SibApiV3Sdk::CreateAttribute](docs/CreateAttribute.md)
- [SibApiV3Sdk::CreateAttributeEnumeration](docs/CreateAttributeEnumeration.md)
- [SibApiV3Sdk::CreateChild](docs/CreateChild.md)
Expand All @@ -197,6 +197,7 @@ Class | Method | HTTP request | Description
- [SibApiV3Sdk::CreateEmailCampaignSender](docs/CreateEmailCampaignSender.md)
- [SibApiV3Sdk::CreateList](docs/CreateList.md)
- [SibApiV3Sdk::CreateModel](docs/CreateModel.md)
- [SibApiV3Sdk::CreateReseller](docs/CreateReseller.md)
- [SibApiV3Sdk::CreateSender](docs/CreateSender.md)
- [SibApiV3Sdk::CreateSenderIps](docs/CreateSenderIps.md)
- [SibApiV3Sdk::CreateSenderModel](docs/CreateSenderModel.md)
Expand All @@ -223,8 +224,9 @@ Class | Method | HTTP request | Description
- [SibApiV3Sdk::GetCampaignRecipients](docs/GetCampaignRecipients.md)
- [SibApiV3Sdk::GetCampaignStats](docs/GetCampaignStats.md)
- [SibApiV3Sdk::GetChildInfoApiKeys](docs/GetChildInfoApiKeys.md)
- [SibApiV3Sdk::GetChildInfoApiKeysV2](docs/GetChildInfoApiKeysV2.md)
- [SibApiV3Sdk::GetChildInfoApiKeysV3](docs/GetChildInfoApiKeysV3.md)
- [SibApiV3Sdk::GetChildInfoCredits](docs/GetChildInfoCredits.md)
- [SibApiV3Sdk::GetChildInfoIps](docs/GetChildInfoIps.md)
- [SibApiV3Sdk::GetChildInfoStatistics](docs/GetChildInfoStatistics.md)
- [SibApiV3Sdk::GetChildrenList](docs/GetChildrenList.md)
- [SibApiV3Sdk::GetClient](docs/GetClient.md)
Expand Down Expand Up @@ -289,6 +291,7 @@ Class | Method | HTTP request | Description
- [SibApiV3Sdk::RemainingCreditModel](docs/RemainingCreditModel.md)
- [SibApiV3Sdk::RemainingCreditModelChild](docs/RemainingCreditModelChild.md)
- [SibApiV3Sdk::RemainingCreditModelReseller](docs/RemainingCreditModelReseller.md)
- [SibApiV3Sdk::RemoveContactFromList](docs/RemoveContactFromList.md)
- [SibApiV3Sdk::RemoveCredits](docs/RemoveCredits.md)
- [SibApiV3Sdk::RequestContactExport](docs/RequestContactExport.md)
- [SibApiV3Sdk::RequestContactImport](docs/RequestContactImport.md)
Expand Down
8 changes: 8 additions & 0 deletions docs/AddContactToList.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# SibApiV3Sdk::AddContactToList

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**emails** | **Array<String>** | Emails to add to a list | [optional]


4 changes: 2 additions & 2 deletions docs/AddCredits.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**sms** | **Integer** | SMS credits to be added to the child account | [optional]
**email** | **Integer** | Email credits to be added to the child account | [optional]
**sms** | **Integer** | Required if email credits are empty. SMS credits to be added to the child account | [optional]
**email** | **Integer** | Required if sms credits are empty. Email credits to be added to the child account | [optional]


8 changes: 0 additions & 8 deletions docs/AddRemoveContactToList.md

This file was deleted.

18 changes: 9 additions & 9 deletions docs/ContactsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Method | HTTP request | Description
[**get_list**](ContactsApi.md#get_list) | **GET** /contacts/lists/{listId} | Get the details of a list
[**get_lists**](ContactsApi.md#get_lists) | **GET** /contacts/lists | Get all the lists
[**import_contacts**](ContactsApi.md#import_contacts) | **POST** /contacts/import | Import contacts
[**remove_contact_to_list**](ContactsApi.md#remove_contact_to_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
[**remove_contact_from_list**](ContactsApi.md#remove_contact_from_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
[**request_contact_export**](ContactsApi.md#request_contact_export) | **POST** /contacts/export | Export contacts
[**update_attribute**](ContactsApi.md#update_attribute) | **PUT** /contacts/attributes/{attributeCategory}/{attributeName} | Updates contact attribute
[**update_contact**](ContactsApi.md#update_contact) | **PUT** /contacts/{email} | Updates a contact
Expand Down Expand Up @@ -52,7 +52,7 @@ api_instance = SibApiV3Sdk::ContactsApi.new

list_id = 789 # Integer | Id of the list

contact_emails = SibApiV3Sdk::AddRemoveContactToList.new # AddRemoveContactToList | Emails addresses of the contacts
contact_emails = SibApiV3Sdk::AddContactToList.new # AddContactToList | Emails addresses of the contacts


begin
Expand All @@ -69,7 +69,7 @@ end
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**list_id** | **Integer**| Id of the list |
**contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails addresses of the contacts |
**contact_emails** | [**AddContactToList**](AddContactToList.md)| Emails addresses of the contacts |

### Return type

Expand Down Expand Up @@ -1048,8 +1048,8 @@ Name | Type | Description | Notes



# **remove_contact_to_list**
> PostContactInfo remove_contact_to_list(list_id, contact_emails)
# **remove_contact_from_list**
> PostContactInfo remove_contact_from_list(list_id, contact_emails)
Remove existing contacts from a list

Expand All @@ -1069,15 +1069,15 @@ api_instance = SibApiV3Sdk::ContactsApi.new

list_id = 789 # Integer | Id of the list

contact_emails = SibApiV3Sdk::AddRemoveContactToList.new # AddRemoveContactToList | Emails adresses of the contact
contact_emails = SibApiV3Sdk::RemoveContactFromList.new # RemoveContactFromList | Emails adresses of the contact


begin
#Remove existing contacts from a list
result = api_instance.remove_contact_to_list(list_id, contact_emails)
result = api_instance.remove_contact_from_list(list_id, contact_emails)
p result
rescue SibApiV3Sdk::ApiError => e
puts "Exception when calling ContactsApi->remove_contact_to_list: #{e}"
puts "Exception when calling ContactsApi->remove_contact_from_list: #{e}"
end
```

Expand All @@ -1086,7 +1086,7 @@ end
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**list_id** | **Integer**| Id of the list |
**contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails adresses of the contact |
**contact_emails** | [**RemoveContactFromList**](RemoveContactFromList.md)| Emails adresses of the contact |

### Return type

Expand Down
8 changes: 8 additions & 0 deletions docs/CreateReseller.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# SibApiV3Sdk::CreateReseller

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**auth_key** | **String** | AuthKey of Reseller child created |


4 changes: 2 additions & 2 deletions docs/GetChildInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes
**credits** | [**GetChildInfoCredits**](GetChildInfoCredits.md) | | [optional]
**statistics** | [**GetChildInfoStatistics**](GetChildInfoStatistics.md) | | [optional]
**password** | **String** | The encrypted password of child account |
**ips** | [**Array<GetChildInfoIps>**](GetChildInfoIps.md) | IP(s) associated to a child account user | [optional]
**api_keys** | [**Array<GetChildInfoApiKeys>**](GetChildInfoApiKeys.md) | API Keys associated to child account | [optional]
**ips** | **Array<String>** | IP(s) associated to a child account user | [optional]
**api_keys** | [**GetChildInfoApiKeys**](GetChildInfoApiKeys.md) | | [optional]


5 changes: 2 additions & 3 deletions docs/GetChildInfoApiKeys.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | Name of the key |
**key** | **String** | API Key |
**secret** | **String** | Secret Key associated to the API Key (in case v1 Key is used only) | [optional]
**v2** | [**Array<GetChildInfoApiKeysV2>**](GetChildInfoApiKeysV2.md) | |
**v3** | [**Array<GetChildInfoApiKeysV3>**](GetChildInfoApiKeysV3.md) | | [optional]


9 changes: 9 additions & 0 deletions docs/GetChildInfoApiKeysV2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SibApiV3Sdk::GetChildInfoApiKeysV2

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | Name of the key for version 2 |
**key** | **String** | API Key for version 2 |


9 changes: 9 additions & 0 deletions docs/GetChildInfoApiKeysV3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SibApiV3Sdk::GetChildInfoApiKeysV3

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | Name of the key for version 3 |
**key** | **String** | API Key for version 3 |


9 changes: 0 additions & 9 deletions docs/GetChildInfoIps.md

This file was deleted.

2 changes: 2 additions & 0 deletions docs/GetEmailCampaign.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ Name | Type | Description | Notes
**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]
**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]
**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]
**recipients** | **Object** | |
**statistics** | **Object** | |


2 changes: 2 additions & 0 deletions docs/GetSmsCampaign.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ Name | Type | Description | Notes
**sender** | **String** | Sender of the SMS Campaign |
**created_at** | **DateTime** | Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) |
**modified_at** | **DateTime** | UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) |
**recipients** | **Object** | |
**statistics** | **Object** | |


18 changes: 9 additions & 9 deletions docs/ListsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Method | HTTP request | Description
[**get_folder_lists**](ListsApi.md#get_folder_lists) | **GET** /contacts/folders/{folderId}/lists | Get the lists in a folder
[**get_list**](ListsApi.md#get_list) | **GET** /contacts/lists/{listId} | Get the details of a list
[**get_lists**](ListsApi.md#get_lists) | **GET** /contacts/lists | Get all the lists
[**remove_contact_to_list**](ListsApi.md#remove_contact_to_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
[**remove_contact_from_list**](ListsApi.md#remove_contact_from_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
[**update_list**](ListsApi.md#update_list) | **PUT** /contacts/lists/{listId} | Update a list


Expand All @@ -36,7 +36,7 @@ api_instance = SibApiV3Sdk::ListsApi.new

list_id = 789 # Integer | Id of the list

contact_emails = SibApiV3Sdk::AddRemoveContactToList.new # AddRemoveContactToList | Emails addresses of the contacts
contact_emails = SibApiV3Sdk::AddContactToList.new # AddContactToList | Emails addresses of the contacts


begin
Expand All @@ -53,7 +53,7 @@ end
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**list_id** | **Integer**| Id of the list |
**contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails addresses of the contacts |
**contact_emails** | [**AddContactToList**](AddContactToList.md)| Emails addresses of the contacts |

### Return type

Expand Down Expand Up @@ -398,8 +398,8 @@ Name | Type | Description | Notes



# **remove_contact_to_list**
> PostContactInfo remove_contact_to_list(list_id, contact_emails)
# **remove_contact_from_list**
> PostContactInfo remove_contact_from_list(list_id, contact_emails)
Remove existing contacts from a list

Expand All @@ -419,15 +419,15 @@ api_instance = SibApiV3Sdk::ListsApi.new

list_id = 789 # Integer | Id of the list

contact_emails = SibApiV3Sdk::AddRemoveContactToList.new # AddRemoveContactToList | Emails adresses of the contact
contact_emails = SibApiV3Sdk::RemoveContactFromList.new # RemoveContactFromList | Emails adresses of the contact


begin
#Remove existing contacts from a list
result = api_instance.remove_contact_to_list(list_id, contact_emails)
result = api_instance.remove_contact_from_list(list_id, contact_emails)
p result
rescue SibApiV3Sdk::ApiError => e
puts "Exception when calling ListsApi->remove_contact_to_list: #{e}"
puts "Exception when calling ListsApi->remove_contact_from_list: #{e}"
end
```

Expand All @@ -436,7 +436,7 @@ end
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**list_id** | **Integer**| Id of the list |
**contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails adresses of the contact |
**contact_emails** | [**RemoveContactFromList**](RemoveContactFromList.md)| Emails adresses of the contact |

### Return type

Expand Down
2 changes: 1 addition & 1 deletion docs/ManageIp.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ip_id** | **Integer** | ID of the IP | [optional]
**ip** | **String** | Dedicated ID | [optional]


9 changes: 9 additions & 0 deletions docs/RemoveContactFromList.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SibApiV3Sdk::RemoveContactFromList

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**emails** | **Array<String>** | Required if 'all' is false. Emails to remove from a list | [optional]
**all** | **BOOLEAN** | Required if 'emails' is empty. Remove all existing contacts from a list | [optional]


Loading

0 comments on commit 40edcc3

Please sign in to comment.