Skip to content

Commit d708ff4

Browse files
Merge pull request #9 from sendinblue/WrapperUpdate2.1.0
Wrapper update2.1.0
2 parents 9957312 + 509c539 commit d708ff4

19 files changed

+656
-65
lines changed

LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2019 SendinBlue
3+
Copyright (c) 2020 SendinBlue
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ 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: 2.0.0
12+
- SDK version: 2.1.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

@@ -20,8 +20,8 @@ This C# SDK is automatically generated by the [Swagger Codegen](https://github.c
2020
- UWP >=10.0
2121

2222
## Dependencies
23-
- FubarCoder.RestSharp.Portable.Core >=4.0.7
24-
- FubarCoder.RestSharp.Portable.HttpClient >=4.0.7
23+
- FubarCoder.RestSharp.Portable.Core >=4.0.8
24+
- FubarCoder.RestSharp.Portable.HttpClient >=4.0.8
2525
- Newtonsoft.Json >=10.0.3
2626

2727

@@ -189,6 +189,7 @@ Class | Method | HTTP request | Description
189189
*SMTPApi* | [**SendTestTemplate**](docs/SMTPApi.md#sendtesttemplate) | **POST** /smtp/templates/{templateId}/sendTest | Send a template to your test list
190190
*SMTPApi* | [**SendTransacEmail**](docs/SMTPApi.md#sendtransacemail) | **POST** /smtp/email | Send a transactional email
191191
*SMTPApi* | [**SmtpBlockedContactsEmailDelete**](docs/SMTPApi.md#smtpblockedcontactsemaildelete) | **DELETE** /smtp/blockedContacts/{email} | Unblock or resubscribe a transactional contact
192+
*SMTPApi* | [**SmtpLogMessageIdDelete**](docs/SMTPApi.md#smtplogmessageiddelete) | **DELETE** /smtp/log/{messageId} | Delete an SMTP transactional log
192193
*SMTPApi* | [**UpdateSmtpTemplate**](docs/SMTPApi.md#updatesmtptemplate) | **PUT** /smtp/templates/{templateId} | Updates a transactional email templates
193194
*SendersApi* | [**CreateSender**](docs/SendersApi.md#createsender) | **POST** /senders | Create a new sender
194195
*SendersApi* | [**DeleteSender**](docs/SendersApi.md#deletesender) | **DELETE** /senders/{senderId} | Delete a sender
@@ -334,6 +335,7 @@ Class | Method | HTTP request | Description
334335
- [Model.RemoveContactFromList](docs/RemoveContactFromList.md)
335336
- [Model.RemoveCredits](docs/RemoveCredits.md)
336337
- [Model.RequestContactExport](docs/RequestContactExport.md)
338+
- [Model.RequestContactExportCustomContactFilter](docs/RequestContactExportCustomContactFilter.md)
337339
- [Model.RequestContactImport](docs/RequestContactImport.md)
338340
- [Model.RequestContactImportNewList](docs/RequestContactImportNewList.md)
339341
- [Model.RequestSmsRecipientExport](docs/RequestSmsRecipientExport.md)

docs/CreateContact.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**Email** | **string** | Email address of the user. Mandatory if \"sms\" field is not passed in \"attributes\" parameter' | [optional]
6+
**Email** | **string** | Email address of the user. Mandatory if \"SMS\" field is not passed in \"attributes\" parameter. For example {'SMS':'+91xxxxxxxxxx'} | [optional]
77
**Attributes** | **Object** | Pass the set of attributes and their values. These attributes must be present in your SendinBlue account. For eg. {'FNAME':'Elly', 'LNAME':'Roger'} | [optional]
88
**EmailBlacklisted** | **bool?** | Set this field to blacklist the contact for emails (emailBlacklisted = true) | [optional]
99
**SmsBlacklisted** | **bool?** | Set this field to blacklist the contact for SMS (smsBlacklisted = true) | [optional]

docs/RequestContactExport.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**ExportAttributes** | **List<string>** | List of all the attributes that you want to export. These attributes must be present in your contact database. For example, ['fname', 'lname', 'email']. | [optional]
7-
**ContactFilter** | **Object** | Set the filter for the contacts to be exported. For example, {'blacklisted':true} will export all the blacklisted contacts. |
7+
**ContactFilter** | **Object** | This attribute has been deprecated and will be removed by January 1st, 2021. Only one of the two filter options (contactFilter or customContactFilter) can be passed in the request. Set the filter for the contacts to be exported. For example, {'blacklisted':true} will export all the blacklisted contacts. | [optional]
8+
**CustomContactFilter** | [**RequestContactExportCustomContactFilter**](RequestContactExportCustomContactFilter.md) | | [optional]
89
**NotifyUrl** | **string** | Webhook that will be called once the export process is finished | [optional]
910

1011
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# sib_api_v3_sdk.Model.RequestContactExportCustomContactFilter
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**ActionForContacts** | **string** | Mandatory if neither actionForEmailCampaigns nor actionForSmsCampaigns is passed. This will export the contacts on the basis of provided action applied on contacts as per the list id. * allContacts - Fetch the list of all contacts for a particular list. * subscribed & unsubscribed - Fetch the list of subscribed / unsubscribed (blacklisted via any means) contacts for a particular list. * unsubscribedPerList - Fetch the list of contacts that are unsubscribed from a particular list only. | [optional]
7+
**ActionForEmailCampaigns** | **string** | Mandatory if neither actionForContacts nor actionForSmsCampaigns is passed. This will export the contacts on the basis of provided action applied on email campaigns. * openers & nonOpeners - emailCampaignId is mandatory. Fetch the list of readers / non-readers for a particular email campaign. * clickers & nonClickers - emailCampaignId is mandatory. Fetch the list of clickers / non-clickers for a particular email campaign. * unsubscribed - emailCampaignId is mandatory. Fetch the list of all unsubscribed (blacklisted via any means) contacts for a particular email campaign. * hardBounces & softBounces - emailCampaignId is optional. Fetch the list of hard bounces / soft bounces for a particular / all email campaign(s). | [optional]
8+
**ActionForSmsCampaigns** | **string** | Mandatory if neither actionForContacts nor actionForEmailCampaigns is passed. This will export the contacts on the basis of provided action applied on sms campaigns. * unsubscribed - Fetch the list of all unsubscribed (blacklisted via any means) contacts for all / particular sms campaigns. * hardBounces & softBounces - Fetch the list of hard bounces / soft bounces for all / particular sms campaigns. | [optional]
9+
**ListId** | **long?** | Mandatory if actionForContacts is passed, ignored otherwise. Id of the list for which the corresponding action shall be applied in the filter. | [optional]
10+
**EmailCampaignId** | **long?** | Considered only if actionForEmailCampaigns is passed, ignored otherwise. Mandatory if action is one of the following - openers, nonOpeners, clickers, nonClickers, unsubscribed. The id of the email campaign for which the corresponding action shall be applied in the filter. | [optional]
11+
**SmsCampaignId** | **long?** | Considered only if actionForSmsCampaigns is passed, ignored otherwise. The id of sms campaign for which the corresponding action shall be applied in the filter. | [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/ResellerApi.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ namespace Example
192192
193193
var apiInstance = new ResellerApi();
194194
var childAuthKey = childAuthKey_example; // string | auth key of reseller's child
195-
var addChildDomain = new AddChildDomain(); // AddChildDomain | Sender domain to add for a specific child account
195+
var addChildDomain = new AddChildDomain(); // AddChildDomain | Sender domain to add for a specific child account. This will not be displayed to the parent account.
196196
197197
try
198198
{
@@ -213,7 +213,7 @@ namespace Example
213213
Name | Type | Description | Notes
214214
------------- | ------------- | ------------- | -------------
215215
**childAuthKey** | **string**| auth key of reseller's child |
216-
**addChildDomain** | [**AddChildDomain**](AddChildDomain.md)| Sender domain to add for a specific child account |
216+
**addChildDomain** | [**AddChildDomain**](AddChildDomain.md)| Sender domain to add for a specific child account. This will not be displayed to the parent account. |
217217

218218
### Return type
219219

docs/SMTPApi.md

+68
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Method | HTTP request | Description
1919
[**SendTestTemplate**](SMTPApi.md#sendtesttemplate) | **POST** /smtp/templates/{templateId}/sendTest | Send a template to your test list
2020
[**SendTransacEmail**](SMTPApi.md#sendtransacemail) | **POST** /smtp/email | Send a transactional email
2121
[**SmtpBlockedContactsEmailDelete**](SMTPApi.md#smtpblockedcontactsemaildelete) | **DELETE** /smtp/blockedContacts/{email} | Unblock or resubscribe a transactional contact
22+
[**SmtpLogMessageIdDelete**](SMTPApi.md#smtplogmessageiddelete) | **DELETE** /smtp/log/{messageId} | Delete an SMTP transactional log
2223
[**UpdateSmtpTemplate**](SMTPApi.md#updatesmtptemplate) | **PUT** /smtp/templates/{templateId} | Updates a transactional email templates
2324

2425

@@ -1102,6 +1103,73 @@ void (empty response body)
11021103

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

1106+
<a name="smtplogmessageiddelete"></a>
1107+
# **SmtpLogMessageIdDelete**
1108+
> void SmtpLogMessageIdDelete (string messageId)
1109+
1110+
Delete an SMTP transactional log
1111+
1112+
### Example
1113+
```csharp
1114+
using System;
1115+
using System.Diagnostics;
1116+
using sib_api_v3_sdk.Api;
1117+
using sib_api_v3_sdk.Client;
1118+
using sib_api_v3_sdk.Model;
1119+
1120+
namespace Example
1121+
{
1122+
public class SmtpLogMessageIdDeleteExample
1123+
{
1124+
public void main()
1125+
{
1126+
// Configure API key authorization: api-key
1127+
Configuration.Default.AddApiKey("api-key", "YOUR_API_KEY");
1128+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
1129+
// Configuration.Default.AddApiKeyPrefix("api-key", "Bearer");
1130+
// Configure API key authorization: partner-key
1131+
Configuration.Default.AddApiKey("partner-key", "YOUR_API_KEY");
1132+
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
1133+
// Configuration.Default.AddApiKeyPrefix("partner-key", "Bearer");
1134+
1135+
var apiInstance = new SMTPApi();
1136+
var messageId = messageId_example; // string | MessageId of the transactional log to delete
1137+
1138+
try
1139+
{
1140+
// Delete an SMTP transactional log
1141+
apiInstance.SmtpLogMessageIdDelete(messageId);
1142+
}
1143+
catch (Exception e)
1144+
{
1145+
Debug.Print("Exception when calling SMTPApi.SmtpLogMessageIdDelete: " + e.Message );
1146+
}
1147+
}
1148+
}
1149+
}
1150+
```
1151+
1152+
### Parameters
1153+
1154+
Name | Type | Description | Notes
1155+
------------- | ------------- | ------------- | -------------
1156+
**messageId** | **string**| MessageId of the transactional log to delete |
1157+
1158+
### Return type
1159+
1160+
void (empty response body)
1161+
1162+
### Authorization
1163+
1164+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
1165+
1166+
### HTTP request headers
1167+
1168+
- **Content-Type**: application/json
1169+
- **Accept**: application/json
1170+
1171+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1172+
11051173
<a name="updatesmtptemplate"></a>
11061174
# **UpdateSmtpTemplate**
11071175
> void UpdateSmtpTemplate (long? templateId, UpdateSmtpTemplate smtpTemplate)

docs/SendSmtpEmail.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
1111
**TextContent** | **string** | Plain Text body of the message ( Ignored if &#39;templateId&#39; is passed ) | [optional]
1212
**Subject** | **string** | Subject of the message. Mandatory if &#39;templateId&#39; is not passed | [optional]
1313
**ReplyTo** | [**SendSmtpEmailReplyTo**](SendSmtpEmailReplyTo.md) | | [optional]
14-
**Attachment** | [**List&lt;SendSmtpEmailAttachment&gt;**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, &#x60;[{\&quot;url\&quot;:\&quot;https://attachment.domain.com/myAttachmentFromUrl.jpg\&quot;, \&quot;name\&quot;:\&quot;My attachment 1\&quot;}, {\&quot;content\&quot;:\&quot;base64 exmaple content\&quot;, \&quot;name\&quot;:\&quot;My attachment 2\&quot;}]&#x60;. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg and wmv ( If &#39;templateId&#39; is passed and is in New Template Language format then only attachment url is accepted. If template is in Old template Language format, then &#39;attachment&#39; is ignored ) | [optional]
14+
**Attachment** | [**List&lt;SendSmtpEmailAttachment&gt;**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, &#x60;[{\&quot;url\&quot;:\&quot;https://attachment.domain.com/myAttachmentFromUrl.jpg\&quot;, \&quot;name\&quot;:\&quot;My attachment 1\&quot;}, {\&quot;content\&quot;:\&quot;base64 exmaple content\&quot;, \&quot;name\&quot;:\&quot;My attachment 2\&quot;}]&#x60;. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg and wmv ( If &#39;templateId&#39; is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then &#39;attachment&#39; is ignored ) | [optional]
1515
**Headers** | **Object** | Pass the set of custom headers (not the standard headers) that shall be sent along the mail headers in the original email. &#39;sender.ip&#39; header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. For example, &#x60;{\&quot;sender.ip\&quot;:\&quot;1.2.3.4\&quot;, \&quot;X-Mailin-custom\&quot;:\&quot;some_custom_header\&quot;}&#x60;. | [optional]
1616
**TemplateId** | **long?** | Id of the template | [optional]
1717
**Params** | **Object** | Pass the set of attributes to customize the template. For example, {&#39;FNAME&#39;:&#39;Joe&#39;, &#39;LNAME&#39;:&#39;Doe&#39;}. It&#39;s considered only if template is in New Template Language format. | [optional]

docs/UpdateContact.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**Attributes** | **Object** | Pass the set of attributes to be updated. These attributes must be present in your account. To update existing email address of a contact with the new one please pass EMAIL in attribtes. For eg. { &#39;EMAIL&#39;:&#39;[email protected]&#39;, &#39;FNAME&#39;:&#39;Ellie&#39;, &#39;LNAME&#39;:&#39;Roger&#39;} | [optional]
6+
**Attributes** | **Object** | Pass the set of attributes to be updated. These attributes must be present in your account. To update existing email address of a contact with the new one please pass EMAIL in attribtes. For example, { &#39;EMAIL&#39;:&#39;[email protected]&#39;, &#39;FNAME&#39;:&#39;Ellie&#39;, &#39;LNAME&#39;:&#39;Roger&#39;} &#x60;{ \&quot;EMAIL\&quot;:\&quot;[email protected]\&quot;, \&quot;FNAME\&quot;:\&quot;Ellie\&quot;, \&quot;LNAME\&quot;:\&quot;Roger\&quot;}&#x60;. Keep in mind transactional attributes can be updated the same way as normal attributes. | [optional]
77
**EmailBlacklisted** | **bool?** | Set/unset this field to blacklist/allow the contact for emails (emailBlacklisted &#x3D; true) | [optional]
88
**SmsBlacklisted** | **bool?** | Set/unset this field to blacklist/allow the contact for SMS (smsBlacklisted &#x3D; true) | [optional]
99
**ListIds** | **List&lt;long?&gt;** | Ids of the lists to add the contact to | [optional]

sib_api_v3_sdk.sln

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 15
3-
VisualStudioVersion = 15.0.28010.2036
3+
VisualStudioVersion = 15.0.28307.1022
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "sib_api_v3_sdk", "src\sib_api_v3_sdk\sib_api_v3_sdk.csproj", "{E652C592-450F-4626-9AC0-9093AB12CFF2}"
5+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "sib_api_v3_sdk", "src\sib_api_v3_sdk\sib_api_v3_sdk.csproj", "{6C3156D9-31D5-4550-8E91-1BBAF88A5264}"
66
EndProject
77
Global
88
GlobalSection(SolutionConfigurationPlatforms) = preSolution
99
Debug|Any CPU = Debug|Any CPU
1010
Release|Any CPU = Release|Any CPU
1111
EndGlobalSection
1212
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13-
{E652C592-450F-4626-9AC0-9093AB12CFF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14-
{E652C592-450F-4626-9AC0-9093AB12CFF2}.Debug|Any CPU.Build.0 = Debug|Any CPU
15-
{E652C592-450F-4626-9AC0-9093AB12CFF2}.Release|Any CPU.ActiveCfg = Release|Any CPU
16-
{E652C592-450F-4626-9AC0-9093AB12CFF2}.Release|Any CPU.Build.0 = Release|Any CPU
13+
{6C3156D9-31D5-4550-8E91-1BBAF88A5264}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{6C3156D9-31D5-4550-8E91-1BBAF88A5264}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{6C3156D9-31D5-4550-8E91-1BBAF88A5264}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{6C3156D9-31D5-4550-8E91-1BBAF88A5264}.Release|Any CPU.Build.0 = Release|Any CPU
1717
EndGlobalSection
1818
GlobalSection(SolutionProperties) = preSolution
1919
HideSolutionNode = FALSE
2020
EndGlobalSection
2121
GlobalSection(ExtensibilityGlobals) = postSolution
22-
SolutionGuid = {CA0D4C7A-6E62-444B-8284-6DACD452CE37}
22+
SolutionGuid = {3E0E34C5-05C9-4975-BD57-02170BC5A67B}
2323
EndGlobalSection
2424
EndGlobal

0 commit comments

Comments
 (0)