public class ApplicationClient extends java.lang.Object
NexmoClient.getApplicationClient().| Modifier and Type | Field and Description |
|---|---|
protected ApplicationsEndpoint |
applications |
| Constructor and Description |
|---|
ApplicationClient(HttpWrapper httpWrapper)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ApplicationDetails |
createApplication(CreateApplicationRequest request)
Create a new Application.
|
void |
deleteApplication(java.lang.String applicationId)
Delete an application.
|
ApplicationDetails |
getApplication(java.lang.String applicationId)
Obtain the details of an existing application.
|
ListApplicationsResponse |
listApplications(ListApplicationsRequest request)
List the applications associated with the authenticated account.
|
ApplicationDetails |
updateApplication(UpdateApplicationRequest request)
Update an existing application with the provided details.
|
protected ApplicationsEndpoint applications
public ApplicationClient(HttpWrapper httpWrapper)
httpWrapper - (required) shared HTTP wrapper object used for making REST calls.public ApplicationDetails createApplication(CreateApplicationRequest request) throws java.io.IOException, NexmoClientException
request - A CreateApplicationRequest describing the application to be created.java.io.IOExceptionNexmoClientExceptionpublic ApplicationDetails updateApplication(UpdateApplicationRequest request) throws java.io.IOException, NexmoClientException
request - An UpdateApplicationRequest describing the new application details.java.io.IOExceptionNexmoClientExceptionpublic ListApplicationsResponse listApplications(ListApplicationsRequest request) throws java.io.IOException, NexmoClientException
request - A ListApplicationsRequest object containing the required paging information.java.io.IOExceptionNexmoClientExceptionpublic ApplicationDetails getApplication(java.lang.String applicationId) throws java.io.IOException, NexmoClientException
applicationId - The id of the applicationjava.io.IOExceptionNexmoClientExceptionpublic void deleteApplication(java.lang.String applicationId) throws java.io.IOException, NexmoClientException
applicationId - The ID of the application to be deleted.java.io.IOExceptionNexmoClientException