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
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Generated by: https://github.com/swagger-api/swagger-codegen.git
# Generated by: https://openapi-generator.tech
#
language: java
jdk:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Telstra Messaging API
## Requirements

Building the API client library requires:
1. Java 1.7+
1. Java 1.8+
2. Maven/Gradle

## Installation
Expand Down
5 changes: 2 additions & 3 deletions docs/MessageSentResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**messages** | [**List<Message>**](Message.md) | An array of messages. |
**country** | **String** | An array of the countries to which the destination MSISDNs belong. | [optional]
**messageType** | **String** | This returns whether the message sent was a SMS or MMS. |
**numberSegments** | **Integer** | For SMS messages only, the value indicates the number of 160 character message segments sent. |
**numberNationalDestinations** | **Integer** | This returns the number of domestic Australian messages sent. | [optional]
**numberInternationalDestinations** | **Integer** | This returns the number of international messages sent | [optional]
**numberSegments** | **Integer** | For SMS messages only, the value indicates the number of 160 character message segments sent. |



12 changes: 4 additions & 8 deletions docs/MessagingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,7 @@ OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

MessagingApi apiInstance = new MessagingApi();
SendMmsRequest sendMmsRequest = new SendMmsRequest(); // SendMmsRequest | A JSON or XML payload containing the recipient's phone number and MMS message.
The recipient number should be in the format '04xxxxxxxx' where x is a digit.
SendMmsRequest sendMmsRequest = new SendMmsRequest(); // SendMmsRequest | A JSON or XML payload containing the recipient's phone number and MMS message. The recipient number should be in the format '04xxxxxxxx' where x is a digit.

try {
MessageSentResponse result = apiInstance.sendMMS(sendMmsRequest);
Expand All @@ -256,8 +255,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**sendMmsRequest** | [**SendMmsRequest**](SendMmsRequest.md)| A JSON or XML payload containing the recipient's phone number and MMS message.
The recipient number should be in the format '04xxxxxxxx' where x is a digit.
**sendMmsRequest** | [**SendMmsRequest**](SendMmsRequest.md)| A JSON or XML payload containing the recipient's phone number and MMS message. The recipient number should be in the format '04xxxxxxxx' where x is a digit.
|

### Return type
Expand Down Expand Up @@ -297,8 +295,7 @@ OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");

MessagingApi apiInstance = new MessagingApi();
SendSMSRequest sendSMSRequest = new SendSMSRequest(); // SendSMSRequest | A JSON or XML payload containing the recipient's phone number and text message.
This number can be in international format if preceeded by a ‘+’ or in national format ('04xxxxxxxx') where x is a digit.
SendSMSRequest sendSMSRequest = new SendSMSRequest(); // SendSMSRequest | A JSON or XML payload containing the recipient's phone number and text message. This number can be in international format if preceeded by a '+' or in national format ('04xxxxxxxx') where x is a digit.

try {
MessageSentResponse result = apiInstance.sendSMS(sendSMSRequest);
Expand All @@ -313,8 +310,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**sendSMSRequest** | [**SendSMSRequest**](SendSMSRequest.md)| A JSON or XML payload containing the recipient's phone number and text message.
This number can be in international format if preceeded by a ‘+’ or in national format ('04xxxxxxxx') where x is a digit.
**sendSMSRequest** | [**SendSMSRequest**](SendSMSRequest.md)| A JSON or XML payload containing the recipient's phone number and text message. This number can be in international format if preceeded by a '+' or in national format ('04xxxxxxxx') where x is a digit.
|

### Return type
Expand Down
1 change: 0 additions & 1 deletion docs/ProvisionNumberRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**activeDays** | **Integer** | The number of days before for which this number is provisioned. Usually this will be same as the plan you buy. | [optional]
**notifyURL** | **String** | A notification URL that will be POSTed to whenever a new message (e.g. a reply to a message sent) arrives at this destination address. If this is not provided then you can use the Get /sms or /mms API to poll for reply messages. *Please note that the notification URLs and the Get /sms or /mms call are exclusive. If a notification URL has been set then the GET call will not provide any useful information.* | [optional]
**callbackData** | **String** | A JSON that will be sent as the body in the POST to the notifyURL. This can be any meaningful data relevant to your application. | [optional]



4 changes: 2 additions & 2 deletions src/main/java/com/telstra/ApiCallback.java

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/main/java/com/telstra/ApiClient.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/ApiException.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/ApiResponse.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/Configuration.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/GzipRequestInterceptor.java

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions src/main/java/com/telstra/JSON.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/Pair.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/ProgressRequestBody.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/ProgressResponseBody.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/StringUtil.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/auth/ApiKeyAuth.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/auth/Authentication.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/auth/HttpBasicAuth.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/auth/OAuth.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/auth/OAuthFlow.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/messaging/AuthenticationApi.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/messaging/DeleteNumberRequest.java

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/messaging/InboundPollResponse.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/messaging/MMSContent.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/messaging/Message.java

Large diffs are not rendered by default.

84 changes: 30 additions & 54 deletions src/main/java/com/telstra/messaging/MessageSentResponse.java

Large diffs are not rendered by default.

28 changes: 10 additions & 18 deletions src/main/java/com/telstra/messaging/MessagingApi.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/messaging/OAuthResponse.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/messaging/OutboundPollResponse.java

Large diffs are not rendered by default.

32 changes: 4 additions & 28 deletions src/main/java/com/telstra/messaging/ProvisionNumberRequest.java

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/messaging/ProvisioningApi.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/messaging/SendMmsRequest.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/messaging/SendSMSRequest.java

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/main/java/com/telstra/messaging/Status.java

Large diffs are not rendered by default.