Skip to content
This repository was archived by the owner on Oct 19, 2021. It is now read-only.

Knockru/Spark

Repository files navigation

Spark

GitHub CircleCI

Spark will delete all tweets posted yesterday.

Information

If you want to change scheduled time, please change bindings.[0].schedule in spark/function.json.

Key Value
Trigger Timer
Schedule 00:30 (JST) on everyday

Environment Variables

If you set the following variables to Azure Key Vaults, use the value of the variable name corrected to the pascal case.
Example: SPARK_TWITTER_ACCESS_TOKEN is SparkTwitterAccessToken.

Variable Description Example
AZURE_CLIENT_ID Azure AD Application Client ID xxxxxx-...
AZURE_CLIENT_SECRET Azure AD Application Secret xxxxxx
AZURE_TENANT_ID Azure AD Tenant ID xxxxxx-...
SPARK_AZURE_KEY_VAULT_NAME Azure Key Vault Container Name container
SPARK_DRY_RUN Set to true, delete operation will be dry-run 1
SPARK_TWITTER_ACCESS_TOKEN Twitter Authorized Access Token xxxxxx
SPARK_TWITTER_ACCESS_TOKEN_SECRET Twitter Authorized Access Token Secret xxxxxx...
SPARK_TWITTER_CONSUMER_KEY Twitter Application Consumer Key xxxxxx
SPARK_TWITTER_CONSUMER_SECRET Twitter Application Consumer Secret xxxxxx
WEBSITE_TIME_ZONE Timezone of running this function Tokyo Standard Time

About

Spark will delete all tweets posted after 24 hours.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors