import 'package:halo_client/api.dart';
All URIs are relative to http://localhost:8091
Method | HTTP request | Description |
---|---|---|
fetchReceiverConfig | GET /apis/api.notification.halo.run/v1alpha1/notifiers/{name}/receiver-config | |
saveReceiverConfig | POST /apis/api.notification.halo.run/v1alpha1/notifiers/{name}/receiver-config |
JsonObject fetchReceiverConfig(name)
Fetch receiver 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().getNotifierV1alpha1UcApi();
final String name = name_example; // String | Notifier name
try {
final response = api.fetchReceiverConfig(name);
print(response);
} catch on DioException (e) {
print('Exception when calling NotifierV1alpha1UcApi->fetchReceiverConfig: $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]
saveReceiverConfig(name, body)
Save receiver 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().getNotifierV1alpha1UcApi();
final String name = name_example; // String | Notifier name
final JsonObject body = Object; // JsonObject |
try {
api.saveReceiverConfig(name, body);
} catch on DioException (e) {
print('Exception when calling NotifierV1alpha1UcApi->saveReceiverConfig: $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]