ismon
Lieutenant
- Registriert
- Dez. 2006
- Beiträge
- 707
Hallo zusammen,
ich versuche mich gerade bissel an Note.js und wollte mal mit der google API rumspielen.
Ich habe mich an dieser Anleitung orientiert und für den Test das Beispiel kopiert (natürlich mit meinen API credentials).
https://developers.google.com/drive/web/quickstart/quickstart-nodejs
Leider erhalte ich beim ausführen immer einen Fehler:
/Users/ismon/Desktop/node_sample/google Drive Connect/connection.js:14
var auth = new googleapis.OAuth2Client(CLIENT_ID, CLIENT_SECRET, REDIRECT_URL)
^
TypeError: undefined is not a function
at Object.<anonymous> (/Users/ismon/Desktop/node_sample/google Drive Connect/connection.js:14:12)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
Kann mir jemand kurz auf die Sprünge helfen?
Gruß,
ismon
ich versuche mich gerade bissel an Note.js und wollte mal mit der google API rumspielen.
Ich habe mich an dieser Anleitung orientiert und für den Test das Beispiel kopiert (natürlich mit meinen API credentials).
https://developers.google.com/drive/web/quickstart/quickstart-nodejs
Leider erhalte ich beim ausführen immer einen Fehler:
/Users/ismon/Desktop/node_sample/google Drive Connect/connection.js:14
var auth = new googleapis.OAuth2Client(CLIENT_ID, CLIENT_SECRET, REDIRECT_URL)
^
TypeError: undefined is not a function
at Object.<anonymous> (/Users/ismon/Desktop/node_sample/google Drive Connect/connection.js:14:12)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
Kann mir jemand kurz auf die Sprünge helfen?
Gruß,
ismon