twitter

command module
v0.0.0-...-b30d404 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2024 License: MIT Imports: 12 Imported by: 0

README

Twitter Follower Integration

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.

Documentation

Overview

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL