Skip to content

Commit

Permalink
Merge pull request #7 from sendinblue/UpdateWrapper
Browse files Browse the repository at this point in the history
Updated Wrapper to support netstandard2.0
  • Loading branch information
amitsendinblue authored Jan 17, 2020
2 parents 4e0a4d6 + 1f5a914 commit 290f293
Show file tree
Hide file tree
Showing 403 changed files with 8,588 additions and 21,504 deletions.
2 changes: 1 addition & 1 deletion .swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.4
2.4.9
72 changes: 49 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,24 @@ SendinBlue's API matches the [OpenAPI v2 definition](https://www.openapis.org/).
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:

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

## Frameworks supported
- .NET 4.0 or later
- Windows Phone 7.1 (Mango)
- .NET Core >=1.0
- .NET Framework >=4.6
- Mono/Xamarin >=vNext
- UWP >=10.0

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

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:
```
Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes
```

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)

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

**OR**

Expand Down Expand Up @@ -128,9 +122,11 @@ Class | Method | HTTP request | Description
*EmailCampaignsApi* | [**CreateEmailCampaign**](docs/EmailCampaignsApi.md#createemailcampaign) | **POST** /emailCampaigns | Create an email campaign
*EmailCampaignsApi* | [**DeleteEmailCampaign**](docs/EmailCampaignsApi.md#deleteemailcampaign) | **DELETE** /emailCampaigns/{campaignId} | Delete an email campaign
*EmailCampaignsApi* | [**EmailExportRecipients**](docs/EmailCampaignsApi.md#emailexportrecipients) | **POST** /emailCampaigns/{campaignId}/exportRecipients | Export the recipients of a campaign
*EmailCampaignsApi* | [**GetAbTestCampaignResult**](docs/EmailCampaignsApi.md#getabtestcampaignresult) | **GET** /emailCampaigns/{campaignId}/abTestCampaignResult | Get A/B test email campaign result
*EmailCampaignsApi* | [**GetEmailCampaign**](docs/EmailCampaignsApi.md#getemailcampaign) | **GET** /emailCampaigns/{campaignId} | Get campaign informations
*EmailCampaignsApi* | [**GetEmailCampaigns**](docs/EmailCampaignsApi.md#getemailcampaigns) | **GET** /emailCampaigns | Return all your created campaigns
*EmailCampaignsApi* | [**SendEmailCampaignNow**](docs/EmailCampaignsApi.md#sendemailcampaignnow) | **POST** /emailCampaigns/{campaignId}/sendNow | Send an email campaign id of the campaign immediately
*EmailCampaignsApi* | [**GetSharedTemplateUrl**](docs/EmailCampaignsApi.md#getsharedtemplateurl) | **GET** /emailCampaigns/{campaignId}/sharedUrl | Get a shared template url
*EmailCampaignsApi* | [**SendEmailCampaignNow**](docs/EmailCampaignsApi.md#sendemailcampaignnow) | **POST** /emailCampaigns/{campaignId}/sendNow | Send an email campaign immediately, based on campaignId
*EmailCampaignsApi* | [**SendReport**](docs/EmailCampaignsApi.md#sendreport) | **POST** /emailCampaigns/{campaignId}/sendReport | Send the report of a campaigns
*EmailCampaignsApi* | [**SendTestEmail**](docs/EmailCampaignsApi.md#sendtestemail) | **POST** /emailCampaigns/{campaignId}/sendTest | Send an email campaign to your test list
*EmailCampaignsApi* | [**UpdateCampaignStatus**](docs/EmailCampaignsApi.md#updatecampaignstatus) | **PUT** /emailCampaigns/{campaignId}/status | Update a campaign status
Expand All @@ -154,12 +150,19 @@ Class | Method | HTTP request | Description
*ProcessApi* | [**GetProcesses**](docs/ProcessApi.md#getprocesses) | **GET** /processes | Return all the processes for your account
*ResellerApi* | [**AddCredits**](docs/ResellerApi.md#addcredits) | **POST** /reseller/children/{childAuthKey}/credits/add | Add Email and/or SMS credits to a specific child account
*ResellerApi* | [**AssociateIpToChild**](docs/ResellerApi.md#associateiptochild) | **POST** /reseller/children/{childAuthKey}/ips/associate | Associate a dedicated IP to the child
*ResellerApi* | [**CreateChildDomain**](docs/ResellerApi.md#createchilddomain) | **POST** /reseller/children/{childAuthKey}/domains | Creates a domain for a child account
*ResellerApi* | [**CreateResellerChild**](docs/ResellerApi.md#createresellerchild) | **POST** /reseller/children | Creates a reseller child
*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
*ResellerApi* | [**DeleteResellerChild**](docs/ResellerApi.md#deleteresellerchild) | **DELETE** /reseller/children/{childAuthKey} | Deletes a single reseller child based on the childAuthKey supplied
*ResellerApi* | [**DissociateIpFromChild**](docs/ResellerApi.md#dissociateipfromchild) | **POST** /reseller/children/{childAuthKey}/ips/dissociate | Dissociate a dedicated IP to the child
*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
*ResellerApi* | [**GetChildDomains**](docs/ResellerApi.md#getchilddomains) | **GET** /reseller/children/{childAuthKey}/domains | Gets all the sender domains of a specific child account
*ResellerApi* | [**GetChildInfo**](docs/ResellerApi.md#getchildinfo) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account
*ResellerApi* | [**GetResellerChilds**](docs/ResellerApi.md#getresellerchilds) | **GET** /reseller/children | Gets the list of all reseller's children accounts
*ResellerApi* | [**GetSsoToken**](docs/ResellerApi.md#getssotoken) | **GET** /reseller/children/{childAuthKey}/auth | Get session token to access Sendinblue (SSO)
*ResellerApi* | [**RemoveCredits**](docs/ResellerApi.md#removecredits) | **POST** /reseller/children/{childAuthKey}/credits/remove | Remove Email and/or SMS credits from a specific child account
*ResellerApi* | [**UpdateChildAccountStatus**](docs/ResellerApi.md#updatechildaccountstatus) | **PUT** /reseller/children/{childAuthKey}/accountStatus | Updates infos of reseller's child account status based on the childAuthKey supplied
*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
*ResellerApi* | [**UpdateResellerChild**](docs/ResellerApi.md#updateresellerchild) | **PUT** /reseller/children/{childAuthKey} | Updates infos of reseller's child based on the childAuthKey supplied
*SMSCampaignsApi* | [**CreateSmsCampaign**](docs/SMSCampaignsApi.md#createsmscampaign) | **POST** /smsCampaigns | Creates an SMS campaign
*SMSCampaignsApi* | [**DeleteSmsCampaign**](docs/SMSCampaignsApi.md#deletesmscampaign) | **DELETE** /smsCampaigns/{campaignId} | Delete the SMS campaign
Expand All @@ -171,18 +174,22 @@ Class | Method | HTTP request | Description
*SMSCampaignsApi* | [**SendTestSms**](docs/SMSCampaignsApi.md#sendtestsms) | **POST** /smsCampaigns/{campaignId}/sendTest | Send an SMS
*SMSCampaignsApi* | [**UpdateSmsCampaign**](docs/SMSCampaignsApi.md#updatesmscampaign) | **PUT** /smsCampaigns/{campaignId} | Updates an SMS campaign
*SMSCampaignsApi* | [**UpdateSmsCampaignStatus**](docs/SMSCampaignsApi.md#updatesmscampaignstatus) | **PUT** /smsCampaigns/{campaignId}/status | Update the campaign status
*SMTPApi* | [**CreateSmtpTemplate**](docs/SMTPApi.md#createsmtptemplate) | **POST** /smtp/templates | Create an smtp template
*SMTPApi* | [**CreateSmtpTemplate**](docs/SMTPApi.md#createsmtptemplate) | **POST** /smtp/templates | Create a transactional email template
*SMTPApi* | [**DeleteHardbounces**](docs/SMTPApi.md#deletehardbounces) | **POST** /smtp/deleteHardbounces | Delete hardbounces
*SMTPApi* | [**DeleteSmtpTemplate**](docs/SMTPApi.md#deletesmtptemplate) | **DELETE** /smtp/templates/{templateId} | Delete an inactive smtp template
*SMTPApi* | [**GetAggregatedSmtpReport**](docs/SMTPApi.md#getaggregatedsmtpreport) | **GET** /smtp/statistics/aggregatedReport | Get your SMTP activity aggregated over a period of time
*SMTPApi* | [**GetEmailEventReport**](docs/SMTPApi.md#getemaileventreport) | **GET** /smtp/statistics/events | Get all your SMTP activity (unaggregated events)
*SMTPApi* | [**GetSmtpReport**](docs/SMTPApi.md#getsmtpreport) | **GET** /smtp/statistics/reports | Get your SMTP activity aggregated per day
*SMTPApi* | [**DeleteSmtpTemplate**](docs/SMTPApi.md#deletesmtptemplate) | **DELETE** /smtp/templates/{templateId} | Delete an inactive transactional email template
*SMTPApi* | [**GetAggregatedSmtpReport**](docs/SMTPApi.md#getaggregatedsmtpreport) | **GET** /smtp/statistics/aggregatedReport | Get your transactional email activity aggregated over a period of time
*SMTPApi* | [**GetEmailEventReport**](docs/SMTPApi.md#getemaileventreport) | **GET** /smtp/statistics/events | Get all your transactional email activity (unaggregated events)
*SMTPApi* | [**GetSmtpReport**](docs/SMTPApi.md#getsmtpreport) | **GET** /smtp/statistics/reports | Get your transactional email activity aggregated per day
*SMTPApi* | [**GetSmtpTemplate**](docs/SMTPApi.md#getsmtptemplate) | **GET** /smtp/templates/{templateId} | Returns the template informations
*SMTPApi* | [**GetSmtpTemplates**](docs/SMTPApi.md#getsmtptemplates) | **GET** /smtp/templates | Get the list of SMTP templates
*SMTPApi* | [**GetSmtpTemplates**](docs/SMTPApi.md#getsmtptemplates) | **GET** /smtp/templates | Get the list of transactional email templates
*SMTPApi* | [**GetTransacBlockedContacts**](docs/SMTPApi.md#gettransacblockedcontacts) | **GET** /smtp/blockedContacts | Get the list of blocked or unsubscribed transactional contacts
*SMTPApi* | [**GetTransacEmailContent**](docs/SMTPApi.md#gettransacemailcontent) | **GET** /smtp/emails/{uuid} | Get the personalized content of a sent transactional email
*SMTPApi* | [**GetTransacEmailsList**](docs/SMTPApi.md#gettransacemailslist) | **GET** /smtp/emails | Get the list of transactional emails on the basis of allowed filters
*SMTPApi* | [**SendTemplate**](docs/SMTPApi.md#sendtemplate) | **POST** /smtp/templates/{templateId}/send | Send a template
*SMTPApi* | [**SendTestTemplate**](docs/SMTPApi.md#sendtesttemplate) | **POST** /smtp/templates/{templateId}/sendTest | Send a template to your test list
*SMTPApi* | [**SendTransacEmail**](docs/SMTPApi.md#sendtransacemail) | **POST** /smtp/email | Send a transactional email
*SMTPApi* | [**UpdateSmtpTemplate**](docs/SMTPApi.md#updatesmtptemplate) | **PUT** /smtp/templates/{templateId} | Updates an smtp templates
*SMTPApi* | [**SmtpBlockedContactsEmailDelete**](docs/SMTPApi.md#smtpblockedcontactsemaildelete) | **DELETE** /smtp/blockedContacts/{email} | Unblock or resubscribe a transactional contact
*SMTPApi* | [**UpdateSmtpTemplate**](docs/SMTPApi.md#updatesmtptemplate) | **PUT** /smtp/templates/{templateId} | Updates a transactional email templates
*SendersApi* | [**CreateSender**](docs/SendersApi.md#createsender) | **POST** /senders | Create a new sender
*SendersApi* | [**DeleteSender**](docs/SendersApi.md#deletesender) | **DELETE** /senders/{senderId} | Delete a sender
*SendersApi* | [**GetIps**](docs/SendersApi.md#getips) | **GET** /senders/ips | Return all the dedicated IPs for your account
Expand All @@ -202,6 +209,8 @@ Class | Method | HTTP request | Description

## Documentation for Models

- [Model.AbTestCampaignResult](docs/AbTestCampaignResult.md)
- [Model.AddChildDomain](docs/AddChildDomain.md)
- [Model.AddContactToList](docs/AddContactToList.md)
- [Model.AddCredits](docs/AddCredits.md)
- [Model.CreateAttribute](docs/CreateAttribute.md)
Expand Down Expand Up @@ -240,6 +249,9 @@ Class | Method | HTTP request | Description
- [Model.GetCampaignOverview](docs/GetCampaignOverview.md)
- [Model.GetCampaignRecipients](docs/GetCampaignRecipients.md)
- [Model.GetCampaignStats](docs/GetCampaignStats.md)
- [Model.GetChildAccountCreationStatus](docs/GetChildAccountCreationStatus.md)
- [Model.GetChildDomain](docs/GetChildDomain.md)
- [Model.GetChildDomains](docs/GetChildDomains.md)
- [Model.GetChildInfoApiKeys](docs/GetChildInfoApiKeys.md)
- [Model.GetChildInfoApiKeysV2](docs/GetChildInfoApiKeysV2.md)
- [Model.GetChildInfoApiKeysV3](docs/GetChildInfoApiKeysV3.md)
Expand All @@ -254,6 +266,7 @@ Class | Method | HTTP request | Description
- [Model.GetContactCampaignStatsUnsubscriptions](docs/GetContactCampaignStatsUnsubscriptions.md)
- [Model.GetContactDetails](docs/GetContactDetails.md)
- [Model.GetContacts](docs/GetContacts.md)
- [Model.GetDeviceBrowserStats](docs/GetDeviceBrowserStats.md)
- [Model.GetEmailCampaigns](docs/GetEmailCampaigns.md)
- [Model.GetEmailEventReport](docs/GetEmailEventReport.md)
- [Model.GetEmailEventReportEvents](docs/GetEmailEventReportEvents.md)
Expand Down Expand Up @@ -285,6 +298,7 @@ Class | Method | HTTP request | Description
- [Model.GetSendersList](docs/GetSendersList.md)
- [Model.GetSendersListIps](docs/GetSendersListIps.md)
- [Model.GetSendersListSenders](docs/GetSendersListSenders.md)
- [Model.GetSharedTemplateUrl](docs/GetSharedTemplateUrl.md)
- [Model.GetSmsCampaignOverview](docs/GetSmsCampaignOverview.md)
- [Model.GetSmsCampaignStats](docs/GetSmsCampaignStats.md)
- [Model.GetSmsCampaigns](docs/GetSmsCampaigns.md)
Expand All @@ -293,8 +307,18 @@ Class | Method | HTTP request | Description
- [Model.GetSmtpTemplateOverview](docs/GetSmtpTemplateOverview.md)
- [Model.GetSmtpTemplateOverviewSender](docs/GetSmtpTemplateOverviewSender.md)
- [Model.GetSmtpTemplates](docs/GetSmtpTemplates.md)
- [Model.GetSsoToken](docs/GetSsoToken.md)
- [Model.GetStatsByBrowser](docs/GetStatsByBrowser.md)
- [Model.GetStatsByDevice](docs/GetStatsByDevice.md)
- [Model.GetStatsByDomain](docs/GetStatsByDomain.md)
- [Model.GetTransacAggregatedSmsReport](docs/GetTransacAggregatedSmsReport.md)
- [Model.GetTransacBlockedContacts](docs/GetTransacBlockedContacts.md)
- [Model.GetTransacBlockedContactsContacts](docs/GetTransacBlockedContactsContacts.md)
- [Model.GetTransacBlockedContactsReason](docs/GetTransacBlockedContactsReason.md)
- [Model.GetTransacEmailContent](docs/GetTransacEmailContent.md)
- [Model.GetTransacEmailContentEvents](docs/GetTransacEmailContentEvents.md)
- [Model.GetTransacEmailsList](docs/GetTransacEmailsList.md)
- [Model.GetTransacEmailsListTransactionalEmails](docs/GetTransacEmailsListTransactionalEmails.md)
- [Model.GetTransacSmsReport](docs/GetTransacSmsReport.md)
- [Model.GetTransacSmsReportReports](docs/GetTransacSmsReportReports.md)
- [Model.GetWebhook](docs/GetWebhook.md)
Expand Down Expand Up @@ -333,6 +357,8 @@ Class | Method | HTTP request | Description
- [Model.UpdateAttributeEnumeration](docs/UpdateAttributeEnumeration.md)
- [Model.UpdateCampaignStatus](docs/UpdateCampaignStatus.md)
- [Model.UpdateChild](docs/UpdateChild.md)
- [Model.UpdateChildAccountStatus](docs/UpdateChildAccountStatus.md)
- [Model.UpdateChildDomain](docs/UpdateChildDomain.md)
- [Model.UpdateContact](docs/UpdateContact.md)
- [Model.UpdateEmailCampaign](docs/UpdateEmailCampaign.md)
- [Model.UpdateEmailCampaignRecipients](docs/UpdateEmailCampaignRecipients.md)
Expand Down
14 changes: 14 additions & 0 deletions docs/AbTestCampaignResult.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# sib_api_v3_sdk.Model.AbTestCampaignResult
## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**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]
**WinningCriteria** | **string** | Criteria choosen for winning version (Open/Click) | [optional]
**WinningSubjectLine** | **string** | Subject Line of current winning version | [optional]
**OpenRate** | **string** | Open rate for current winning version | [optional]
**ClickRate** | **string** | Click rate for current winning version | [optional]
**WinningVersionRate** | **string** | Open/Click rate for the winner version | [optional]

[[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 changes: 9 additions & 0 deletions docs/AddChildDomain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# sib_api_v3_sdk.Model.AddChildDomain
## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Domain** | **string** | Sender domain to add for a specific child account | [optional]

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

4 changes: 2 additions & 2 deletions docs/ContactsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ namespace Example
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
var apiInstance = new ContactsApi();
var email = email_example; // string | Email (urlencoded) of the contact
var email = email_example; // string | Email (urlencoded) of the contact OR its SMS attribute value
try
{
Expand All @@ -762,7 +762,7 @@ namespace Example

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

### Return type

Expand Down
2 changes: 1 addition & 1 deletion docs/CreateContact.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**SmsBlacklisted** | **bool?** | Set this field to blacklist the contact for SMS (smsBlacklisted = true) | [optional]
**ListIds** | **List<long?>** | Ids of the lists to add the contact to | [optional]
**UpdateEnabled** | **bool?** | Facilitate to update the existing contact in the same request (updateEnabled = true) | [optional] [default to false]
**SmtpBlacklistSender** | **List<string>** | SMTP forbidden sender for contact. Use only for email Contact ( only available if updateEnabled = true ) | [optional]
**SmtpBlacklistSender** | **List<string>** | transactional email forbidden sender for contact. Use only for email Contact ( only available if updateEnabled = true ) | [optional]

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

Loading

0 comments on commit 290f293

Please sign in to comment.