Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Messente API Library

- Messente API version: 2.0.0
- Java artifact version: 3.0.1
- Java artifact version: 3.1.0

[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.

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

```groovy
compile "com.messente.api:messente-api:3.0.1"
compile "com.messente.api:messente-api:3.1.0"
```

### Maven
Expand All @@ -21,15 +21,15 @@ compile "com.messente.api:messente-api:3.0.1"
<dependency>
<groupId>com.messente.api</groupId>
<artifactId>messente-api</artifactId>
<version>3.0.1</version>
<version>3.1.0</version>
<type>pom</type>
</dependency>
```

### Ivy

```xml
<dependency org='com.messente.api' name='messente-api' rev='3.0.1'>
<dependency org='com.messente.api' name='messente-api' rev='3.1.0'>
<artifact name='messente-api' ext='pom' ></artifact>
</dependency>
```
Expand All @@ -44,7 +44,7 @@ mvn clean package

Install

- `target/messente-api-3.0.1.jar`
- `target/messente-api-3.1.0.jar`
- `target/lib/*.jar`

## Features
Expand Down
18 changes: 18 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ paths:
schema:
$ref: '#/components/schemas/ErrorOmnichannel'
description: Invalid input
"401":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorOmnichannel'
description: Unauthorized
summary: Sends an Omnimessage
tags:
- Omnimessage
Expand All @@ -178,6 +184,12 @@ paths:
schema:
$ref: '#/components/schemas/DeliveryReportResponse'
description: Delivery report success
"401":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorOmnichannel'
description: Unauthorized
"404":
content:
application/json:
Expand Down Expand Up @@ -210,6 +222,12 @@ paths:
schema:
$ref: '#/components/schemas/EmptyObject'
description: Scheduled omnimessage successfully cancelled
"401":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorOmnichannel'
description: Unauthorized
"404":
content:
application/json:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'com.messente.api'
version = '3.0.1'
version = '3.1.0'


modifyPom {
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.messente.api",
name := "messente-api",
version := "3.0.1",
version := "3.1.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
1 change: 1 addition & 0 deletions docs/DeliveryReportApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@ public class Example {
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | Delivery report success | - |
| **401** | Unauthorized | - |
| **404** | If no such message exists or you do not have access to the particular message | - |

2 changes: 2 additions & 0 deletions docs/OmnimessageApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public class Example {
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **202** | Scheduled omnimessage successfully cancelled | - |
| **401** | Unauthorized | - |
| **404** | If the omnimessage has already been sent or no such message exists | - |

<a name="sendOmnimessage"></a>
Expand Down Expand Up @@ -141,4 +142,5 @@ public class Example {
|-------------|-------------|------------------|
| **201** | Omnimessage success response | - |
| **400** | Invalid input | - |
| **401** | Unauthorized | - |

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>messente-api</artifactId>
<packaging>jar</packaging>
<name>messente-api</name>
<version>3.0.1</version>
<version>3.1.0</version>
<url>https://github.com/messente/messente-api-java</url>
<description>Java library for Messente API</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/messente/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/3.0.1/java");
setUserAgent("OpenAPI-Generator/3.1.0/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/messente/api/DeliveryReportApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Delivery report success </td><td> - </td></tr>
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
<tr><td> 404 </td><td> If no such message exists or you do not have access to the particular message </td><td> - </td></tr>
</table>
*/
Expand Down Expand Up @@ -158,6 +159,7 @@ private okhttp3.Call retrieveDeliveryReportValidateBeforeCall(UUID omnimessageId
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Delivery report success </td><td> - </td></tr>
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
<tr><td> 404 </td><td> If no such message exists or you do not have access to the particular message </td><td> - </td></tr>
</table>
*/
Expand All @@ -176,6 +178,7 @@ public DeliveryReportResponse retrieveDeliveryReport(UUID omnimessageId) throws
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Delivery report success </td><td> - </td></tr>
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
<tr><td> 404 </td><td> If no such message exists or you do not have access to the particular message </td><td> - </td></tr>
</table>
*/
Expand All @@ -196,6 +199,7 @@ public ApiResponse<DeliveryReportResponse> retrieveDeliveryReportWithHttpInfo(UU
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 200 </td><td> Delivery report success </td><td> - </td></tr>
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
<tr><td> 404 </td><td> If no such message exists or you do not have access to the particular message </td><td> - </td></tr>
</table>
*/
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/messente/api/OmnimessageApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 202 </td><td> Scheduled omnimessage successfully cancelled </td><td> - </td></tr>
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
<tr><td> 404 </td><td> If the omnimessage has already been sent or no such message exists </td><td> - </td></tr>
</table>
*/
Expand Down Expand Up @@ -159,6 +160,7 @@ private okhttp3.Call cancelScheduledMessageValidateBeforeCall(UUID omnimessageId
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 202 </td><td> Scheduled omnimessage successfully cancelled </td><td> - </td></tr>
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
<tr><td> 404 </td><td> If the omnimessage has already been sent or no such message exists </td><td> - </td></tr>
</table>
*/
Expand All @@ -177,6 +179,7 @@ public Object cancelScheduledMessage(UUID omnimessageId) throws ApiException {
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 202 </td><td> Scheduled omnimessage successfully cancelled </td><td> - </td></tr>
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
<tr><td> 404 </td><td> If the omnimessage has already been sent or no such message exists </td><td> - </td></tr>
</table>
*/
Expand All @@ -197,6 +200,7 @@ public ApiResponse<Object> cancelScheduledMessageWithHttpInfo(UUID omnimessageId
<table summary="Response Details" border="1">
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 202 </td><td> Scheduled omnimessage successfully cancelled </td><td> - </td></tr>
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
<tr><td> 404 </td><td> If the omnimessage has already been sent or no such message exists </td><td> - </td></tr>
</table>
*/
Expand All @@ -218,6 +222,7 @@ public okhttp3.Call cancelScheduledMessageAsync(UUID omnimessageId, final ApiCal
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 201 </td><td> Omnimessage success response </td><td> - </td></tr>
<tr><td> 400 </td><td> Invalid input </td><td> - </td></tr>
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
</table>
*/
public okhttp3.Call sendOmnimessageCall(Omnimessage omnimessage, final ApiCallback _callback) throws ApiException {
Expand Down Expand Up @@ -290,6 +295,7 @@ private okhttp3.Call sendOmnimessageValidateBeforeCall(Omnimessage omnimessage,
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 201 </td><td> Omnimessage success response </td><td> - </td></tr>
<tr><td> 400 </td><td> Invalid input </td><td> - </td></tr>
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
</table>
*/
public OmniMessageCreateSuccessResponse sendOmnimessage(Omnimessage omnimessage) throws ApiException {
Expand All @@ -308,6 +314,7 @@ public OmniMessageCreateSuccessResponse sendOmnimessage(Omnimessage omnimessage)
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 201 </td><td> Omnimessage success response </td><td> - </td></tr>
<tr><td> 400 </td><td> Invalid input </td><td> - </td></tr>
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
</table>
*/
public ApiResponse<OmniMessageCreateSuccessResponse> sendOmnimessageWithHttpInfo(Omnimessage omnimessage) throws ApiException {
Expand All @@ -328,6 +335,7 @@ public ApiResponse<OmniMessageCreateSuccessResponse> sendOmnimessageWithHttpInfo
<tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
<tr><td> 201 </td><td> Omnimessage success response </td><td> - </td></tr>
<tr><td> 400 </td><td> Invalid input </td><td> - </td></tr>
<tr><td> 401 </td><td> Unauthorized </td><td> - </td></tr>
</table>
*/
public okhttp3.Call sendOmnimessageAsync(Omnimessage omnimessage, final ApiCallback<OmniMessageCreateSuccessResponse> _callback) throws ApiException {
Expand Down