public class ApplicationClient extends AbstractClient
NexmoClient.getApplicationClient()httpWrapper| Constructor and Description |
|---|
ApplicationClient(HttpWrapper httpWrapper) |
| Modifier and Type | Method and Description |
|---|---|
Application |
createApplication(Application application)
Create a new application.
|
void |
deleteApplication(java.lang.String id)
Delete an application.
|
Application |
getApplication(java.lang.String id)
Retrieve an application.
|
ApplicationList |
listApplications()
List the first page of available applications.
|
ApplicationList |
listApplications(ListApplicationRequest listApplicationRequest)
List the available applications.
|
Application |
updateApplication(Application application)
Update an existing application.
|
public ApplicationClient(HttpWrapper httpWrapper)
public Application createApplication(Application application) throws NexmoResponseParseException, NexmoClientException
application - The application properties for the application to be created with.NexmoResponseParseException - if the response from the API could not be parsed.NexmoClientException - if there was a problem with the Nexmo request.public Application updateApplication(Application application) throws NexmoResponseParseException, NexmoClientException
application - The application properties for the application to be updated with.NexmoResponseParseException - if the response from the API could not be parsed.NexmoClientException - if there was a problem with the Nexmo request.public Application getApplication(java.lang.String id) throws NexmoResponseParseException, NexmoClientException
id - The id of the application to retrieve.NexmoResponseParseException - if the response from the API could not be parsed.NexmoClientException - if there was a problem with the Nexmo request.public void deleteApplication(java.lang.String id) throws NexmoResponseParseException, NexmoClientException
id - The id of the application to delete.NexmoResponseParseException - if the response from the API could not be parsed.NexmoClientException - if there was a problem with the Nexmo request.public ApplicationList listApplications() throws NexmoResponseParseException, NexmoClientException
NexmoResponseParseException - if the response from the API could not be parsed.NexmoClientException - if there was a problem with the Nexmo request.public ApplicationList listApplications(ListApplicationRequest listApplicationRequest) throws NexmoResponseParseException, NexmoClientException
listApplicationRequest - The page and number of applications per page to list.NexmoResponseParseException - if the response from the API could not be parsed.NexmoClientException - if there was a problem with the Nexmo request.