gtalarico / pyairtable

Python Api Client for Airtable
https://pyairtable.readthedocs.io
MIT License
765 stars 138 forks source link

Webhook delete method #302

Closed dumitruPuggle closed 1 year ago

dumitruPuggle commented 1 year ago

Hello,

I'm currently relying on this sdk for python, and I've come across one question. Knowing the add_webhook method, could I use delete_webhook?

Apparently I wasn't able to find anything regarding this method:

base.delete_webhook(webhook.id)

Where can I find it?

Thanks

marks commented 1 year ago

I have not tested this hands-on, but from https://pyairtable.readthedocs.io/en/stable/api.html#pyairtable.models.Webhook, you should be able to do:

webhooks = base.webhooks()
webhooks[0].delete()

or get a specific webhook (well, pyairtable will filter the list for you) and then call the Webhook.delete method:

webhook = base.webhook(webhookId)
webhook.delete()
dumitruPuggle commented 1 year ago

Thanks