I want to run a node script as a cronjob that uses the Gmail API to poll the gmail account that I own.
I follow these quick start instructions :

I was stuck in the first step. When requesting credentials for a cron script, he tells me that "User data cannot be accessed from the platform without a user interface, because interaction requires a login to log in":

The docs are confusing in general and mention "service accounts", "OAuth" and other things - I canβt say which of them apply to my use case and which do not. I used many SaaS APIs, and a typical workflow is to log in to your account, get the API key and secret key and use them in your script to access the API. This does not seem to be the paradigm used by the Gmail API, so I would be grateful for any directions or links to clearer instructions.
Jonah source share