An open API service indexing awesome lists of open source software.

https://github.com/farnasirim/digest

Diffs of your notes in Google docs in your inbox (to be reviewed late at night)
https://github.com/farnasirim/digest

automation google google-docs google-docs-api google-drive google-drive-api note-taking

Last synced: 4 days ago
JSON representation

Diffs of your notes in Google docs in your inbox (to be reviewed late at night)

Awesome Lists containing this project

README

          

# Digest
Your changes to your google docs notes in your mailbox.

# Installation
```
go get -v github.com/farnasirim/digest/cmd/digest
go install github.com/farnasirim/digest/cmd/digest
```

## Usage
Have a look at
```
digest --help
```
First time usage:
Unfortunately setting up the google docs access token takes a few clicks and
keystrokes. See
[my blog post](https://blog.farnasirim.ir/2019/01/changes-to-my-notes-in-google-docs-sent.html)
for full instructions.
```
mkdir -p ~/.digest/auth/
cp $PATH_TO_GOOGLE_DRIVE_CREDENTIALS ~/.digest/auth/
digest --folder=$GOOGLE_DRIVE_FOLDER_NAME \
--smtp-user=you@domain.com \
--smtp-pass=yourpass \
--smtp-server-host=smtp.domain.com \
--persist-confs
```
Subsequent usages:
```
digest
```

Sample output:
```
Looking under folder "subjects" with id "folder-id"
Successfully written "Theoretical Computer Science" "doc-id"
Successfully written "Networks" "doc-id"
Successfully written "Scientific Papers" "doc-id"
Email sent successfully
```

Sample email content:

![email normal](doc/digest-email-normal.png)

Or when you haven't had any changes

![email empty](doc/digest-email-empty.png)

## License
MIT