4 Mar 2018 Alright, so i figured out my problem, here is my final code. (with some commented tips) const {google} = require('googleapis'); var OAuth2 .