Skip to content

Instantly share code, notes, and snippets.

@toshvelaga
Last active March 19, 2023 05:22
Show Gist options
  • Save toshvelaga/ac736b2b7a78da9e7fe9b2d60bc2766d to your computer and use it in GitHub Desktop.
Save toshvelaga/ac736b2b7a78da9e7fe9b2d60bc2766d 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. cURL implementation
curl --location --request POST 'https://7a6to3aeyb.execute-api.us-west-1.amazonaws.com/default/notify' \
--header 'Content-Type: application/json' \
--data-raw '{
"email_of_user": "USER_THAT_REGISTERED_EMAIL_ADDRESS_HERE",
"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