Skip to content

Commit 8b462a3

Browse files
Merge pull request #17 from sendinblue/AP-659
APIv3-java-library4.0.0
2 parents f92a642 + db1a541 commit 8b462a3

File tree

311 files changed

+9811
-1249
lines changed

Some content is hidden

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

311 files changed

+9811
-1249
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ hs_err_pid*
1919
target
2020
.gradle
2121
build
22+
.idea/
23+
target/

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ script:
1717
# - gradle test
1818
# uncomment below to test using sbt
1919
# - sbt test
20+
dist: trusty

LICENSE.md

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

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

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

77
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
88

9-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+58-11
Large diffs are not rendered by default.

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 = '3.0.1'
5+
version = '4.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 := "3.0.1",
5+
version := "4.0.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/AbTestCampaignResult.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
# AbTestCampaignResult
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**winningVersion** | [**WinningVersionEnum**](#WinningVersionEnum) | 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]
8+
**winningCriteria** | [**WinningCriteriaEnum**](#WinningCriteriaEnum) | Criteria choosen for winning version (Open/Click) | [optional]
9+
**winningSubjectLine** | **String** | Subject Line of current winning version | [optional]
10+
**openRate** | **String** | Open rate for current winning version | [optional]
11+
**clickRate** | **String** | Click rate for current winning version | [optional]
12+
**winningVersionRate** | **String** | Open/Click rate for the winner version | [optional]
13+
14+
15+
<a name="WinningVersionEnum"></a>
16+
## Enum: WinningVersionEnum
17+
Name | Value
18+
---- | -----
19+
NOTAVAILABLE | &quot;notAvailable&quot;
20+
PENDING | &quot;pending&quot;
21+
TIE | &quot;tie&quot;
22+
A | &quot;A&quot;
23+
B | &quot;B&quot;
24+
25+
26+
<a name="WinningCriteriaEnum"></a>
27+
## Enum: WinningCriteriaEnum
28+
Name | Value
29+
---- | -----
30+
OPEN | &quot;Open&quot;
31+
CLICK | &quot;Click&quot;
32+
33+
34+

docs/AccountApi.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ apiKey.setApiKey("YOUR API KEY");
3030
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
3131
//apiKey.setApiKeyPrefix("Token");
3232

33+
// Configure API key authorization: partner-key
34+
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
35+
partnerKey.setApiKey("YOUR PARTNER KEY");
36+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
37+
//partnerKey.setApiKeyPrefix("Token");
38+
3339
AccountApi apiInstance = new AccountApi();
3440
try {
3541
GetAccount result = apiInstance.getAccount();
@@ -49,7 +55,7 @@ This endpoint does not need any parameter.
4955

5056
### Authorization
5157

52-
[api-key](../README.md#api-key)
58+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
5359

5460
### HTTP request headers
5561

docs/AddChildDomain.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
# AddChildDomain
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**domain** | **String** | Sender domain to add for a specific child account | [optional]
8+
9+
10+

docs/AttributesApi.md

+31-7
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ ApiClient defaultClient = Configuration.getDefaultApiClient();
3131
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
3232
apiKey.setApiKey("YOUR API KEY");
3333
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
34-
//apiKey.setApiKeyPrefix("Token");
34+
//apikey.setApiKeyPrefix("Token");
35+
36+
// Configure API key authorization: partner-key
37+
ApiKeyAuth partnerkey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
38+
partnerkey.setApiKey("YOUR PARTNER KEY");
39+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
40+
//partner-key.setApiKeyPrefix("Token");
3541

3642
AttributesApi apiInstance = new AttributesApi();
3743
String attributeCategory = "attributeCategory_example"; // String | Category of the attribute
@@ -59,7 +65,7 @@ null (empty response body)
5965

6066
### Authorization
6167

62-
[api-key](../README.md#api-key)
68+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
6369

6470
### HTTP request headers
6571

@@ -87,7 +93,13 @@ ApiClient defaultClient = Configuration.getDefaultApiClient();
8793
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
8894
apiKey.setApiKey("YOUR API KEY");
8995
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
90-
//apiKey.setApiKeyPrefix("Token");
96+
//apikey.setApiKeyPrefix("Token");
97+
98+
// Configure API key authorization: partner-key
99+
ApiKeyAuth partnerkey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
100+
partnerkey.setApiKey("YOUR PARTNER KEY");
101+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
102+
//partner-key.setApiKeyPrefix("Token");
91103

92104
AttributesApi apiInstance = new AttributesApi();
93105
String attributeCategory = "attributeCategory_example"; // String | Category of the attribute
@@ -113,7 +125,7 @@ null (empty response body)
113125

114126
### Authorization
115127

116-
[api-key](../README.md#api-key)
128+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
117129

118130
### HTTP request headers
119131

@@ -141,7 +153,13 @@ ApiClient defaultClient = Configuration.getDefaultApiClient();
141153
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
142154
apiKey.setApiKey("YOUR API KEY");
143155
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
144-
//apiKey.setApiKeyPrefix("Token");
156+
//apikey.setApiKeyPrefix("Token");
157+
158+
// Configure API key authorization: partner-key
159+
ApiKeyAuth partnerkey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
160+
partnerkey.setApiKey("YOUR PARTNER KEY");
161+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
162+
//partner-key.setApiKeyPrefix("Token");
145163

146164
AttributesApi apiInstance = new AttributesApi();
147165
try {
@@ -162,7 +180,7 @@ This endpoint does not need any parameter.
162180

163181
### Authorization
164182

165-
[api-key](../README.md#api-key)
183+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
166184

167185
### HTTP request headers
168186

@@ -192,6 +210,12 @@ apiKey.setApiKey("YOUR API KEY");
192210
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
193211
//apiKey.setApiKeyPrefix("Token");
194212

213+
// Configure API key authorization: partner-key
214+
ApiKeyAuth partnerKey = (ApiKeyAuth) defaultClient.getAuthentication("partner-key");
215+
partnerKey.setApiKey("YOUR PARTNER KEY");
216+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
217+
//partner-key.setApiKeyPrefix("Token");
218+
195219
AttributesApi apiInstance = new AttributesApi();
196220
String attributeCategory = "attributeCategory_example"; // String | Category of the attribute
197221
String attributeName = "attributeName_example"; // String | Name of the existing attribute
@@ -218,7 +242,7 @@ null (empty response body)
218242

219243
### Authorization
220244

221-
[api-key](../README.md#api-key)
245+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
222246

223247
### HTTP request headers
224248

0 commit comments

Comments
 (0)