Last active
March 19, 2023 05:22
-
-
Save toshvelaga/4b9c8dd77b653530180f8a40a3637958 to your computer and use it in GitHub Desktop.
API that checks if user is an individual or a business. If user is a business sends an email notification. javascript implementation with axios
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
axios.post( | |
'https://7a6to3aeyb.execute-api.us-west-1.amazonaws.com/default/notify', | |
{ | |
email_of_user: 'USERS_THAT_REGISTERED_EMAIL_ADDRESS', | |
email_of_recepient: 'YOUR_EMAIL_ADDRESS_HERE', | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment