How do I get all the current webhooks that exist in a workspace.
I created a few webhooks on app_field updates , and had an error in my script. I accidentally created a loop that created 300 webhooks, I already deleted all them , but now to manage my webhooks I'm busy writing a script to manage all of my webhooks within our domain.
I can only request one app with one hook type (PodioHook::get_for) at a time , and whenever a new app is created I will have to manually update my script to manage all of my hooks across the domain. Is there a way I can request all the current webhooks that exist within my domain, or at least in a workspace?
-
I found a solution half way.
I authenticate with user pass , then get all app_ids of current user.
foreach app_id I use PodioHook::get_for('app',app_id)
This Display all webhooks for the current user. But it doesn't show 'app_field' webhooks.
Maybe there is a way i can get all app_fields within an app. and loop through to get all 'app_field' webhooks?
Please sign in to leave a comment.
Comments
2 comments