Daily Metrics Email
See this post for background: Building a Looker-Powered Daily Metrics Email Report .
Sending the Email
First, configure the constants at the top of
Then, set several environment variables (values you probably don't want to commit to your repo) before executing
$ env LOOKER_CLIENT_ID="..." LOOKER_CLIENT_SECRET="..." EMAIL_USER_NAME="..." EMAIL_PASSWORD="..." ruby run.rb
You'll want to customize the script according to your business's needs.
MIT © Matt Mazur