Start by setting up a Google Cloud project: https://developers.google.com/workspace/guides/create-project
Create an oath desktop app access: https://developers.google.com/workspace/guides/create-credentials
Create a service account: https://developers.google.com/workspace/guides/create-credentials#service-account
Make sure to save the service account json in the save folder as this project (DO NOT SHARE THIS!)
And then edit whatever options you want to use.