PipedreamHQ / pipedream

Connect APIs, remarkably fast. Free for developers.
https://pipedream.com
Other
8.96k stars 5.27k forks source link

[APP] New User Approve #9653

Open sergio-eliot-rodriguez opened 10 months ago

sergio-eliot-rodriguez commented 10 months ago

App New User Approve Website https://newuserapprove.com/ Note on outreach by email, copied sergio@pk integrations@pd

sergio-eliot-rodriguez commented 10 months ago

14 days follow up

sergio-eliot-rodriguez commented 10 months ago

They replied back and said a relevant team will check our request:

Thanks for reaching us,

Hope you are doing well, We’ve informed our technical team about your issue, and they will work on it promptly. When we receive their response, we will get back to you. Our team is here to assist you.

sergio-eliot-rodriguez commented 8 months ago

They provided documentation in terms of WordPress plug ins (see bellow). I uploaded their support ticket to pcloud

We do not have documentation for automation workflow platforms currently, but the given below detail help you out.

When a user registers, one of these hooks is used to insert a user ID and user status (such as pending, denied, auto-approved, or approved) into the database.

Hooks: //action hook for inserting new approved user into the database add_action( 'new_user_approve_user_approved', 'NUA_user_approved'); function NUA_user_approved($user) {}

//action hook for inserting the denied user into the database add_action( 'new_user_approve_user_denied', NUA_user_denied); function NUA_user_denied($user) {}

//filter hook for inserting the pending user into the database add_filter( 'new_user_approve_default_status', 'NUA_user_pending' 999, 2 ); function NUA_user_pending($status, $user_id){}

//action hook for inserting new user auto-approved via invitation into database add_action( 'nua_invited_user', 'user_auto_approved_via_inv_code', 15, 2 ); function user_auto_approved_via_inv_code( $user_id, $code_inv ) {}

// action hook for inserting new auto-approved via email domain/ whitelist into the database add_action( 'nua_whitelisted_users', 'user_auto_approved_via_whitelist', 15, 3 ); function NUA_user_auto_approved_via_whitelist($user_id, $email, $domain) {}

Using the Rest API Routes where Zapier retrieves/fetches the user's data from the database based on its triggers(pending, denied, approved, auto-approved-via-invitation, auto-approved-via-whitelist).

Action Hook: // registers the user routes according to user status (user_pending_route, user_approved_route etc) for fetching the users data. add_action( 'rest_api_init', 'NUA_register_routes'); function NUA_register_routes() {}