Let’s Send Some Tweets With Lambda
Okay, so now is finally the point where this Twitter thing comes together. In this section, we’ll process the user’s authorization to have them follow us, as well as send them a tweet stating that they are successfully signed up!
How to make a session in DynamoDB
In this section, we’re just going to save some browsing information in a session (held in DynamoDB) and redirect the user to Twitter. Once we have a callback in place, we’ll use that session data to have our user follow us. We can also use that data to message that user later (we actually have the user DM themselves, explained in the next section) with some promotional news.
Syncing The Gateway
The api gateway has two things you should know about it.
- Integration Response manipulation is a twisted nightmare when combined with regexes if you aren’t very meticulous.
- It has no built-in version control of any kind.
We are going to use it manage our lambdas. Let’s begin.