Jun 11, 2020
I wrote in Dutch and in English a variation on Sven's work. As noticed by others (Phil & Nicole) the code needed a bit of fixing, but more important became the config via the Google console. Even if the function is well written, you need to set the permissions right to make it work for you.