Discover Packages
github.com/raymonstah/asianamericanswiki/functions/twitter
command
module
Version:
v0.0.0-...-b17c353
Opens a new window with list of versions in this module.
Published: Jul 30, 2024
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Deploy with:
gcloud functions deploy twitter-sync --entry-point TwitterFollow --runtime go119 --trigger-event "providers/cloud.firestore/eventTypes/document.write" --trigger-resource "projects/asianamericans-wiki/databases/(default)/documents/humans/{human}" --memory 128mb --max-instances 1 \
--set-secrets=TWITTER_CONSUMER_KEY=projects/424340922093/secrets/firestore-twitter-follow-TWITTER_CONSUMER_KEY:latest \
--set-secrets=TWITTER_CONSUMER_SECRET=projects/424340922093/secrets/firestore-twitter-follow-TWITTER_CONSUMER_SECRET:latest \
--set-secrets=TWITTER_ACCESS_TOKEN=projects/424340922093/secrets/firestore-twitter-follow-TWITTER_ACCESS_TOKEN:latest \
--set-secrets=TWITTER_ACCESS_SECRET=projects/424340922093/secrets/firestore-twitter-follow-TWITTER_ACCESS_SECRET:latest \
--retry
todo: not part of CI pipeline yet.
Expand ▾
Collapse ▴
Documentation
¶
Package main is used and deployed as a Google cloud function.
It is triggered by any changes to the /humans collection in Firestore.
It then calls the Twitter API to follow/unfollow humans.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.