google-api-nodejs-client Questions

10

Solved

I've recently ran into this error with the google cloud storage SDK on Node.js. I know for a fact that this worked in the past without any changes, but I haven't touched the code in a while and mig...
Alkylation asked 19/10, 2022 at 20:35

1

We've been using the Google Directory API to get the profile of our users, on an internal app. When we authenticate, we've been using a json keyfile for a service and the google-auth-library JWT cl...

6

I have no admin rights in my windows machine. Can I install NVM without admin rights? I tried using the environment variable path setup, but its not working in my case.

3

Solved

I am trying to develop a server-side validation of my users' in-app purchases and subscriptions as recommended, and I want to use Firebase Functions for that. Basically it has to be an HTTP trigger...

3

I am creating an oauth2client in one function like so and returning it. I actually do pass in the clien id, secret, redirect url, and credentials. Those are all correct from what I have checked. v...

4

Can you rename files in Google Cloud Storage? I am letting users upload photos, but I want to give them the ability to edit the photo, at least by changing the name they uploaded it with. I am usi...

5

Solved

In an app I'm helping develop we've added in the ability for a user to invite other users and personalize the invitation email, and then send it via Gmail's APIs. I'm encoding it using base64 as th...
Lutestring asked 29/12, 2014 at 20:45

2

Per the recommendation in the defaultauth sample, I am trying to access the directory api for a domain which I have created a service account for. Here is the code I am attempting to connect with: ...
Cooksey asked 14/5, 2018 at 17:27

1

Solved

I have two methods. The first one reads a file and writes to that file just as plain text. The second one writes a file as a stream. In order to get this to work I have had to add fs twice in requi...
Fleming asked 21/11, 2022 at 8:46

1

We have an application that depends on Google maps distance matrix API to calculate distance and time between two points. It's a nodejs application. We have been using this Google Maps Node.js Clie...
Ronen asked 1/8, 2018 at 20:33

2

Solved

I have a small express server that has two routes. Then it writes the json tokens to a file (I know very insecure). For some reason there's no refresh_token. In the docs theres a comment that offli...
Bottali asked 17/2, 2015 at 15:18

2

I'm trying to implement Google sign-in and API access for a web app with a Node.js back end. Google's docs provide two options using a combo of platform.js client-side and google-auth-library serve...

2

Solved

We've been following https://cloud.google.com/pubsub/docs/dead-letter-topics and nodeJS client to create, update our pubsub topics and subscriptions but after following: async function createSubscr...

3

Solved

My client has a GraphQL API running on Google cloud run. I have recieved a service account for authentication as well as access to the gcloud command line tool. When using gcloud command line lik...

1

Solved

I am successfully able to make GET requests to a service hosted behind IAP, but am running into issues when making POST requests the same way. Also, I was not able to find any documentation for the...
Starks asked 24/7, 2020 at 8:2

1

I have been trying to mock the @google-cloud/storage for my implementation so that I could test it without having to hit the cloud-storge in gcp and so far it has all been in vain I have tried to m...

2

I am using google api nodejs , I try to get data from google Anaytics var google = require('googleapis'); var OAuth2Client = google.auth.OAuth2; var CLIENT_ID = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; va...
Gatewood asked 17/5, 2016 at 21:28

1

Solved

I am trying to consume google youtube data apis which has support for api key type of credentials. https://developers.google.com/youtube/registering_an_application I am trying to use google auth ...
Turney asked 19/3, 2020 at 13:3

2

Solved

Disclaimer: I have followed Google's own Node.js quickstart guide and successfully connect and use the gmail.users.labels.list() functionality. I have checked for questions/answers here, like thi...
Annexation asked 31/12, 2015 at 11:52

1

I am trying to set a new track and upload APK for publishing using nodejs... But no APK is uploaded nor is there a track set. But the results from the validation and all the other steps are exactl...
Kassa asked 3/7, 2018 at 8:15

0

Trying to make use of the Server to Server OAuth flow defined here: https://developers.google.com/identity/protocols/OAuth2ServiceAccount Since I'm running from a local dev environment, I've creat...
Ertha asked 27/3, 2019 at 18:22

2

Solved

I'm using the googleapis npm library to authorize using OAuth2 to access my Gmail account to send emails. I am using the following code (TypeScript) to do that: const oAuth2Client = new google.aut...
Accept asked 1/11, 2018 at 3:9

2

Solved

I am using Nodejs to connect with GoogleApis v35.0.0 to tell Google to update or remove pages from the Google index. And I stuck in the multipart/mixed request, the body of multipart when I send th...

2

Solved

I see there are two available libraries. I am wondering what are the differences? Are they both officially maintained by Google? https://www.npmjs.com/package/googleapis https://www.npmjs.com/pac...
Strobe asked 17/3, 2017 at 19:50

1

Solved

I want to use Google Cloud Storage in NodeJS but authenticate with google-auth-library Specifically: I want to host this on heroku, so I want to keep the secret in an environment variable, not in ...

© 2022 - 2025 — McMap. All rights reserved.