Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // find_bad_pwa_apps
- // find all apps in PWA where hooks still point to globiflow
- $tree = pwa_tree_get();
- $appIds = [];
- foreach ( $tree as $app ) {
- if ( sizeof($app["flows"]) == 0 ) {
- // we don't care about apps with no flows
- continue;
- }
- $appIds[] = $app["appId"];
- }
- $badApps = [];
- foreach ( $appIds as $appId ) {
- $hooks = podio_hooks_get_raw("app", $appId);
- foreach ( $hooks as $hook ) {
- if ( ! stristr($hook["url"], "globiflow.com") ) {
- continue;
- }
- if ( in_array($appId, $badApps) ) {
- continue;
- }
- $badApps[] = $appId;
- print "https://workflow-automation.podio.com/flows.php?app="+$appId;
- }
- }
- print "done";
Advertisement
Add Comment
Please, Sign In to add comment