This code is to tweet an image and text from an AWS lambda. I used it to hook up my AWS IoT button to a twitter account.
- Download and install .NET Core.
- Create a twitter account, create an app for the account, and get the 4 credentials keys of the app.
- Create a
config.json
file in the project folder with the required attributes (seeexample_config.json
in the project). - Open a command line window and move to the project directory, run
dotnet restore
anddotnet publish
in the directory. - zip the resulting publish folder and load it into your Lambda.