Arad SMS Core Api V1
- API version: v1
- Build date: 2023-05-31T13:23:41.190784500+03:30[GMT+03:30]
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
Automatically generated by the Swagger Codegen
Building the API client library requires:
- Java 1.7+
- Maven/Gradle
To install the API client library to your local Maven repository, simply execute:
mvn clean install
To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn clean deploy
Refer to the OSSRH Guide for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-java-client</artifactId>
<version>1.0.0</version>
<scope>compile</scope>
</dependency>
Add this dependency to your project's build file:
compile "io.swagger:swagger-java-client:1.0.0"
At first generate the JAR by executing:
mvn clean package
Then manually install the following JARs:
target/swagger-java-client-1.0.0.jar
target/lib/*.jar
Please follow the installation instruction and execute the following Java code:
import io.swagger.client.; import io.swagger.client.auth.; import io.swagger.client.model.*; import io.swagger.client.api.MessageApi;
import java.io.File; import java.util.*;
public class MessageApiExample {
public static void main(String[] args) {
}
} import io.swagger.client.; import io.swagger.client.auth.; import io.swagger.client.model.*; import io.swagger.client.api.MessageApi;
import java.io.File; import java.util.*;
public class MessageApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
MessageApi apiInstance = new MessageApi();
List<String> body = Arrays.asList("body_example"); // List<String> |
Boolean returnLongId = true; // Boolean |
Boolean returnUDH = true; // Boolean |
String apiVersion = "apiVersion_example"; // String |
try {
apiInstance.apiMessageGetDLRPost(body, returnLongId, returnUDH, apiVersion);
} catch (ApiException e) {
System.err.println("Exception when calling MessageApi#apiMessageGetDLRPost");
e.printStackTrace();
}
}
} import io.swagger.client.; import io.swagger.client.auth.; import io.swagger.client.model.*; import io.swagger.client.api.MessageApi;
import java.io.File; import java.util.*;
public class MessageApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
MessageApi apiInstance = new MessageApi();
OffsetDateTime startDateTime = new OffsetDateTime(); // OffsetDateTime |
OffsetDateTime endDateTime = new OffsetDateTime(); // OffsetDateTime |
Boolean returnId = true; // Boolean |
String apiVersion = "apiVersion_example"; // String |
try {
apiInstance.apiMessageGetMOByDateGet(startDateTime, endDateTime, returnId, apiVersion);
} catch (ApiException e) {
System.err.println("Exception when calling MessageApi#apiMessageGetMOByDateGet");
e.printStackTrace();
}
}
} import io.swagger.client.; import io.swagger.client.auth.; import io.swagger.client.model.*; import io.swagger.client.api.MessageApi;
import java.io.File; import java.util.*;
public class MessageApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
MessageApi apiInstance = new MessageApi();
Boolean returnId = true; // Boolean |
String apiVersion = "apiVersion_example"; // String |
try {
apiInstance.apiMessageGetMOGet(returnId, apiVersion);
} catch (ApiException e) {
System.err.println("Exception when calling MessageApi#apiMessageGetMOGet");
e.printStackTrace();
}
}
} import io.swagger.client.; import io.swagger.client.auth.; import io.swagger.client.model.*; import io.swagger.client.api.MessageApi;
import java.io.File; import java.util.*;
public class MessageApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
MessageApi apiInstance = new MessageApi();
String destinationAddress = "destinationAddress_example"; // String |
String sourceAddress = "sourceAddress_example"; // String |
String messageText = "messageText_example"; // String |
Boolean returnLongId = true; // Boolean |
Integer port = 56; // Integer |
String referenceNumberType = "8bit"; // String |
OffsetDateTime validityPeriod = new OffsetDateTime(); // OffsetDateTime |
String apiVersion = "apiVersion_example"; // String |
try {
apiInstance.apiMessageSendGet(destinationAddress, sourceAddress, messageText, returnLongId, port, referenceNumberType, validityPeriod, apiVersion);
} catch (ApiException e) {
System.err.println("Exception when calling MessageApi#apiMessageSendGet");
e.printStackTrace();
}
}
} import io.swagger.client.; import io.swagger.client.auth.; import io.swagger.client.model.*; import io.swagger.client.api.MessageApi;
import java.io.File; import java.util.*;
public class MessageApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
MessageApi apiInstance = new MessageApi();
List<AradA2PMessage> body = Arrays.asList(new AradA2PMessage()); // List<AradA2PMessage> |
Boolean returnLongId = true; // Boolean |
String apiVersion = "apiVersion_example"; // String |
try {
apiInstance.apiMessageSendPost(body, returnLongId, apiVersion);
} catch (ApiException e) {
System.err.println("Exception when calling MessageApi#apiMessageSendPost");
e.printStackTrace();
}
}
}
## Documentation for API Endpoints
All URIs are relative to */*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*MessageApi* | [**apiMessageBulkPost**](docs/MessageApi.md#apiMessageBulkPost) | **POST** /api/message/bulk |
*MessageApi* | [**apiMessageGetDLRPost**](docs/MessageApi.md#apiMessageGetDLRPost) | **POST** /api/message/GetDLR |
*MessageApi* | [**apiMessageGetMOByDateGet**](docs/MessageApi.md#apiMessageGetMOByDateGet) | **GET** /api/message/GetMOByDate |
*MessageApi* | [**apiMessageGetMOGet**](docs/MessageApi.md#apiMessageGetMOGet) | **GET** /api/message/GetMO |
*MessageApi* | [**apiMessageSendGet**](docs/MessageApi.md#apiMessageSendGet) | **GET** /api/message/send |
*MessageApi* | [**apiMessageSendPost**](docs/MessageApi.md#apiMessageSendPost) | **POST** /api/message/send |
*MessagePatternApi* | [**apiPatternMessageSendMultiplePost**](docs/MessagePatternApi.md#apiPatternMessageSendMultiplePost) | **POST** /api/patternMessage/sendMultiple |
*MessagePatternApi* | [**apiPatternMessageSendPost**](docs/MessagePatternApi.md#apiPatternMessageSendPost) | **POST** /api/patternMessage/send |
*UserApi* | [**apiUserUserInfoGet**](docs/UserApi.md#apiUserUserInfoGet) | **GET** /api/user/UserInfo |
## Documentation for Models
- [AradA2PMessage](docs/AradA2PMessage.md)
- [AradBulkMessage](docs/AradBulkMessage.md)
- [DataCodings](docs/DataCodings.md)
- [MessageClass](docs/MessageClass.md)
- [PatternApiDto](docs/PatternApiDto.md)
- [Priority](docs/Priority.md)
## Documentation for Authorization
Authentication schemes defined for the API:
### OAuth2
- **Type**: OAuth
- **Flow**: password
- **Authorization URL**:
- **Scopes**:
- :
## Recommendation
It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues.
## Author