-
Notifications
You must be signed in to change notification settings - Fork 21
Server
Igor Balos edited this page Nov 13, 2017
·
2 revisions
For these API requests you will need to use a server API token. Once you obtain it, you will need to use server API client.
ApiClient client = Postmark.getApiClient(<server token>);
Retrieve server:
// retrieve server
Server server = client.getServer();
String name = server.getName();
Update server details:
// update server
Server serverData = new Server();
serverData.setName("new name");
Server response = client.setServer(serverData);
For additional information about the capabilities of the Postmark API, see Postmark Developers Documentation.