faas-twitter-fanclub

Serverless polaroids - posted to Twitter for GitHub stars

MIT License

Stars
22

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 [email protected] or try out the integration by clicking "Star" on OpenFaaS