Package com.vonage.client.application
Class ApplicationClient
java.lang.Object
com.vonage.client.application.ApplicationClient
A client for talking to the Vonage Application API. The standard way to obtain an instance of
this class is to use
VonageClient.getApplicationClient().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateApplication(Application application) Create a new application.voiddeleteApplication(String applicationId) Delete an application.getApplication(String applicationId) Retrieve an application.Lists the first 1000 available applications.Lists the first page of available applications.listApplications(ListApplicationRequest listApplicationRequest) List the available applications.updateApplication(Application application) Update an existing application.
-
Constructor Details
-
ApplicationClient
-
-
Method Details
-
createApplication
Create a new application.- Parameters:
application- The application properties for the application to be created with.- Returns:
- The application which has been created.
- Throws:
ApplicationResponseException- If there was an error processing the request.
-
updateApplication
Update an existing application.- Parameters:
application- The application properties for the application to be updated with.- Returns:
- The application which has been updated.
- Throws:
ApplicationResponseException- If there was an error processing the request.
-
getApplication
Retrieve an application.- Parameters:
applicationId- The UUID of the application to retrieve as a string.- Returns:
- The corresponding application.
- Throws:
ApplicationResponseException- If there was an error processing the request.
-
deleteApplication
Delete an application.- Parameters:
applicationId- The UUID of the application to delete as a string.- Throws:
ApplicationResponseException- If there was an error processing the request.
-
listAllApplications
Lists the first 1000 available applications.- Returns:
- The list of available applications.
- Throws:
ApplicationResponseException- If there was an error processing the request.- Since:
- 7.7.0
-
listApplications
Lists the first page of available applications.- Returns:
- The ApplicationList HAL response.
- Throws:
ApplicationResponseException- If there was an error processing the request.
-
listApplications
public ApplicationList listApplications(ListApplicationRequest listApplicationRequest) throws ApplicationResponseException List the available applications.- Parameters:
listApplicationRequest- The page and number of applications per page to list.- Returns:
- The ApplicationList HAL response.
- Throws:
ApplicationResponseException- If there was an error processing the request.
-