deleteWebhook method
Implementation
Future<void> deleteWebhook(String webhookId) async {
Options dioOptions = Options(
headers: {
"Authorization": "Bearer $apiKey",
"Accept": "application/vnd.api+json",
"Content-Type": "application/vnd.api+json",
},
);
try {
await dio.delete(
"https://api.lemonsqueezy.com/v1/webhooks/$webhookId",
options: dioOptions,
);
} catch (e) {
print('Error deleting webhook: $e');
}
}