-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tidy up as per latest change in google-workspace mod
- Loading branch information
1 parent
80cc31d
commit 2aaf332
Showing
5 changed files
with
16 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
# Send Top "Show HN" Stories From Hacker News | ||
# Transform Data in Google Spreadsheet | ||
|
||
Send an email every day at 12 PM UTC showing the top "Show HN" stories from Hacker News ordered by score. | ||
Find and replace text across all google spreadsheets. | ||
|
||
## Usage | ||
|
||
- Add your SendGrid API key to `flowpipe.pvars` | ||
- Run the pipeline and specify `to` and `from`, e.g., `flowpipe pipeline run send_top_show_hn_email --pipeline-arg '[email protected]' --pipeline-arg '[email protected]'` | ||
- You can specify the number of stories with `--pipeline-arg hn_story_count=10` | ||
- Add your access token to `flowpipe.pvars`. Refer [here](https://cloud.google.com/sdk/gcloud/reference/auth/application-default/print-access-token), how to generate access token | ||
- Run the pipeline and specify required tex in `find_text` and `replace_text`, e.g., | ||
|
||
``` | ||
flowpipe pipeline run find_replace_text_in_googlesheets --arg find_text="APPLE" --arg replace_text="ORANGE" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
code="4/0AfJohXkXoFtU04sI2yP1NToQ5h2PHeiJsjEb3LJEgcRKSbnWg1zL4vvJCV8u9Pz2xQji3Q" | ||
client_id="979620411234-okqtslbrgpsvspnu0040b8n8a1voiqo0.apps.googleusercontent.com" | ||
client_secret="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" | ||
access_token="ya29.a0AfB_byCZuOFFFF-TIRfla-_Ya0HNC5aSM-Zwqx1dU4XYKllFpijYT0k7NO3l7tbnPed2jIHiEyrZNSfui7DU9DHBh4bo8yRtTnGK2L3OJxiRtWBUc16s7lEU3mKcdyxl2ROlZg7v1SWGNwC2D7QBKE-4Kkn8xB2j9iiraCgYKAUQSARISFQHGX2Mi-kC-fZK1s4V56VXHUAgnbA0171" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,4 @@ | ||
variable "code" { | ||
description = "The authorization code generated for accessing the token." | ||
type = string | ||
# TODO: Add once supported | ||
# sensitive = true | ||
} | ||
|
||
variable "client_id" { | ||
description = "The client ID generated for accessing the token." | ||
type = string | ||
# TODO: Add once supported | ||
# sensitive = true | ||
} | ||
|
||
variable "client_secret" { | ||
description = "The client secret generated for accessing the token." | ||
type = string | ||
# TODO: Add once supported | ||
# sensitive = true | ||
} | ||
|
||
variable "access_token" { | ||
description = "The access token used for authentication." | ||
type = string | ||
# TODO: Add once supported | ||
# sensitive = true | ||
} |