Skip to content

Commit 59b0a89

Browse files
authored
Merge pull request #6 from sendinblue/feature_mixed-updates
Delete single contact method added + get account response fix for reseller
2 parents 4fc4a72 + be892cc commit 59b0a89

File tree

164 files changed

+384
-174
lines changed

Some content is hidden

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

164 files changed

+384
-174
lines changed

README.md

Lines changed: 4 additions & 3 deletions
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>2.0.0</version>
25+
<version>2.0.1</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:2.0.0"
35+
compile "com.sendinblue:sib-api-v3-sdk:2.0.1"
3636
```
3737

3838
### Others
@@ -45,7 +45,7 @@ At first generate the JAR by executing:
4545

4646
Then manually install the following JARs:
4747

48-
* target/sib-api-v3-sdk-2.0.0.jar
48+
* target/sib-api-v3-sdk-2.0.1.jar
4949
* target/lib/*.jar
5050

5151
## Getting Started
@@ -103,6 +103,7 @@ Class | Method | HTTP request | Description
103103
*ContactsApi* | [**createFolder**](docs/ContactsApi.md#createFolder) | **POST** /contacts/folders | Create a folder
104104
*ContactsApi* | [**createList**](docs/ContactsApi.md#createList) | **POST** /contacts/lists | Create a list
105105
*ContactsApi* | [**deleteAttribute**](docs/ContactsApi.md#deleteAttribute) | **DELETE** /contacts/attributes/{attributeCategory}/{attributeName} | Deletes an attribute
106+
*ContactsApi* | [**deleteContact**](docs/ContactsApi.md#deleteContact) | **DELETE** /contacts/{email} | Deletes a contact
106107
*ContactsApi* | [**deleteFolder**](docs/ContactsApi.md#deleteFolder) | **DELETE** /contacts/folders/{folderId} | Delete a folder (and all its lists)
107108
*ContactsApi* | [**deleteList**](docs/ContactsApi.md#deleteList) | **DELETE** /contacts/lists/{listId} | Delete a list
108109
*ContactsApi* | [**getAttributes**](docs/ContactsApi.md#getAttributes) | **GET** /contacts/attributes | Lists all attributes

build.gradle

Lines changed: 1 addition & 1 deletion
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 = '2.0.0'
5+
version = '2.0.1'
66

77
buildscript {
88
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
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 := "2.0.0",
5+
version := "2.0.1",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/ContactsApi.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Method | HTTP request | Description
1010
[**createFolder**](ContactsApi.md#createFolder) | **POST** /contacts/folders | Create a folder
1111
[**createList**](ContactsApi.md#createList) | **POST** /contacts/lists | Create a list
1212
[**deleteAttribute**](ContactsApi.md#deleteAttribute) | **DELETE** /contacts/attributes/{attributeCategory}/{attributeName} | Deletes an attribute
13+
[**deleteContact**](ContactsApi.md#deleteContact) | **DELETE** /contacts/{email} | Deletes a contact
1314
[**deleteFolder**](ContactsApi.md#deleteFolder) | **DELETE** /contacts/folders/{folderId} | Delete a folder (and all its lists)
1415
[**deleteList**](ContactsApi.md#deleteList) | **DELETE** /contacts/lists/{listId} | Delete a list
1516
[**getAttributes**](ContactsApi.md#getAttributes) | **GET** /contacts/attributes | Lists all attributes
@@ -350,6 +351,58 @@ null (empty response body)
350351

351352
[api-key](../README.md#api-key)
352353

354+
### HTTP request headers
355+
356+
- **Content-Type**: application/json
357+
- **Accept**: application/json
358+
359+
<a name="deleteContact"></a>
360+
# **deleteContact**
361+
> deleteContact(email)
362+
363+
Deletes a contact
364+
365+
### Example
366+
```java
367+
// Import classes:
368+
//import sendinblue.ApiClient;
369+
//import sendinblue.ApiException;
370+
//import sendinblue.Configuration;
371+
//import sendinblue.auth.*;
372+
//import sibApi.ContactsApi;
373+
374+
ApiClient defaultClient = Configuration.getDefaultApiClient();
375+
376+
// Configure API key authorization: api-key
377+
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("api-key");
378+
apiKey.setApiKey("YOUR API KEY");
379+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
380+
//apiKey.setApiKeyPrefix("Token");
381+
382+
ContactsApi apiInstance = new ContactsApi();
383+
String email = "email_example"; // String | Email (urlencoded) of the contact
384+
try {
385+
apiInstance.deleteContact(email);
386+
} catch (ApiException e) {
387+
System.err.println("Exception when calling ContactsApi#deleteContact");
388+
e.printStackTrace();
389+
}
390+
```
391+
392+
### Parameters
393+
394+
Name | Type | Description | Notes
395+
------------- | ------------- | ------------- | -------------
396+
**email** | **String**| Email (urlencoded) of the contact |
397+
398+
### Return type
399+
400+
null (empty response body)
401+
402+
### Authorization
403+
404+
[api-key](../README.md#api-key)
405+
353406
### HTTP request headers
354407

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

docs/GetAccountPlan.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**type** | [**TypeEnum**](#TypeEnum) | Displays the plan type of the user |
8-
**creditsType** | [**CreditsTypeEnum**](#CreditsTypeEnum) | This is the type of the credit, \&quot;User Limit\&quot; or \&quot;Send Limit\&quot; are two possible types of credit of a user. \&quot;User Limit\&quot; implies the total number of subscribers you can add to your account, and \&quot;Send Limit\&quot; implies the total number of emails you can send to the subscribers in your account. |
9-
**credits** | **Float** | Remaining credits of the user. This can either be \&quot;User Limit\&quot; or \&quot;Send Limit\&quot; depending on the plan. |
8+
**creditsType** | [**CreditsTypeEnum**](#CreditsTypeEnum) | This is the type of the credit, \&quot;Send Limit\&quot; is one of the possible types of credit of a user. \&quot;Send Limit\&quot; implies the total number of emails you can send to the subscribers in your account. |
9+
**credits** | **Float** | Remaining credits of the user |
1010
**startDate** | **LocalDate** | Date of the period from which the plan will start (only available for \&quot;subscription\&quot;, \&quot;unlimited\&quot; and \&quot;reseller\&quot; plan type) | [optional]
1111
**endDate** | **LocalDate** | Date of the period from which the plan will end (only available for \&quot;subscription\&quot;, \&quot;unlimited\&quot; and \&quot;reseller\&quot; plan type) | [optional]
12+
**userLimit** | **Integer** | Only in case of reseller account. It implies the total number of child accounts you can add to your account. | [optional]
1213

1314

1415
<a name="TypeEnum"></a>
@@ -27,7 +28,6 @@ RESELLER | &quot;reseller&quot;
2728
## Enum: CreditsTypeEnum
2829
Name | Value
2930
---- | -----
30-
USERLIMIT | &quot;userLimit&quot;
3131
SENDLIMIT | &quot;sendLimit&quot;
3232

3333

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>sib-api-v3-sdk</artifactId>
66
<packaging>jar</packaging>
77
<name>sib-api-v3-sdk</name>
8-
<version>2.0.0</version>
8+
<version>2.0.1</version>
99
<url>https://github.com/sendinblue/APIv3-java-library</url>
1010
<description>SendinBlue&#39;s API v3 Java Library</description>
1111
<scm>

src/main/java/sendinblue/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public ApiClient() {
8585
json = new Json();
8686

8787
// Set default User-Agent.
88-
setUserAgent("Swagger-Codegen/2.0.0/java");
88+
setUserAgent("Swagger-Codegen/2.0.1/java");
8989

9090
// Setup authentications (key: authentication name, value: authentication).
9191
authentications = new HashMap<String, Authentication>();

src/main/java/sendinblue/ApiException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import java.util.Map;
1717
import java.util.List;
1818

19-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-03-23T10:53:13.078+05:30")
19+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-04-13T14:27:50.128+05:30")
2020
public class ApiException extends Exception {
2121
private int code = 0;
2222
private Map<String, List<String>> responseHeaders = null;

src/main/java/sendinblue/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
package sendinblue;
1515

16-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-03-23T10:53:13.078+05:30")
16+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-04-13T14:27:50.128+05:30")
1717
public class Configuration {
1818
private static ApiClient defaultApiClient = new ApiClient();
1919

src/main/java/sendinblue/Pair.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
package sendinblue;
1515

16-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-03-23T10:53:13.078+05:30")
16+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-04-13T14:27:50.128+05:30")
1717
public class Pair {
1818
private String name = "";
1919
private String value = "";

0 commit comments

Comments
 (0)