Skip to content

Commit 290f293

Browse files
Merge pull request #7 from sendinblue/UpdateWrapper
Updated Wrapper to support netstandard2.0
2 parents 4e0a4d6 + 1f5a914 commit 290f293

File tree

403 files changed

+8588
-21504
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

403 files changed

+8588
-21504
lines changed

.swagger-codegen/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.4
1+
2.4.9

README.md

Lines changed: 49 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,24 @@ SendinBlue's API matches the [OpenAPI v2 definition](https://www.openapis.org/).
99
This C# SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project and is reviewed and maintained by SendinBlue:
1010

1111
- API version: 3.0.0
12-
- SDK version: 1.0.0
12+
- SDK version: 2.0.0
1313
- Build package: io.swagger.codegen.languages.CSharpClientCodegen
1414
For more information, please visit [https://account.sendinblue.com/support](https://account.sendinblue.com/support)
1515

1616
## Frameworks supported
17-
- .NET 4.0 or later
18-
- Windows Phone 7.1 (Mango)
17+
- .NET Core >=1.0
18+
- .NET Framework >=4.6
19+
- Mono/Xamarin >=vNext
20+
- UWP >=10.0
1921

2022
## Dependencies
21-
- [RestSharp](https://www.nuget.org/packages/RestSharp) - 105.1.0 or later
22-
- [Json.NET](https://www.nuget.org/packages/Newtonsoft.Json/) - 7.0.0 or later
23-
- [JsonSubTypes](https://www.nuget.org/packages/JsonSubTypes/) - 1.2.0 or later
23+
- FubarCoder.RestSharp.Portable.Core >=4.0.7
24+
- FubarCoder.RestSharp.Portable.HttpClient >=4.0.7
25+
- Newtonsoft.Json >=10.0.3
2426

25-
The DLLs included in the package may not be the latest version. We recommend using [NuGet](https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:
26-
```
27-
Install-Package RestSharp
28-
Install-Package Newtonsoft.Json
29-
Install-Package JsonSubTypes
30-
```
31-
32-
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See [RestSharp#742](https://github.com/restsharp/RestSharp/issues/742)
3327

3428
## Installation
35-
- Include the Dependencies (RestSharp, Json.NET and JsonSubTypes as mentioned in Dependencies section) in the C# project.
29+
Generate the DLL using your preferred tool
3630

3731
**OR**
3832

@@ -128,9 +122,11 @@ Class | Method | HTTP request | Description
128122
*EmailCampaignsApi* | [**CreateEmailCampaign**](docs/EmailCampaignsApi.md#createemailcampaign) | **POST** /emailCampaigns | Create an email campaign
129123
*EmailCampaignsApi* | [**DeleteEmailCampaign**](docs/EmailCampaignsApi.md#deleteemailcampaign) | **DELETE** /emailCampaigns/{campaignId} | Delete an email campaign
130124
*EmailCampaignsApi* | [**EmailExportRecipients**](docs/EmailCampaignsApi.md#emailexportrecipients) | **POST** /emailCampaigns/{campaignId}/exportRecipients | Export the recipients of a campaign
125+
*EmailCampaignsApi* | [**GetAbTestCampaignResult**](docs/EmailCampaignsApi.md#getabtestcampaignresult) | **GET** /emailCampaigns/{campaignId}/abTestCampaignResult | Get A/B test email campaign result
131126
*EmailCampaignsApi* | [**GetEmailCampaign**](docs/EmailCampaignsApi.md#getemailcampaign) | **GET** /emailCampaigns/{campaignId} | Get campaign informations
132127
*EmailCampaignsApi* | [**GetEmailCampaigns**](docs/EmailCampaignsApi.md#getemailcampaigns) | **GET** /emailCampaigns | Return all your created campaigns
133-
*EmailCampaignsApi* | [**SendEmailCampaignNow**](docs/EmailCampaignsApi.md#sendemailcampaignnow) | **POST** /emailCampaigns/{campaignId}/sendNow | Send an email campaign id of the campaign immediately
128+
*EmailCampaignsApi* | [**GetSharedTemplateUrl**](docs/EmailCampaignsApi.md#getsharedtemplateurl) | **GET** /emailCampaigns/{campaignId}/sharedUrl | Get a shared template url
129+
*EmailCampaignsApi* | [**SendEmailCampaignNow**](docs/EmailCampaignsApi.md#sendemailcampaignnow) | **POST** /emailCampaigns/{campaignId}/sendNow | Send an email campaign immediately, based on campaignId
134130
*EmailCampaignsApi* | [**SendReport**](docs/EmailCampaignsApi.md#sendreport) | **POST** /emailCampaigns/{campaignId}/sendReport | Send the report of a campaigns
135131
*EmailCampaignsApi* | [**SendTestEmail**](docs/EmailCampaignsApi.md#sendtestemail) | **POST** /emailCampaigns/{campaignId}/sendTest | Send an email campaign to your test list
136132
*EmailCampaignsApi* | [**UpdateCampaignStatus**](docs/EmailCampaignsApi.md#updatecampaignstatus) | **PUT** /emailCampaigns/{campaignId}/status | Update a campaign status
@@ -154,12 +150,19 @@ Class | Method | HTTP request | Description
154150
*ProcessApi* | [**GetProcesses**](docs/ProcessApi.md#getprocesses) | **GET** /processes | Return all the processes for your account
155151
*ResellerApi* | [**AddCredits**](docs/ResellerApi.md#addcredits) | **POST** /reseller/children/{childAuthKey}/credits/add | Add Email and/or SMS credits to a specific child account
156152
*ResellerApi* | [**AssociateIpToChild**](docs/ResellerApi.md#associateiptochild) | **POST** /reseller/children/{childAuthKey}/ips/associate | Associate a dedicated IP to the child
153+
*ResellerApi* | [**CreateChildDomain**](docs/ResellerApi.md#createchilddomain) | **POST** /reseller/children/{childAuthKey}/domains | Creates a domain for a child account
157154
*ResellerApi* | [**CreateResellerChild**](docs/ResellerApi.md#createresellerchild) | **POST** /reseller/children | Creates a reseller child
155+
*ResellerApi* | [**DeleteChildDomain**](docs/ResellerApi.md#deletechilddomain) | **DELETE** /reseller/children/{childAuthKey}/domains/{domainName} | Deletes the sender domain of the reseller child based on the childAuthKey and domainName passed
158156
*ResellerApi* | [**DeleteResellerChild**](docs/ResellerApi.md#deleteresellerchild) | **DELETE** /reseller/children/{childAuthKey} | Deletes a single reseller child based on the childAuthKey supplied
159157
*ResellerApi* | [**DissociateIpFromChild**](docs/ResellerApi.md#dissociateipfromchild) | **POST** /reseller/children/{childAuthKey}/ips/dissociate | Dissociate a dedicated IP to the child
158+
*ResellerApi* | [**GetChildAccountCreationStatus**](docs/ResellerApi.md#getchildaccountcreationstatus) | **GET** /reseller/children/{childAuthKey}/accountCreationStatus | Returns the status of reseller's child account creation, whether it is successfully created (exists) or not based on the childAuthKey supplied
159+
*ResellerApi* | [**GetChildDomains**](docs/ResellerApi.md#getchilddomains) | **GET** /reseller/children/{childAuthKey}/domains | Gets all the sender domains of a specific child account
160160
*ResellerApi* | [**GetChildInfo**](docs/ResellerApi.md#getchildinfo) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account
161161
*ResellerApi* | [**GetResellerChilds**](docs/ResellerApi.md#getresellerchilds) | **GET** /reseller/children | Gets the list of all reseller's children accounts
162+
*ResellerApi* | [**GetSsoToken**](docs/ResellerApi.md#getssotoken) | **GET** /reseller/children/{childAuthKey}/auth | Get session token to access Sendinblue (SSO)
162163
*ResellerApi* | [**RemoveCredits**](docs/ResellerApi.md#removecredits) | **POST** /reseller/children/{childAuthKey}/credits/remove | Remove Email and/or SMS credits from a specific child account
164+
*ResellerApi* | [**UpdateChildAccountStatus**](docs/ResellerApi.md#updatechildaccountstatus) | **PUT** /reseller/children/{childAuthKey}/accountStatus | Updates infos of reseller's child account status based on the childAuthKey supplied
165+
*ResellerApi* | [**UpdateChildDomain**](docs/ResellerApi.md#updatechilddomain) | **PUT** /reseller/children/{childAuthKey}/domains/{domainName} | Updates the sender domain of reseller's child based on the childAuthKey and domainName passed
163166
*ResellerApi* | [**UpdateResellerChild**](docs/ResellerApi.md#updateresellerchild) | **PUT** /reseller/children/{childAuthKey} | Updates infos of reseller's child based on the childAuthKey supplied
164167
*SMSCampaignsApi* | [**CreateSmsCampaign**](docs/SMSCampaignsApi.md#createsmscampaign) | **POST** /smsCampaigns | Creates an SMS campaign
165168
*SMSCampaignsApi* | [**DeleteSmsCampaign**](docs/SMSCampaignsApi.md#deletesmscampaign) | **DELETE** /smsCampaigns/{campaignId} | Delete the SMS campaign
@@ -171,18 +174,22 @@ Class | Method | HTTP request | Description
171174
*SMSCampaignsApi* | [**SendTestSms**](docs/SMSCampaignsApi.md#sendtestsms) | **POST** /smsCampaigns/{campaignId}/sendTest | Send an SMS
172175
*SMSCampaignsApi* | [**UpdateSmsCampaign**](docs/SMSCampaignsApi.md#updatesmscampaign) | **PUT** /smsCampaigns/{campaignId} | Updates an SMS campaign
173176
*SMSCampaignsApi* | [**UpdateSmsCampaignStatus**](docs/SMSCampaignsApi.md#updatesmscampaignstatus) | **PUT** /smsCampaigns/{campaignId}/status | Update the campaign status
174-
*SMTPApi* | [**CreateSmtpTemplate**](docs/SMTPApi.md#createsmtptemplate) | **POST** /smtp/templates | Create an smtp template
177+
*SMTPApi* | [**CreateSmtpTemplate**](docs/SMTPApi.md#createsmtptemplate) | **POST** /smtp/templates | Create a transactional email template
175178
*SMTPApi* | [**DeleteHardbounces**](docs/SMTPApi.md#deletehardbounces) | **POST** /smtp/deleteHardbounces | Delete hardbounces
176-
*SMTPApi* | [**DeleteSmtpTemplate**](docs/SMTPApi.md#deletesmtptemplate) | **DELETE** /smtp/templates/{templateId} | Delete an inactive smtp template
177-
*SMTPApi* | [**GetAggregatedSmtpReport**](docs/SMTPApi.md#getaggregatedsmtpreport) | **GET** /smtp/statistics/aggregatedReport | Get your SMTP activity aggregated over a period of time
178-
*SMTPApi* | [**GetEmailEventReport**](docs/SMTPApi.md#getemaileventreport) | **GET** /smtp/statistics/events | Get all your SMTP activity (unaggregated events)
179-
*SMTPApi* | [**GetSmtpReport**](docs/SMTPApi.md#getsmtpreport) | **GET** /smtp/statistics/reports | Get your SMTP activity aggregated per day
179+
*SMTPApi* | [**DeleteSmtpTemplate**](docs/SMTPApi.md#deletesmtptemplate) | **DELETE** /smtp/templates/{templateId} | Delete an inactive transactional email template
180+
*SMTPApi* | [**GetAggregatedSmtpReport**](docs/SMTPApi.md#getaggregatedsmtpreport) | **GET** /smtp/statistics/aggregatedReport | Get your transactional email activity aggregated over a period of time
181+
*SMTPApi* | [**GetEmailEventReport**](docs/SMTPApi.md#getemaileventreport) | **GET** /smtp/statistics/events | Get all your transactional email activity (unaggregated events)
182+
*SMTPApi* | [**GetSmtpReport**](docs/SMTPApi.md#getsmtpreport) | **GET** /smtp/statistics/reports | Get your transactional email activity aggregated per day
180183
*SMTPApi* | [**GetSmtpTemplate**](docs/SMTPApi.md#getsmtptemplate) | **GET** /smtp/templates/{templateId} | Returns the template informations
181-
*SMTPApi* | [**GetSmtpTemplates**](docs/SMTPApi.md#getsmtptemplates) | **GET** /smtp/templates | Get the list of SMTP templates
184+
*SMTPApi* | [**GetSmtpTemplates**](docs/SMTPApi.md#getsmtptemplates) | **GET** /smtp/templates | Get the list of transactional email templates
185+
*SMTPApi* | [**GetTransacBlockedContacts**](docs/SMTPApi.md#gettransacblockedcontacts) | **GET** /smtp/blockedContacts | Get the list of blocked or unsubscribed transactional contacts
186+
*SMTPApi* | [**GetTransacEmailContent**](docs/SMTPApi.md#gettransacemailcontent) | **GET** /smtp/emails/{uuid} | Get the personalized content of a sent transactional email
187+
*SMTPApi* | [**GetTransacEmailsList**](docs/SMTPApi.md#gettransacemailslist) | **GET** /smtp/emails | Get the list of transactional emails on the basis of allowed filters
182188
*SMTPApi* | [**SendTemplate**](docs/SMTPApi.md#sendtemplate) | **POST** /smtp/templates/{templateId}/send | Send a template
183189
*SMTPApi* | [**SendTestTemplate**](docs/SMTPApi.md#sendtesttemplate) | **POST** /smtp/templates/{templateId}/sendTest | Send a template to your test list
184190
*SMTPApi* | [**SendTransacEmail**](docs/SMTPApi.md#sendtransacemail) | **POST** /smtp/email | Send a transactional email
185-
*SMTPApi* | [**UpdateSmtpTemplate**](docs/SMTPApi.md#updatesmtptemplate) | **PUT** /smtp/templates/{templateId} | Updates an smtp templates
191+
*SMTPApi* | [**SmtpBlockedContactsEmailDelete**](docs/SMTPApi.md#smtpblockedcontactsemaildelete) | **DELETE** /smtp/blockedContacts/{email} | Unblock or resubscribe a transactional contact
192+
*SMTPApi* | [**UpdateSmtpTemplate**](docs/SMTPApi.md#updatesmtptemplate) | **PUT** /smtp/templates/{templateId} | Updates a transactional email templates
186193
*SendersApi* | [**CreateSender**](docs/SendersApi.md#createsender) | **POST** /senders | Create a new sender
187194
*SendersApi* | [**DeleteSender**](docs/SendersApi.md#deletesender) | **DELETE** /senders/{senderId} | Delete a sender
188195
*SendersApi* | [**GetIps**](docs/SendersApi.md#getips) | **GET** /senders/ips | Return all the dedicated IPs for your account
@@ -202,6 +209,8 @@ Class | Method | HTTP request | Description
202209

203210
## Documentation for Models
204211

212+
- [Model.AbTestCampaignResult](docs/AbTestCampaignResult.md)
213+
- [Model.AddChildDomain](docs/AddChildDomain.md)
205214
- [Model.AddContactToList](docs/AddContactToList.md)
206215
- [Model.AddCredits](docs/AddCredits.md)
207216
- [Model.CreateAttribute](docs/CreateAttribute.md)
@@ -240,6 +249,9 @@ Class | Method | HTTP request | Description
240249
- [Model.GetCampaignOverview](docs/GetCampaignOverview.md)
241250
- [Model.GetCampaignRecipients](docs/GetCampaignRecipients.md)
242251
- [Model.GetCampaignStats](docs/GetCampaignStats.md)
252+
- [Model.GetChildAccountCreationStatus](docs/GetChildAccountCreationStatus.md)
253+
- [Model.GetChildDomain](docs/GetChildDomain.md)
254+
- [Model.GetChildDomains](docs/GetChildDomains.md)
243255
- [Model.GetChildInfoApiKeys](docs/GetChildInfoApiKeys.md)
244256
- [Model.GetChildInfoApiKeysV2](docs/GetChildInfoApiKeysV2.md)
245257
- [Model.GetChildInfoApiKeysV3](docs/GetChildInfoApiKeysV3.md)
@@ -254,6 +266,7 @@ Class | Method | HTTP request | Description
254266
- [Model.GetContactCampaignStatsUnsubscriptions](docs/GetContactCampaignStatsUnsubscriptions.md)
255267
- [Model.GetContactDetails](docs/GetContactDetails.md)
256268
- [Model.GetContacts](docs/GetContacts.md)
269+
- [Model.GetDeviceBrowserStats](docs/GetDeviceBrowserStats.md)
257270
- [Model.GetEmailCampaigns](docs/GetEmailCampaigns.md)
258271
- [Model.GetEmailEventReport](docs/GetEmailEventReport.md)
259272
- [Model.GetEmailEventReportEvents](docs/GetEmailEventReportEvents.md)
@@ -285,6 +298,7 @@ Class | Method | HTTP request | Description
285298
- [Model.GetSendersList](docs/GetSendersList.md)
286299
- [Model.GetSendersListIps](docs/GetSendersListIps.md)
287300
- [Model.GetSendersListSenders](docs/GetSendersListSenders.md)
301+
- [Model.GetSharedTemplateUrl](docs/GetSharedTemplateUrl.md)
288302
- [Model.GetSmsCampaignOverview](docs/GetSmsCampaignOverview.md)
289303
- [Model.GetSmsCampaignStats](docs/GetSmsCampaignStats.md)
290304
- [Model.GetSmsCampaigns](docs/GetSmsCampaigns.md)
@@ -293,8 +307,18 @@ Class | Method | HTTP request | Description
293307
- [Model.GetSmtpTemplateOverview](docs/GetSmtpTemplateOverview.md)
294308
- [Model.GetSmtpTemplateOverviewSender](docs/GetSmtpTemplateOverviewSender.md)
295309
- [Model.GetSmtpTemplates](docs/GetSmtpTemplates.md)
310+
- [Model.GetSsoToken](docs/GetSsoToken.md)
311+
- [Model.GetStatsByBrowser](docs/GetStatsByBrowser.md)
312+
- [Model.GetStatsByDevice](docs/GetStatsByDevice.md)
296313
- [Model.GetStatsByDomain](docs/GetStatsByDomain.md)
297314
- [Model.GetTransacAggregatedSmsReport](docs/GetTransacAggregatedSmsReport.md)
315+
- [Model.GetTransacBlockedContacts](docs/GetTransacBlockedContacts.md)
316+
- [Model.GetTransacBlockedContactsContacts](docs/GetTransacBlockedContactsContacts.md)
317+
- [Model.GetTransacBlockedContactsReason](docs/GetTransacBlockedContactsReason.md)
318+
- [Model.GetTransacEmailContent](docs/GetTransacEmailContent.md)
319+
- [Model.GetTransacEmailContentEvents](docs/GetTransacEmailContentEvents.md)
320+
- [Model.GetTransacEmailsList](docs/GetTransacEmailsList.md)
321+
- [Model.GetTransacEmailsListTransactionalEmails](docs/GetTransacEmailsListTransactionalEmails.md)
298322
- [Model.GetTransacSmsReport](docs/GetTransacSmsReport.md)
299323
- [Model.GetTransacSmsReportReports](docs/GetTransacSmsReportReports.md)
300324
- [Model.GetWebhook](docs/GetWebhook.md)
@@ -333,6 +357,8 @@ Class | Method | HTTP request | Description
333357
- [Model.UpdateAttributeEnumeration](docs/UpdateAttributeEnumeration.md)
334358
- [Model.UpdateCampaignStatus](docs/UpdateCampaignStatus.md)
335359
- [Model.UpdateChild](docs/UpdateChild.md)
360+
- [Model.UpdateChildAccountStatus](docs/UpdateChildAccountStatus.md)
361+
- [Model.UpdateChildDomain](docs/UpdateChildDomain.md)
336362
- [Model.UpdateContact](docs/UpdateContact.md)
337363
- [Model.UpdateEmailCampaign](docs/UpdateEmailCampaign.md)
338364
- [Model.UpdateEmailCampaignRecipients](docs/UpdateEmailCampaignRecipients.md)

docs/AbTestCampaignResult.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# sib_api_v3_sdk.Model.AbTestCampaignResult
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**WinningVersion** | **string** | Winning Campaign Info. pending = Campaign has been picked for sending and winning version is yet to be decided, tie = A tie happened between both the versions, notAvailable = Campaign has not yet been picked for sending. | [optional]
7+
**WinningCriteria** | **string** | Criteria choosen for winning version (Open/Click) | [optional]
8+
**WinningSubjectLine** | **string** | Subject Line of current winning version | [optional]
9+
**OpenRate** | **string** | Open rate for current winning version | [optional]
10+
**ClickRate** | **string** | Click rate for current winning version | [optional]
11+
**WinningVersionRate** | **string** | Open/Click rate for the winner version | [optional]
12+
13+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
14+

docs/AddChildDomain.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# sib_api_v3_sdk.Model.AddChildDomain
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**Domain** | **string** | Sender domain to add for a specific child account | [optional]
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+

docs/ContactsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,7 @@ namespace Example
741741
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
742742
743743
var apiInstance = new ContactsApi();
744-
var email = email_example; // string | Email (urlencoded) of the contact
744+
var email = email_example; // string | Email (urlencoded) of the contact OR its SMS attribute value
745745
746746
try
747747
{
@@ -762,7 +762,7 @@ namespace Example
762762

763763
Name | Type | Description | Notes
764764
------------- | ------------- | ------------- | -------------
765-
**email** | **string**| Email (urlencoded) of the contact |
765+
**email** | **string**| Email (urlencoded) of the contact OR its SMS attribute value |
766766

767767
### Return type
768768

docs/CreateContact.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
**SmsBlacklisted** | **bool?** | Set this field to blacklist the contact for SMS (smsBlacklisted = true) | [optional]
1010
**ListIds** | **List<long?>** | Ids of the lists to add the contact to | [optional]
1111
**UpdateEnabled** | **bool?** | Facilitate to update the existing contact in the same request (updateEnabled = true) | [optional] [default to false]
12-
**SmtpBlacklistSender** | **List<string>** | SMTP forbidden sender for contact. Use only for email Contact ( only available if updateEnabled = true ) | [optional]
12+
**SmtpBlacklistSender** | **List<string>** | transactional email forbidden sender for contact. Use only for email Contact ( only available if updateEnabled = true ) | [optional]
1313

1414
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1515

0 commit comments

Comments
 (0)