Vishal Deshmukh
Vishal Deshmukh
You are passing `options` as parameter. Use `requestBody` instead. Try the following format ```javascript calendar.events.watch({ calendarId: "primary", token: "myToken123", requestBody: { id : "aasdf-123-fghj-qwer-5467a-333", type: "web_hook", address: "https://mywebsite.com", } },...
@DeCryptinWeb Glad that helped you!
Hi @sauravexodus, I tried the following way using a service account. ```js var {google} = require('googleapis'); var key = require('./[YOUR_SERVICE_ACCOUNT_FILE].json'); const SCOPES = 'https://www.googleapis.com/auth/calendar'; var auth = new google.auth.JWT( key.client_email,...
Hi @santhoshsk1918, You can try using a `Service` account. Try the following way. ```js const {google} = require('googleapis'); const SCOPES = ['https://www.googleapis.com/auth/webmasters']; const key = require('./[YOUR_SERVICE_ACCOUNT_FILE].json'); const jwtClient = new...
Hi @chaitu20 Instead of `drive.files.export` you can use `spreadsheets.get` method. I tried the following way. It worked for me. Let me know if it works for you. Below is my...
Hi, @Thammawat I did it the following way. It worked for me. Let me know if it works for you. ```js app.post('/upload', upload.single('my file'), (req, res, next) => { let...
Hi, @e1um You can try the following way. Let me know if it works for you. ```js const gmail = await google.gmail({ version: 'v1', auth: auth }); await gmail.users.watch({ userId:...
Hi @mrdulin, instead of revoking access for `access_token` try revoke access for `refresh_token` (`oauth2Client.revokeToken(googleAccount.refresh_token`). Also, you can try to set credentials manually. OAuth callback code snippet: ```js app.get('/callback', (req, res)...
Hi, @buseodaci can you please add some information. Are you uploading directly from your node.js server to drive or directly from Angular to google drive?
Hi @amber-cd, are you still bumping in the issue? I tried with the following way and it worked for me. Also, you can try it and let me know if...