Skip to content

Commit

Permalink
Merge pull request #10 from sendinblue/feature_new-params
Browse files Browse the repository at this point in the history
Mixed spec updates
  • Loading branch information
ekta-slit authored Aug 27, 2018
2 parents c70b66c + 4fe252b commit f92a642
Show file tree
Hide file tree
Showing 22 changed files with 105 additions and 34 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.sendinblue</groupId>
<artifactId>sib-api-v3-sdk</artifactId>
<version>3.0.0</version>
<version>3.0.1</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -32,7 +32,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "com.sendinblue:sib-api-v3-sdk:3.0.0"
compile "com.sendinblue:sib-api-v3-sdk:3.0.1"
```

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

Then manually install the following JARs:

* target/sib-api-v3-sdk-3.0.0.jar
* target/sib-api-v3-sdk-3.0.1.jar
* target/lib/*.jar

## Getting Started
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'

group = 'com.sendinblue'
version = '3.0.0'
version = '3.0.1'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "com.sendinblue",
name := "sib-api-v3-sdk",
version := "3.0.0",
version := "3.0.1",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
3 changes: 2 additions & 1 deletion docs/CreateAttribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**value** | **String** | Value of the attribute. Use only if the attribute&#39;s category is &#39;calculated&#39; or &#39;global&#39; | [optional]
**enumeration** | [**List&lt;CreateAttributeEnumeration&gt;**](CreateAttributeEnumeration.md) | List of values and labels that the attribute can take. Use only if the attribute&#39;s category is \&quot;category\&quot;. For example, [{&#39;value&#39;:1, &#39;label&#39;:&#39;male&#39;}, {&#39;value&#39;:2, &#39;label&#39;:&#39;female&#39;}] | [optional]
**type** | [**TypeEnum**](#TypeEnum) | Type of the attribute. Use only if the attribute&#39;s category is &#39;normal&#39;, &#39;category&#39; or &#39;transactional&#39; ( type &#39;id&#39; is only available if the category is &#39;transactional&#39; attribute &amp; type &#39;category&#39; is only available if the category is &#39;category&#39; attribute ) | [optional]
**type** | [**TypeEnum**](#TypeEnum) | Type of the attribute. Use only if the attribute&#39;s category is &#39;normal&#39;, &#39;category&#39; or &#39;transactional&#39; ( type &#39;boolean&#39; is only available if the category is &#39;normal&#39; attribute, type &#39;id&#39; is only available if the category is &#39;transactional&#39; attribute &amp; type &#39;category&#39; is only available if the category is &#39;category&#39; attribute ) | [optional]


<a name="TypeEnum"></a>
Expand All @@ -16,6 +16,7 @@ Name | Value
TEXT | &quot;text&quot;
DATE | &quot;date&quot;
FLOAT | &quot;float&quot;
BOOLEAN | &quot;boolean&quot;
ID | &quot;id&quot;
CATEGORY | &quot;category&quot;

Expand Down
8 changes: 6 additions & 2 deletions docs/EmailCampaignsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ Name | Type | Description | Notes

<a name="getEmailCampaigns"></a>
# **getEmailCampaigns**
> GetEmailCampaigns getEmailCampaigns(type, status, limit, offset)
> GetEmailCampaigns getEmailCampaigns(type, status, startDate, endDate, limit, offset)
Return all your created campaigns

Expand All @@ -255,10 +255,12 @@ apiKey.setApiKey("YOUR API KEY");
EmailCampaignsApi apiInstance = new EmailCampaignsApi();
String type = "type_example"; // String | Filter on the type of the campaigns
String status = "status_example"; // String | Filter on the status of the campaign
OffsetDateTime startDate = new DateTime(); // DateTime | Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' )
OffsetDateTime endDate = new DateTime(); // DateTime | Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' )
Long limit = 500L; // Long | Number of documents per page
Long offset = 0L; // Long | Index of the first document in the page
try {
GetEmailCampaigns result = apiInstance.getEmailCampaigns(type, status, limit, offset);
GetEmailCampaigns result = apiInstance.getEmailCampaigns(type, status, startDate, endDate, limit, offset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EmailCampaignsApi#getEmailCampaigns");
Expand All @@ -272,6 +274,8 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**type** | **String**| Filter on the type of the campaigns | [optional] [enum: classic, trigger]
**status** | **String**| Filter on the status of the campaign | [optional] [enum: suspended, archive, sent, queued, draft, inProcess]
**startDate** | **OffsetDateTime**| Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either &#39;status&#39; not passed and if passed is set to &#39;sent&#39; ) | [optional]
**endDate** | **OffsetDateTime**| Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either &#39;status&#39; not passed and if passed is set to &#39;sent&#39; ) | [optional]
**limit** | **Long**| Number of documents per page | [optional] [default to 500]
**offset** | **Long**| Index of the first document in the page | [optional] [default to 0]

Expand Down
1 change: 1 addition & 0 deletions docs/GetEmailCampaign.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Name | Type | Description | Notes
**inlineImageActivation** | **Boolean** | Status of inline image. inlineImageActivation &#x3D; false means image can’t be embedded, &amp; inlineImageActivation &#x3D; true means image can be embedded, in the email. | [optional]
**mirrorActive** | **Boolean** | Status of mirror links in campaign. mirrorActive &#x3D; false means mirror links are deactivated, &amp; mirrorActive &#x3D; true means mirror links are activated, in the campaign | [optional]
**recurring** | **Boolean** | FOR TRIGGER ONLY ! Type of trigger campaign.recurring &#x3D; false means contact can receive the same Trigger campaign only once, &amp; recurring &#x3D; true means contact can receive the same Trigger campaign several times | [optional]
**sentDate** | [**OffsetDateTime**] | Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if &#39;status&#39; of the campaign is &#39;sent&#39; | [optional]
**recipients** | **Object** | |
**statistics** | **Object** | |

Expand Down
1 change: 1 addition & 0 deletions docs/GetExtendedCampaignOverview.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Name | Type | Description | Notes
**inlineImageActivation** | **Boolean** | Status of inline image. inlineImageActivation &#x3D; false means image can’t be embedded, &amp; inlineImageActivation &#x3D; true means image can be embedded, in the email. | [optional]
**mirrorActive** | **Boolean** | Status of mirror links in campaign. mirrorActive &#x3D; false means mirror links are deactivated, &amp; mirrorActive &#x3D; true means mirror links are activated, in the campaign | [optional]
**recurring** | **Boolean** | FOR TRIGGER ONLY ! Type of trigger campaign.recurring &#x3D; false means contact can receive the same Trigger campaign only once, &amp; recurring &#x3D; true means contact can receive the same Trigger campaign several times | [optional]
**sentDate** | [**OffsetDateTime**] | Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if &#39;status&#39; of the campaign is &#39;sent&#39; | [optional]


<a name="TypeEnum"></a>
Expand Down
2 changes: 1 addition & 1 deletion docs/SendTransacSms.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**sender** | **String** | Name of the sender. Only alphanumeric characters. No more than 11 characters |
**recipient** | **String** | Mobile number to send SMS with the country code |
**content** | **String** | Content of the message. If more than 160 characters long, multiple text messages will be sent |
**content** | **String** | Content of the message. If more than 160 characters long, will be sent as multiple text messages |
**type** | [**TypeEnum**](#TypeEnum) | Type of the SMS | [optional]
**tag** | **String** | Tag of the message | [optional]
**webUrl** | **String** | Webhook to call for each event triggered by the message (delivered etc.) | [optional]
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>sib-api-v3-sdk</artifactId>
<packaging>jar</packaging>
<name>sib-api-v3-sdk</name>
<version>3.0.0</version>
<version>3.0.1</version>
<url>https://github.com/sendinblue/APIv3-java-library</url>
<description>SendinBlue&#39;s API v3 Java Library</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/sendinblue/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public ApiClient() {
json = new Json();

// Set default User-Agent.
setUserAgent("Swagger-Codegen/3.0.0/java");
setUserAgent("Swagger-Codegen/3.0.1/java");

// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap<String, Authentication>();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/sendinblue/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import java.util.Map;
import java.util.List;

@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-05-24T12:07:09.251+05:30")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-24T17:45:47.569+05:30")
public class ApiException extends Exception {
private int code = 0;
private Map<String, List<String>> responseHeaders = null;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/sendinblue/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package sendinblue;

@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-05-24T12:07:09.251+05:30")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-24T17:45:47.569+05:30")
public class Configuration {
private static ApiClient defaultApiClient = new ApiClient();

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/sendinblue/Json.java
Original file line number Diff line number Diff line change
Expand Up @@ -363,4 +363,4 @@ public LocalDate read(JsonReader in) throws IOException {
}
}

}
}
2 changes: 1 addition & 1 deletion src/main/java/sendinblue/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package sendinblue;

@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-05-24T12:07:09.251+05:30")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-24T17:45:47.569+05:30")
public class Pair {
private String name = "";
private String value = "";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/sendinblue/StringUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package sendinblue;

@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-05-24T12:07:09.251+05:30")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-24T17:45:47.569+05:30")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/sendinblue/auth/ApiKeyAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import java.util.Map;
import java.util.List;

@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-05-24T12:07:09.251+05:30")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-24T17:45:47.569+05:30")
public class ApiKeyAuth implements Authentication {
private final String location;
private final String paramName;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/sendinblue/auth/OAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import java.util.Map;
import java.util.List;

@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-05-24T12:07:09.251+05:30")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-24T17:45:47.569+05:30")
public class OAuth implements Authentication {
private String accessToken;

Expand Down
Loading

0 comments on commit f92a642

Please sign in to comment.