diff --git a/README.md b/README.md index f0d23f1..684da9e 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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 @@ -21,7 +21,7 @@ compile "com.messente.api:messente-api:3.0.1" com.messente.api messente-api - 3.0.1 + 3.1.0 pom ``` @@ -29,7 +29,7 @@ compile "com.messente.api:messente-api:3.0.1" ### Ivy ```xml - + ``` @@ -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 diff --git a/api/openapi.yaml b/api/openapi.yaml index 386b064..fdb228a 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -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 @@ -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: @@ -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: diff --git a/build.gradle b/build.gradle index 7ce6ffc..33d3840 100644 --- a/build.gradle +++ b/build.gradle @@ -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 { diff --git a/build.sbt b/build.sbt index 7bb20ed..c56e880 100644 --- a/build.sbt +++ b/build.sbt @@ -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"), diff --git a/docs/DeliveryReportApi.md b/docs/DeliveryReportApi.md index 2b71f2d..110cb4f 100644 --- a/docs/DeliveryReportApi.md +++ b/docs/DeliveryReportApi.md @@ -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 | - | diff --git a/docs/OmnimessageApi.md b/docs/OmnimessageApi.md index 84d0c88..c58c90f 100644 --- a/docs/OmnimessageApi.md +++ b/docs/OmnimessageApi.md @@ -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 | - | @@ -141,4 +142,5 @@ public class Example { |-------------|-------------|------------------| | **201** | Omnimessage success response | - | | **400** | Invalid input | - | +| **401** | Unauthorized | - | diff --git a/pom.xml b/pom.xml index 6f96cdc..f24a050 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ messente-api jar messente-api - 3.0.1 + 3.1.0 https://github.com/messente/messente-api-java Java library for Messente API diff --git a/src/main/java/com/messente/ApiClient.java b/src/main/java/com/messente/ApiClient.java index 3dd35b4..ae6899d 100644 --- a/src/main/java/com/messente/ApiClient.java +++ b/src/main/java/com/messente/ApiClient.java @@ -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(); } diff --git a/src/main/java/com/messente/api/DeliveryReportApi.java b/src/main/java/com/messente/api/DeliveryReportApi.java index 2b7513b..ca2cc65 100644 --- a/src/main/java/com/messente/api/DeliveryReportApi.java +++ b/src/main/java/com/messente/api/DeliveryReportApi.java @@ -85,6 +85,7 @@ public void setCustomBaseUrl(String customBaseUrl) { +
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 -
*/ @@ -158,6 +159,7 @@ private okhttp3.Call retrieveDeliveryReportValidateBeforeCall(UUID omnimessageId +
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 -
*/ @@ -176,6 +178,7 @@ public DeliveryReportResponse retrieveDeliveryReport(UUID omnimessageId) throws +
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 -
*/ @@ -196,6 +199,7 @@ public ApiResponse retrieveDeliveryReportWithHttpInfo(UU +
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 -
*/ diff --git a/src/main/java/com/messente/api/OmnimessageApi.java b/src/main/java/com/messente/api/OmnimessageApi.java index af5b50d..e9d1f83 100644 --- a/src/main/java/com/messente/api/OmnimessageApi.java +++ b/src/main/java/com/messente/api/OmnimessageApi.java @@ -86,6 +86,7 @@ public void setCustomBaseUrl(String customBaseUrl) { +
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 -
*/ @@ -159,6 +160,7 @@ private okhttp3.Call cancelScheduledMessageValidateBeforeCall(UUID omnimessageId +
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 -
*/ @@ -177,6 +179,7 @@ public Object cancelScheduledMessage(UUID omnimessageId) throws ApiException { +
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 -
*/ @@ -197,6 +200,7 @@ public ApiResponse cancelScheduledMessageWithHttpInfo(UUID omnimessageId +
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 -
*/ @@ -218,6 +222,7 @@ public okhttp3.Call cancelScheduledMessageAsync(UUID omnimessageId, final ApiCal Status Code Description Response Headers 201 Omnimessage success response - 400 Invalid input - + 401 Unauthorized - */ public okhttp3.Call sendOmnimessageCall(Omnimessage omnimessage, final ApiCallback _callback) throws ApiException { @@ -290,6 +295,7 @@ private okhttp3.Call sendOmnimessageValidateBeforeCall(Omnimessage omnimessage, Status Code Description Response Headers 201 Omnimessage success response - 400 Invalid input - + 401 Unauthorized - */ public OmniMessageCreateSuccessResponse sendOmnimessage(Omnimessage omnimessage) throws ApiException { @@ -308,6 +314,7 @@ public OmniMessageCreateSuccessResponse sendOmnimessage(Omnimessage omnimessage) Status Code Description Response Headers 201 Omnimessage success response - 400 Invalid input - + 401 Unauthorized - */ public ApiResponse sendOmnimessageWithHttpInfo(Omnimessage omnimessage) throws ApiException { @@ -328,6 +335,7 @@ public ApiResponse sendOmnimessageWithHttpInfo Status Code Description Response Headers 201 Omnimessage success response - 400 Invalid input - + 401 Unauthorized - */ public okhttp3.Call sendOmnimessageAsync(Omnimessage omnimessage, final ApiCallback _callback) throws ApiException {