I am currently creating a simple website using JS. In my application, I am using nodemailer as a tool so that individuals can contact me. The contact form goes directly to my email once the user submits the form. I am using https//mail.google.com API with oAuth2 authentication (using refresh_token and accessToken). When I first began ..
I’m new to next.js, in the getStaticProps function I’m loading a googlesheet table into a constant. The result is an array of arrays, here’s an example of the googleapi return: [["CLIENT A","MIKE","UNKNOWN","TRADICIONAL"],["CLIENT B","MARY","UNKNOWN","MOROSO"],["CLIENT C","MIKE","CLIENT C S.A DE C.V.","TRADICIONAL"],["CLIENT D","JOHN","RAZON SOCIAL CLIENT","TRADICIONAL"]] I’m returning this array as props, but I can’t find a way to manipulate ..
I don’t understand why my code doesn’t work, can someone help me ? I have a file with all my function (listFunction.mjs) and I want to get an array in testCallApi.mjs, but this didn’t work. I got an undefined. When I do a "console.log(list)", I have a result, but when I want to return this ..
To prevent users from posting links to phishing scams on our Discord server, I have decided to use the Google Safe Browsing API. Google Transparency Report (which to my knowledge uses the Safe Browsing API) says that the site: contains harmful content, including pages that: Try to trick visitors into sharing personal info or downloading ..
I am trying to get the video and the thumbnail from the user from the frontend, processing it in the backend and then using google API to upload it to the youtube. but i am facing issue with the MediaFileUpload() function which requires the path of the video to upload it to the Youtube. is ..
I’m trying to implement an app that will remind the user on his upcoming google calendar events. I have created google OAuth token successfully and my app was working fine. but suddenly i got this error "error: ‘invalid_grant’,error_description: ‘Token has been expired or revoked.’". Here is my code: const TOKEN_PATH = ‘token.json’; const OAuth2 = ..
I am trying to download one idFile from google drive using googleapis library. However I am encountering the following error: Cannot read property ‘data’ of undefined Here is my code: const express = require("express"); const path = require ("path"); const bodyParser = require("body-parser"); const ejs = require("ejs"); const app = express(); const port = 2000 ..
(node:13048) UnhandledPromiseRejectionWarning: Error: Google API error –  Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project. at createError (D:another coding langdiscordbotmihonode_modulesaxioslibcorecreateError.js:16:15) at settle (D:another coding langdiscordbotmihonode_modulesaxioslibcoresettle.js:17:12) at IncomingMessage.handleStreamEnd (D:another coding langdiscordbotmihonode_modulesaxioslibadaptershttp.js:260:11) at IncomingMessage.emit (events.js:327:22) at endReadableNT (internal/streams/readable.js:1327:12) at processTicksAndRejections (internal/process/task_queues.js:80:21) (Use `node –trace-warnings …` ..