I am trying to configure the Google Calendar API on Node using Node.js quick start which is displayed here
After completing all the first three steps and running my quickstart.js to check if it works (which I copied and pasted using quick launch), I get the following error:
"TypeError: googlAuth is not a constructor", it refers to this line of code:
var auth = new googleAuth();
googleAuth is declared as follows:
var googleAuth = require('google-auth-library');
I could not find any solution on the Internet.
the full code is located at the link above in the third step. Thanks in advance, Assaf.
source share