All URIs are relative to https://api.mimepost.com/v1/
Method | HTTP request | Description |
---|---|---|
accountProfileGet | GET /account/profile/ | Get account profile details |
accountProfilePost | POST /account/profile/ | Update account profile details |
settingsGet | GET /settings/ | Get all the settings |
settingsPost | POST /settings/ | Set a setting |
AccountProfileResponse accountProfileGet()
Get account profile details
// Import classes:
//import com.mimepost.ApiClient;
//import com.mimepost.ApiException;
//import com.mimepost.Configuration;
//import com.mimepost.auth.*;
//import io.swagger.client.api.AccountsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
AccountsApi apiInstance = new AccountsApi();
try {
AccountProfileResponse result = apiInstance.accountProfileGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#accountProfileGet");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
ModelApiResponse accountProfilePost(body)
Update account profile details
// Import classes:
//import com.mimepost.ApiClient;
//import com.mimepost.ApiException;
//import com.mimepost.Configuration;
//import com.mimepost.auth.*;
//import io.swagger.client.api.AccountsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
AccountsApi apiInstance = new AccountsApi();
AccountProfile body = new AccountProfile(); // AccountProfile |
try {
ModelApiResponse result = apiInstance.accountProfilePost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#accountProfilePost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | AccountProfile |
- Content-Type: application/json
- Accept: application/json
AccountSettings settingsGet()
Get all the settings
// Import classes:
//import com.mimepost.ApiClient;
//import com.mimepost.ApiException;
//import com.mimepost.Configuration;
//import com.mimepost.auth.*;
//import io.swagger.client.api.AccountsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
AccountsApi apiInstance = new AccountsApi();
try {
AccountSettings result = apiInstance.settingsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#settingsGet");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
ModelApiResponse settingsPost(body)
Set a setting
// Import classes:
//import com.mimepost.ApiClient;
//import com.mimepost.ApiException;
//import com.mimepost.Configuration;
//import com.mimepost.auth.*;
//import io.swagger.client.api.AccountsApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: api_key
ApiKeyAuth api_key = (ApiKeyAuth) defaultClient.getAuthentication("api_key");
api_key.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.setApiKeyPrefix("Token");
AccountsApi apiInstance = new AccountsApi();
AccountSettings body = new AccountSettings(); // AccountSettings |
try {
ModelApiResponse result = apiInstance.settingsPost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountsApi#settingsPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | AccountSettings |
- Content-Type: application/json
- Accept: application/json