Serverless polaroids - posted to Twitter for GitHub stars
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tweet-fanclub
tweet-stargazer
.gitignore
README.md
stack.yml

README.md

faas-twitter-fanclub

This is a set of Serverless functions for OpenFaaS that make a "Fanclub":

Here's how it works:

  • Star a GitHub repository (configured by placing a webhook in your settings page)
  • twitterfanclub function receives the JSON, downloads the user's avatar and posts it to S3
  • twitterstargazer is called with the path in S3 - invokes a polaroid function with the image and Tweets it

This is an example of function chaining and use of external storage for persistence. This is important because functions are stateless and ephermeral.

See also: Function Chaining

Dependencies:

Functions:

Your Twitter API tokens need to go into a twitter_secrets.yml file.

Example polaroids shared by alexellisuk_bot:

https://twitter.com/alexellisuk_bot/status/912020783337279488

  • Got questions or want to find out more?

Send an email over to alex@openfaas.com or try out the integration by clicking "Star" on OpenFaaS