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

authentication and authorization with Loopback

we are developing a small application with loopback and NodeJs. it means we Created the Rest API in loopback . now we need to add authentication and authorization functionality . we are using Postman for Testing the Rest APIs. please tell us how…
0
votes
1 answer

BigQuery cannot add data with nodejs API

I tried to use google-cloud-functions with BigQuery using the following cloud function example link. I didn't have any errors but the data didn't add to BigQuery. BigQuery response is (status 200): [ { "kind":…
0
votes
0 answers

File Upload With NodeJS and Loopback API

I am new with NodeJS and loopback . I created a Simple file uploading Application with loopback. Application client side i used simple html and Java Script code - i calling a loopback api with ajax call , this is Java Script complete code…
0
votes
1 answer

Google API with angular2 Error:400

I am following this example https://stackoverflow.com/a/39770500/2983051 but unfortunately I am getting: That’s an error. Error: invalid_request Permission denied to generate login hint for target domain. I am running angular2 app locally, in my…
0
votes
1 answer

Where to Put subscription.pull when want to get the publish data Google Cloud pub/sub NODE JS

So i've tried to develop some pub/sub system based on node js i am using express post request to publish the data that i wanted. it's send the data well, but my question is where should i put my code for the subscription Right now i put the code at…
0
votes
1 answer

Download google file to memory in Node.JS

I am trying to work on a function to download a google file straight to memory. It works for downloading it to a file but I want to skip that step and hold the contents in memory. Can someone please lend a few ideas on how to handle the piping into…
Peter3
  • 2,549
  • 4
  • 20
  • 40
0
votes
0 answers

google id token management best practice for rest app

I'm using google auth2.0 for a rest service (web single page app). I use it just for identifying and registering users. My question is about best practice management of token and security. After user registerd through googleAuth he can read and…
0
votes
1 answer

Google Translate service account 403 dailyLimitExceeded error

I'm configuring a Node.JS server to use the Google Translate API. So far, I've done the following: Set up a Google account Add credit card and enable billing Create a project Enable Google Translate API for project Create two service accounts for…
0
votes
1 answer

How do i send a email on same thread using google-api-nodejs-client nodejs

I have full response of a email send using node module google-api-nodejs-client, which is like { "id": "1231212312", "labelIds": ["UNREAD", "SENT", "INBOX"], "threadId": "23123123" } I need to send an email again to the email address but…
0
votes
1 answer

Refusing to install twilio as a dependency of itself

In my node.js Twilio project folder, I am getting this error while executing npm install twilio c:\...\Twilio>npm install twilio npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program…
Kedar
  • 518
  • 8
  • 15
0
votes
1 answer

Google Datastore Silently Failing in Production (node.js)

As part of a larger web app, I'm using a combination of Google Datastore and Firebase. On my local machine, all requests go through seamlessly, however when I deploy my app to the GAE (using node.js - Flexible Environment) everything works except…
0
votes
1 answer

Not getting user information with Google Plus sign-in api + Node.js

I have the following code snippet, to retrieve user information when he uses gmail to login: oauth2Client.getToken(code, function(err, tokens) { if (err) { console.log(err); res.send(err); return; …
clint
  • 1,786
  • 4
  • 34
  • 60
0
votes
1 answer

Accessing Google Api using Nodejs

I have scaffolded a web app which is able to register a user with Passportjs and Google Oauth2. While registering the user in the scopes I am asking for accessing the Google Plus API and retrieving the accessToken and refreshToken to be persisted in…
Anand
  • 121
  • 3
  • 12
0
votes
1 answer

Getting email Bounce when using gmail nodejs api

This the code i am using to send email. function sendMessage(auth) { var gmail =google.gmail('v1'); var email_lines =[]; email_lines.push("From:a@gmail.com"); email_lines.push("To:b@gmail.com"); …
Deepak
  • 37
  • 2
  • 11
0
votes
0 answers

Why does the google calendar API get stuck when called from within a promise?

I am writing an electron app that first searches for a given Google calendar event, and, if one isn't found, it then submits a new calendar event. If I forego the initial search, the submission appears to work fine. In this case, the code looks…
jwir3
  • 6,019
  • 5
  • 47
  • 92