import 'package:halo_client/api.dart';
All URIs are relative to http://localhost:8091
Method | HTTP request | Description |
---|---|---|
listDevices | GET /apis/uc.api.security.halo.run/v1alpha1/devices | |
revokeDevice | DELETE /apis/uc.api.security.halo.run/v1alpha1/devices/{deviceId} |
BuiltList listDevices()
List all user devices
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().getDeviceV1alpha1UcApi();
try {
final response = api.listDevices();
print(response);
} catch on DioException (e) {
print('Exception when calling DeviceV1alpha1UcApi->listDevices: $e\n');
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
revokeDevice(deviceId)
Revoke a own device
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().getDeviceV1alpha1UcApi();
final String deviceId = deviceId_example; // String | Device ID
try {
api.revokeDevice(deviceId);
} catch on DioException (e) {
print('Exception when calling DeviceV1alpha1UcApi->revokeDevice: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
deviceId | String | Device ID |
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]