Skip to content

Commit 3c9afb7

Browse files
author
Erik Räni
authored
🎉 1.3.0 (#7)
**Added Functionality** - [phonebook-api][contacts] Add scheduled deletion date to response - The date (in ISO 8601 format, YYYY-MM-DD) on which the contact is going to be deleted because it has not belonged to a group for 30 days - [statistics-api] Allow fetching Telegram statistics **Bug Fixes** - [omnichannel-api] Declare error item source nullable - [omnichannel-api] Make cancelling a message return an empty object
1 parent 3e5ffe8 commit 3c9afb7

File tree

80 files changed

+131
-99
lines changed

Some content is hidden

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

80 files changed

+131
-99
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Messente API Library
22

3-
- Messente API version: 1.2.0
4-
- Java artifact version: 1.2.0
3+
- Messente API version: 1.3.0
4+
- Java artifact version: 1.3.0
55

66
[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
77

@@ -12,7 +12,7 @@ Install Messente API library via Maven, Gradle, Ivy or manual build.
1212
### Gradle
1313

1414
```groovy
15-
compile "com.messente.api:messente-api:1.2.0"
15+
compile "com.messente.api:messente-api:1.3.0"
1616
```
1717

1818
### Maven
@@ -21,15 +21,15 @@ compile "com.messente.api:messente-api:1.2.0"
2121
<dependency>
2222
<groupId>com.messente.api</groupId>
2323
<artifactId>messente-api</artifactId>
24-
<version>1.2.0</version>
24+
<version>1.3.0</version>
2525
<type>pom</type>
2626
</dependency>
2727
```
2828

2929
### Ivy
3030

3131
```xml
32-
<dependency org='com.messente.api' name='messente-api' rev='1.2.0'>
32+
<dependency org='com.messente.api' name='messente-api' rev='1.3.0'>
3333
<artifact name='messente-api' ext='pom' ></artifact>
3434
</dependency>
3535
```
@@ -44,7 +44,7 @@ mvn clean package
4444

4545
Install
4646

47-
- `target/messente-api-1.2.0.jar`
47+
- `target/messente-api-1.3.0.jar`
4848
- `target/lib/*.jar`
4949

5050
## Features

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.messente.api'
5-
version = '1.2.0'
5+
version = '1.3.0'
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.messente.api",
44
name := "messente-api",
5-
version := "1.2.0",
5+
version := "1.3.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/ContactFields.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**custom2** | **String** | The second custom field | [optional]
1515
**custom3** | **String** | The third custom field | [optional]
1616
**custom4** | **String** | The fourth custom field | [optional]
17+
**scheduledDeletionDate** | [**LocalDate**](LocalDate.md) | The date in ISO 8601 format, YYYY-MM-DD, on which the contact is going to be deleted because it has not belonged to a group for 30 days | [optional]
1718

1819

1920

docs/ContactsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ basicAuth.setUsername("YOUR USERNAME");
9191
basicAuth.setPassword("YOUR PASSWORD");
9292

9393
ContactsApi apiInstance = new ContactsApi();
94-
ContactFields contactFields = {"phoneNumber":"+37251000000","email":"[email protected]","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four"}; // ContactFields |
94+
ContactFields contactFields = {"phoneNumber":"+37251000000","email":"[email protected]","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four","scheduledDeletionDate":"2020-08-31"}; // ContactFields |
9595
try {
9696
ContactEnvelope result = apiInstance.createContact(contactFields);
9797
System.out.println(result);
@@ -404,7 +404,7 @@ basicAuth.setPassword("YOUR PASSWORD");
404404

405405
ContactsApi apiInstance = new ContactsApi();
406406
String phone = +37251000000; // String | A phone number
407-
ContactUpdateFields contactUpdateFields = {"email":"[email protected]","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four"}; // ContactUpdateFields |
407+
ContactUpdateFields contactUpdateFields = {"email":"[email protected]","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four","scheduledDeletionDate":"2020-08-31"}; // ContactUpdateFields |
408408
try {
409409
ContactEnvelope result = apiInstance.updateContact(phone, contactUpdateFields);
410410
System.out.println(result);

docs/OmnimessageApi.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Method | HTTP request | Description
1010

1111
<a name="cancelScheduledMessage"></a>
1212
# **cancelScheduledMessage**
13-
> cancelScheduledMessage(omnimessageId)
13+
> EmptyObject cancelScheduledMessage(omnimessageId)
1414
1515
Cancels a scheduled Omnimessage
1616

@@ -33,7 +33,8 @@ basicAuth.setPassword("YOUR PASSWORD");
3333
OmnimessageApi apiInstance = new OmnimessageApi();
3434
String omnimessageId = "omnimessageId_example"; // String | UUID of the scheduled omnimessage to be cancelled
3535
try {
36-
apiInstance.cancelScheduledMessage(omnimessageId);
36+
EmptyObject result = apiInstance.cancelScheduledMessage(omnimessageId);
37+
System.out.println(result);
3738
} catch (ApiException e) {
3839
System.err.println("Exception when calling OmnimessageApi#cancelScheduledMessage");
3940
e.printStackTrace();
@@ -48,7 +49,7 @@ Name | Type | Description | Notes
4849

4950
### Return type
5051

51-
null (empty response body)
52+
[**EmptyObject**](EmptyObject.md)
5253

5354
### Authorization
5455

docs/StatisticsReportSettings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**startDate** | [**LocalDate**](LocalDate.md) | Start date for the report |
88
**endDate** | [**LocalDate**](LocalDate.md) | End date for the report |
9-
**messageTypes** | **List&lt;String&gt;** | Optional list of message types (sms, viber, whatsapp, hlr) | [optional]
9+
**messageTypes** | **List&lt;String&gt;** | Optional list of message types (sms, viber, whatsapp, hlr, telegram) | [optional]
1010

1111

1212

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>messente-api</artifactId>
66
<packaging>jar</packaging>
77
<name>messente-api</name>
8-
<version>1.2.0</version>
8+
<version>1.3.0</version>
99
<url>https://github.com/messente/messente-api-java</url>
1010
<description>Java library for Messente API</description>
1111
<scm>

src/main/java/com/messente/ApiCallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Messente API
33
* [Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
44
*
5-
* OpenAPI spec version: 1.2.0
5+
* OpenAPI spec version: 1.3.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/com/messente/ApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Messente API
33
* [Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
44
*
5-
* OpenAPI spec version: 1.2.0
5+
* OpenAPI spec version: 1.3.0
66
* Contact: [email protected]
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -99,7 +99,7 @@ private void init() {
9999
json = new JSON();
100100

101101
// Set default User-Agent.
102-
setUserAgent("OpenAPI-Generator/1.2.0/java");
102+
setUserAgent("OpenAPI-Generator/1.3.0/java");
103103

104104
authentications = new HashMap<String, Authentication>();
105105
}

0 commit comments

Comments
 (0)