I want to run a node script as a cronjob which uses Gmail\'s API to poll a gmail account I own.
I am following these quickstart instructions:
I\'m stuck
I also find that the documentation can be confusing at times, but what you want to to is actually pretty straight forward once you get it:
client_id
and a client_secret
(which is the content of the client_secrets.json
-file above).Now you have an access_token
and a refresh_token
you can use to keep your script going indefinitely!