getIntegrationsConnectors method
Lists the caller's OWN connectors across every provider — the set hanzo connector ls prints.
Lists the caller's OWN connectors across every provider — the set hanzo connector ls prints. Rows are keyed (org,user), so this can never surface another user's connector, and no secret is in the view.
Implementation
Future<ConnectorsOut?> getIntegrationsConnectors() async {
final response = await getIntegrationsConnectorsWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'ConnectorsOut',) as ConnectorsOut;
}
return null;
}