Skip to content

Commit d932cda

Browse files
authored
Merge pull request #35 from sendinblue/6.0.0
AP-1634 : Release includes major changes.
2 parents cea3343 + 20f917c commit d932cda

File tree

322 files changed

+15901
-4866
lines changed

Some content is hidden

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

322 files changed

+15901
-4866
lines changed

.DS_Store

8 KB
Binary file not shown.

.swagger-codegen/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.9
1+
2.4.26

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add this dependency to your project's POM:
2222
<dependency>
2323
<groupId>com.sendinblue</groupId>
2424
<artifactId>sib-api-v3-sdk</artifactId>
25-
<version>5.3.0</version>
25+
<version>6.0.0</version>
2626
<scope>compile</scope>
2727
</dependency>
2828
```
@@ -32,7 +32,7 @@ Add this dependency to your project's POM:
3232
Add this dependency to your project's build file:
3333

3434
```groovy
35-
compile "com.sendinblue:sib-api-v3-sdk:5.3.0"
35+
compile "com.sendinblue:sib-api-v3-sdk:6.0.0"
3636
```
3737

3838
### Others
@@ -45,7 +45,7 @@ mvn package
4545

4646
Then manually install the following JARs:
4747

48-
* `target/sib-api-v3-sdk-5.3.0.jar`
48+
* `target/sib-api-v3-sdk-6.0.0.jar`
4949
* `target/lib/*.jar`
5050

5151
## Getting Started

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'com.sendinblue'
5-
version = '5.3.0'
5+
version = '6.0.0'
66

77
buildscript {
88
repositories {

build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.sendinblue",
44
name := "sib-api-v3-sdk",
5-
version := "5.3.0",
5+
version := "6.0.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/Body.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
# Body
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**name** | **String** | Name of task |
8+
**duration** | **Long** | Duration of task | [optional]
9+
**taskTypeId** | **String** | Id for type of task e.g Call / Email / Meeting etc. |
10+
**date** | [**OffsetDateTime**] | Task date/time |
11+
**notes** | **String** | Notes added to a task | [optional]
12+
**done** | **Boolean** | Task marked as done | [optional]
13+
**assignToId** | **String** | User id to whom task is assigned | [optional]
14+
**contactsIds** | **List&lt;Integer&gt;** | Contact ids for contacts linked to this task | [optional]
15+
**dealsIds** | **List&lt;String&gt;** | Deal ids for deals a task is linked to | [optional]
16+
**companiesIds** | **List&lt;String&gt;** | Companies ids for companies a task is linked to | [optional]
17+
**reminder** | [**TaskReminder**](TaskReminder.md) | | [optional]
18+
19+
20+

docs/Body1.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
# Body1
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**name** | **String** | Name of task |
8+
**duration** | **Integer** | Duration of task | [optional]
9+
**taskTypeId** | **String** | Id for type of task e.g Call / Email / Meeting etc. |
10+
**date** | [**OffsetDateTime**] | Task date/time |
11+
**notes** | **String** | Notes added to a task | [optional]
12+
**done** | **Boolean** | Task marked as done | [optional]
13+
**assignToId** | **String** | User id to whom task is assigned | [optional]
14+
**contactsIds** | **List&lt;Integer&gt;** | Contact ids for contacts linked to this task | [optional]
15+
**dealsIds** | **List&lt;String&gt;** | Deal ids for deals a task is linked to | [optional]
16+
**companiesIds** | **List&lt;String&gt;** | Companies ids for companies a task is linked to | [optional]
17+
**reminder** | [**TaskReminder**](TaskReminder.md) | | [optional]
18+
19+
20+

docs/Contact.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
# Contact
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**virtualNextTask** | **Object** | Next incomplete task of contact | [optional]
8+
**email** | **String** | Contact email |
9+
**assignToId** | **String** | User id to whom contact is assigned | [optional]
10+
**contactsId** | **Integer** | Contact id | [optional]
11+
**crmLists** | **Object** | CRM lists in which contact is added |
12+
**attributes** | **Object** | Contact attributes e.g firstname / lastname / SMS etc. | [optional]
13+
**createdAt** | [**OffsetDateTime**] | Contact created date/time | [optional]
14+
**updatedAt** | [**OffsetDateTime**] | Contact updated date/time | [optional]
15+
16+
17+

docs/ContactsApi.md

+63-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Method | HTTP request | Description
2828
[**removeContactFromList**](ContactsApi.md#removeContactFromList) | **POST** /contacts/lists/{listId}/contacts/remove | Delete a contact from a list
2929
[**requestContactExport**](ContactsApi.md#requestContactExport) | **POST** /contacts/export | Export contacts
3030
[**updateAttribute**](ContactsApi.md#updateAttribute) | **PUT** /contacts/attributes/{attributeCategory}/{attributeName} | Update contact attribute
31+
[**updateBatchContacts**](ContactsApi.md#updateBatchContacts) | **POST** /contacts/batch | Update multiple contacts
3132
[**updateContact**](ContactsApi.md#updateContact) | **PUT** /contacts/{identifier} | Update a contact
3233
[**updateFolder**](ContactsApi.md#updateFolder) | **PUT** /contacts/folders/{folderId} | Update a folder
3334
[**updateList**](ContactsApi.md#updateList) | **PUT** /contacts/lists/{listId} | Update a list
@@ -686,6 +687,8 @@ This endpoint does not need any parameter.
686687
687688
Get a contact&#39;s details
688689

690+
Along with the contact details, this endpoint will show the statistics of contact for the recent 90 days by default. To fetch the earlier statistics, please use Get contact campaign stats (https://developers.sendinblue.com/reference/contacts-7#getcontactstats) endpoint with the appropriate date ranges.
691+
689692
### Example
690693
```java
691694
// Import classes:
@@ -771,7 +774,7 @@ partnerKey.setApiKey("YOUR PARTNER KEY");
771774
ContactsApi apiInstance = new ContactsApi();
772775
String identifier = "identifier_example"; // String | Email (urlencoded) OR ID of the contact
773776
String startDate = "startDate_example"; // String | Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
774-
String endDate = "endDate_example"; // String | Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate
777+
String endDate = "endDate_example"; // String | Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. Maximum difference between startDate and endDate should not be greater than 90 days
775778
try {
776779
GetContactCampaignStats result = apiInstance.getContactStats(identifier, startDate, endDate);
777780
System.out.println(result);
@@ -787,7 +790,7 @@ Name | Type | Description | Notes
787790
------------- | ------------- | ------------- | -------------
788791
**identifier** | **String**| Email (urlencoded) OR ID of the contact |
789792
**startDate** | **String**| Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate | [optional]
790-
**endDate** | **String**| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate | [optional]
793+
**endDate** | **String**| Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. Maximum difference between startDate and endDate should not be greater than 90 days | [optional]
791794

792795
### Return type
793796

@@ -1483,6 +1486,64 @@ null (empty response body)
14831486

14841487
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
14851488

1489+
### HTTP request headers
1490+
1491+
- **Content-Type**: application/json
1492+
- **Accept**: application/json
1493+
1494+
<a name="updateBatchContacts"></a>
1495+
# **updateBatchContacts**
1496+
> updateBatchContacts(updateBatchContacts)
1497+
1498+
Update multiple contacts
1499+
1500+
### Example
1501+
```java
1502+
// Import classes:
1503+
//import sendinblue.ApiClient;
1504+
//import sendinblue.ApiException;
1505+
//import sendinblue.Configuration;
1506+
//import sendinblue.auth.*;
1507+
//import sibApi.ContactsApi;
1508+
1509+
ApiClient defaultClient = Configuration.getDefaultApiClient();
1510+
1511+
// Configure API key authorization: api-key
1512+
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
1513+
apiKey.setApiKey("YOUR API KEY");
1514+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
1515+
//apiKey.setApiKeyPrefix("Token");
1516+
1517+
// Configure API key authorization: partner-key
1518+
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
1519+
partnerKey.setApiKey("YOUR PARTNER KEY");
1520+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
1521+
//partnerKey.setApiKeyPrefix("Token");
1522+
1523+
ContactsApi apiInstance = new ContactsApi();
1524+
UpdateBatchContacts updateBatchContacts = new UpdateBatchContacts(); // UpdateBatchContacts | Values to update multiple contacts
1525+
try {
1526+
apiInstance.updateBatchContacts(updateBatchContacts);
1527+
} catch (ApiException e) {
1528+
System.err.println("Exception when calling ContactsApi#updateBatchContacts");
1529+
e.printStackTrace();
1530+
}
1531+
```
1532+
1533+
### Parameters
1534+
1535+
Name | Type | Description | Notes
1536+
------------- | ------------- | ------------- | -------------
1537+
**updateBatchContacts** | [**UpdateBatchContacts**](UpdateBatchContacts.md)| Values to update multiple contacts |
1538+
1539+
### Return type
1540+
1541+
null (empty response body)
1542+
1543+
### Authorization
1544+
1545+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
1546+
14861547
### HTTP request headers
14871548

14881549
- **Content-Type**: application/json

docs/CreateSmsCampaign.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**content** | **String** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS |
1010
**recipients** | [**CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional]
1111
**scheduledAt** | **String** | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional]
12+
**unicodeEnabled** | **Boolean** | Format of the message. It indicates whether the content should be treated as unicode or not. | [optional]
1213

1314

1415

docs/CreateSubAccount.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
# CreateSubAccount
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**companyName** | **String** | Name of the organization |
8+
**email** | **String** | Email address for the organization |
9+
**language** | [**LanguageEnum**](#LanguageEnum) | Language for identifying localization information | [optional]
10+
**timezone** | **String** | Request timezone of the client | [optional]
11+
12+
13+
<a name="LanguageEnum"></a>
14+
## Enum: LanguageEnum
15+
Name | Value
16+
---- | -----
17+
EN | &quot;en&quot;
18+
FR | &quot;fr&quot;
19+
IT | &quot;it&quot;
20+
ES | &quot;es&quot;
21+
PT | &quot;pt&quot;
22+
DE | &quot;de&quot;
23+
24+
25+

docs/CreateWebhook.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**url** | **String** | URL of the webhook |
88
**description** | **String** | Description of the webhook | [optional]
9-
**events** | [**List&lt;EventsEnum&gt;**](#List&lt;EventsEnum&gt;) | Events triggering the webhook. Possible values for Transactional type webhook &#x60;sent&#x60; OR &#x60;request&#x60;, &#x60;delivered&#x60;, &#x60;hardBounce&#x60;, &#x60;softBounce&#x60;, &#x60;blocked&#x60;, &#x60;spam&#x60;, &#x60;invalid&#x60;, &#x60;deferred&#x60;, &#x60;click&#x60;, &#x60;opened&#x60;, &#x60;uniqueOpened&#x60; and &#x60;unsubscribed&#x60; and possible values for Marketing type webhook &#x60;spam&#x60;, &#x60;opened&#x60;, &#x60;click&#x60;, &#x60;hardBounce&#x60;, &#x60;softBounce&#x60;, &#x60;unsubscribed&#x60;, &#x60;listAddition&#x60; &amp; &#x60;delivered&#x60; |
9+
**events** | [**List&lt;EventsEnum&gt;**](#List&lt;EventsEnum&gt;) | - Events triggering the webhook. Possible values for **Transactional** type webhook: #### &#x60;sent&#x60; OR &#x60;request&#x60;, &#x60;delivered&#x60;, &#x60;hardBounce&#x60;, &#x60;softBounce&#x60;, &#x60;blocked&#x60;, &#x60;spam&#x60;, &#x60;invalid&#x60;, &#x60;deferred&#x60;, &#x60;click&#x60;, &#x60;opened&#x60;, &#x60;uniqueOpened&#x60; and &#x60;unsubscribed&#x60; - Possible values for **Marketing** type webhook: #### &#x60;spam&#x60;, &#x60;opened&#x60;, &#x60;click&#x60;, &#x60;hardBounce&#x60;, &#x60;softBounce&#x60;, &#x60;unsubscribed&#x60;, &#x60;listAddition&#x60; &amp; &#x60;delivered&#x60; - Possible values for **Inbound** type webhook: #### &#x60;inboundEmailProcessed&#x60; |
1010
**type** | [**TypeEnum**](#TypeEnum) | Type of the webhook | [optional]
11+
**domain** | **String** | Inbound domain of webhook, required in case of event type &#x60;inbound&#x60; | [optional]
1112

1213

1314
<a name="List<EventsEnum>"></a>
@@ -30,6 +31,7 @@ UNSUBSCRIBED | &quot;unsubscribed&quot;
3031
LISTADDITION | &quot;listAddition&quot;
3132
CONTACTUPDATED | &quot;contactUpdated&quot;
3233
CONTACTDELETED | &quot;contactDeleted&quot;
34+
INBOUNDEMAILPROCESSED | &quot;inboundEmailProcessed&quot;
3335

3436

3537
<a name="TypeEnum"></a>
@@ -38,6 +40,7 @@ Name | Value
3840
---- | -----
3941
TRANSACTIONAL | &quot;transactional&quot;
4042
MARKETING | &quot;marketing&quot;
43+
INBOUND | &quot;inbound&quot;
4144

4245

4346

0 commit comments

Comments
 (0)