Skip to content

This is an OpenFaaS function written in Python that makes use of the `tweepy` library to send a tweet from your Twitter account.

Notifications You must be signed in to change notification settings

felipecruz91/Send-Tweet-OpenFaaS-Function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Send tweet - OpenFaaS function

Description

This is an OpenFaaS function written in Python that makes use of the tweepy library to send a tweet from your Twitter account.

OpenFaaS Send Tweet function

Set up

  1. You will need to specify your Twitter app environment variables in the send-tweet.yml file.
  consumer_key: ""
  consumer_secret: ""
  access_token: ""
  access_token_secret: ""

If you do not have a Twitter App you can create one here.

  1. In the same file, you must set the gateway IP which should be your Raspberry Pi IP address.

gateway: http://<RASPBERRY_IP_ADDR>:8080

Build the function

faas-cli build -f ./send-tweet.yml

Upload the function to a remote registry (optional)

Note: before pushing to the Docker Hub, please go to the send-tweet.yml file and in the image property change the value from send-tweet to include your Docker Hub account - i.e. felipecruz/send-tweet

faas-cli push -f ./send-tweet.yml

Deploy the function

faas-cli deploy -f ./send-tweet.yml

About

This is an OpenFaaS function written in Python that makes use of the `tweepy` library to send a tweet from your Twitter account.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published