Questions tagged [google-api-nodejs-client]

google-api-nodejs-client is Google's officially supported node.js client library for accessing Google APIs, it also supports authorization and authentication with OAuth 2.0.

This client comes with an OAuth2 client that allows you to retrieve an access token and refreshes the token and re-try the request seamlessly if token is expired. The basics of Google's OAuth 2.0 implementation is explained on Google Authorization and Authentication documentation.

Note: This library is currently in alpha status.

The project's home page can be found on GitHub

816 questions
0
votes
1 answer

Youtube Analytics API returns data to localhost but not to server on domain

I'm creating a node.js app using google-api-nodejs-client library. Users can allow OAuth2 access to their YouTube channels for my app, and here is scopes that I'm…
StackTracer
  • 45
  • 2
  • 7
0
votes
0 answers

callback google analytics nodejs

I've made an nodeJS app with express. I am able to retrieve data from google analytics, however I'm not able to show the data on the screen, since the authorization/google analytics api is asynchronous. Can someone help me with writing a function…
Elvira
  • 1,410
  • 5
  • 23
  • 50
0
votes
1 answer

Is Google API's access token never expiring?

I don't know if there is a problem with my code but; using google-apis nodejs client for Drive REST API. However, when I refresh my access token with the refresh token provided, it gives me an expiry time as seconds. (3600 more seconds from…
0
votes
2 answers

Authenticate with backend w/o user intervention (using the new Sign-in APIs)

We're currently able to authenticate requests between our Android client and server using a deprecated approach: String scope = "audience:server:client_id:" + SERVER_CLIENT_ID; String account = getAnyGoogleAccountFromDevice(); String idToken =…
marmor
  • 27,641
  • 11
  • 107
  • 150
0
votes
1 answer

GCP CLoudStore REST reference

using REST Reference in node js Google cloud store I got this error in the postman i got the following error. URL: https://datastore.googleapis.com/v1/projects/{projectId}:allocateIds Requset Body: { "keys": [ { "partitionId": { …
0
votes
1 answer

Google Drive API v3 Request progress bug

Hey I found this v2 solution to get upload progress of your file. Get upload progress for Google Drive NodeJS client? Here is my code function real_upload_files(auth) { var drive = google.drive({ version: 'v3', auth: auth }); …
t33n
  • 270
  • 1
  • 3
  • 17
0
votes
1 answer

how to set grunt variable env path

I am trying to set grunt for my node.js project and I have followed below steps: 1)I have installed node.js and it is working fine. 2)Installed git. 3)Installed grun by running: npm install -g grunt-cli. …
0
votes
0 answers

Translating a large file with small API rate limits on Google Speech API

I have an audio file that is 24 hours and 100MB that I want to transcribe/translate using nodejs and the Google Speech API. The Google Speech API will not support processing more than 1 min of audio nor 10MB of data at a time. How can I get this…
0
votes
1 answer

How to perserve array value after multiple async callback in node js?

I am trying to execute multiple callback and at the same time storing value in array , but at the end array return empty. Here is my code : var sheetData = []; async.forEachSeries(req.body.data, function (data, cb) { sheet.find({accountid:…
0
votes
1 answer

get google authentication token using username and password

I have been looking for an open google api to get google authentication token by using a user's google username and password. I have came across google-auth node package. And according to it, I first need to log in to create a project in google…
0
votes
1 answer

googleapis returns 404 for google.cloudfunctions('v1beta2').operations.get()

I'm trying to deploy my Google Cloud Function using the google-api-nodejs-client. Other services within the API are working, but this always returns a 404: var cloudfunctions = google.cloudfunctions('v1beta2'); cloudfunctions.operations.get({ …
Nicholas Albion
  • 3,096
  • 7
  • 33
  • 56
0
votes
0 answers

How to upload file on Google cloud storage using NodeJs

I am developing chat application REST API, and I want to upload all files (i.e. images, audio, video etc) on Google Cloud Storage. I got the library files form the documentation of google cloud, and using it in POST method API. Here is my code…
0
votes
1 answer

How do I just get an email address after authenticating with oAuth2? - google-api-nodejs-client

I am trying to just get an email address after authenticating with oAuth2. After I get a code when I validate with a google account, I go and get the user from Google Plus, like this: let oAuth2Client = new auth.OAuth2(GOOGLE_CLIENT_ID,…
jhamm
  • 24,124
  • 39
  • 105
  • 179
0
votes
0 answers

Google Drive Webhooks and Google forms

So I'm trying to watch a Google form for updates. But all I get when I put in the file id is 404 not found. Does Google drives watch API not work with Google forms?
0
votes
1 answer

Authentication and Secure Loopback APIs

I created a loopback api ('http://localhost:8100/api/insertsubmitorder/insertOrders') . this api is not Secure . Can we Secure and Authenticate this API using OAuth2 or Other . I go through the looback docs for Authentication…