Building the API client library requires Maven to be installed.
To install the API client library to your local Maven repository, simply execute:
mvn installTo deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn deployRefer to the official documentation 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 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.AppsApi;
import java.io.File;
import java.util.*;
public class AppsApiExample {
public static void main(String[] args) {
AppsApi apiInstance = new AppsApi();
String app = "app_example"; // String | Name of the app.
try {
apiInstance.appsAppDelete(app);
} catch (ApiException e) {
System.err.println("Exception when calling AppsApi#appsAppDelete");
e.printStackTrace();
}
}
}All URIs are relative to https://127.0.0.1:8080/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AppsApi | appsAppDelete | DELETE /apps/{app} | Delete an app. |
| AppsApi | appsAppGet | GET /apps/{app} | Get information for a app. |
| AppsApi | appsAppPatch | PATCH /apps/{app} | Updates an app. |
| AppsApi | appsGet | GET /apps | Get all app names. |
| AppsApi | appsPost | POST /apps | Post new app |
| CallApi | appsAppCallsCallGet | GET /apps/{app}/calls/{call} | Get call information |
| CallApi | appsAppCallsCallLogGet | GET /apps/{app}/calls/{call}/log | Get call logs |
| CallApi | appsAppCallsGet | GET /apps/{app}/calls | Get app-bound calls. |
| LogApi | appsAppCallsCallLogGet | GET /apps/{app}/calls/{call}/log | Get call logs |
| RoutesApi | appsAppRoutesGet | GET /apps/{app}/routes | Get route list by app name. |
| RoutesApi | appsAppRoutesPost | POST /apps/{app}/routes | Create new Route |
| RoutesApi | appsAppRoutesRouteDelete | DELETE /apps/{app}/routes/{route} | Deletes the route |
| RoutesApi | appsAppRoutesRouteGet | GET /apps/{app}/routes/{route} | Gets route by name |
| RoutesApi | appsAppRoutesRoutePatch | PATCH /apps/{app}/routes/{route} | Update a Route, Fails if the route or app does not exist. Accepts partial updates / skips validation of zero values. |
| RoutesApi | appsAppRoutesRoutePut | PUT /apps/{app}/routes/{route} | Create a Route if it does not exist. Update if it does. Will also create app if it does not exist. Put does not skip validation of zero values |
- App
- AppWrapper
- AppsWrapper
- Call
- CallWrapper
- CallsWrapper
- Error
- ErrorBody
- Log
- LogWrapper
- Route
- RouteWrapper
- RoutesWrapper
- Stat
- StatMetrics
- Version
All endpoints do not require authorization. Authentication schemes defined for the API:
It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.