get ( "StatusCode", 666 ) string_response = lambda_response. title () = "Event" : return None, lambda_response. dumps ( params ), ) # Async Invoke returns only StatusCode if invoke_type. invoke ( FunctionName = function_name, InvocationType = invoke_type, Payload = json. client ( "lambda" ) lambda_response = lambda_client. Import boto3 def invoke_lambda ( params, function_name, invoke_type ): lambda_client = boto3. Setting up a webhook that waits for data is as simple as standing up an API Gateway instance that can accept POSTs and attaching a Lambda to it. Go through the 'ahoy' onboarding as well. It will make you confirm both an existing email and existing phone number. If you haven't, read this guide I put together first. This article assumes you've already set up AWS SES email sending. If you're more familiar with SendGrid and Node.js, I recommend you check out this Twilio tutorial instead. You can then create rules to filter them from there. In the below walkthrough, I'll detail setting up a virtual phone number with Twilio, creating a webhook handling Lambda function, and forwarding incoming SMS and phone calls to an email address. Anyone who's made a political donation is familiar with the wave of unsolicited SMS's they get every election season. In many cases, you end up subscribed to lists that are quite difficult to opt out of. Think of all the times you've had to submit a phone number to get a promotional code, or an ebook download, or the love of your life at a bar. Tl dr: set up a pass-through phone number that forwards to anywhere Tagged software, AWS, SES, twilio, python, lambda, how-to, auth
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |