import 'package:halo_client/api.dart';
All URIs are relative to http://localhost:8091
Method | HTTP request | Description |
---|---|---|
fetchSenderConfig | GET /apis/api.console.halo.run/v1alpha1/notifiers/{name}/sender-config | |
saveSenderConfig | POST /apis/api.console.halo.run/v1alpha1/notifiers/{name}/sender-config | |
verifyEmailSenderConfig | POST /apis/console.api.notification.halo.run/v1alpha1/notifiers/default-email-notifier/verify-connection |
JsonObject fetchSenderConfig(name)
Fetch sender config of notifier
import 'package:halo_client/api.dart';
// TODO Configure HTTP basic authorization: basicAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').password = 'YOUR_PASSWORD';
final api = HaloClient().getNotifierV1alpha1ConsoleApi();
final String name = name_example; // String | Notifier name
try {
final response = api.fetchSenderConfig(name);
print(response);
} catch on DioException (e) {
print('Exception when calling NotifierV1alpha1ConsoleApi->fetchSenderConfig: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Notifier name |
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
saveSenderConfig(name, body)
Save sender config of notifier
import 'package:halo_client/api.dart';
// TODO Configure HTTP basic authorization: basicAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').password = 'YOUR_PASSWORD';
final api = HaloClient().getNotifierV1alpha1ConsoleApi();
final String name = name_example; // String | Notifier name
final JsonObject body = Object; // JsonObject |
try {
api.saveSenderConfig(name, body);
} catch on DioException (e) {
print('Exception when calling NotifierV1alpha1ConsoleApi->saveSenderConfig: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
name | String | Notifier name | |
body | JsonObject |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
verifyEmailSenderConfig(emailConfigValidationRequest)
Verify email sender config.
import 'package:halo_client/api.dart';
// TODO Configure HTTP basic authorization: basicAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').password = 'YOUR_PASSWORD';
final api = HaloClient().getNotifierV1alpha1ConsoleApi();
final EmailConfigValidationRequest emailConfigValidationRequest = ; // EmailConfigValidationRequest |
try {
api.verifyEmailSenderConfig(emailConfigValidationRequest);
} catch on DioException (e) {
print('Exception when calling NotifierV1alpha1ConsoleApi->verifyEmailSenderConfig: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
emailConfigValidationRequest | EmailConfigValidationRequest |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]