deleteExternalAccountWithHttpInfo method

Future<Response> deleteExternalAccountWithHttpInfo(
  1. String userId,
  2. String externalAccountId
)

Delete External Account

Delete an external account by ID.

Note: This method returns the HTTP Response.

Parameters:

  • String userId (required): The ID of the user's external account

  • String externalAccountId (required): The ID of the external account to delete

Implementation

Future<http.Response> deleteExternalAccountWithHttpInfo(
  String userId,
  String externalAccountId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/users/{user_id}/external_accounts/{external_account_id}'
      .replaceAll('{user_id}', userId)
      .replaceAll('{external_account_id}', externalAccountId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'DELETE',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}