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

How to export stats from Google Play Dev Console in CSV format?

I'd like to export all the CSV which is in the Google Play Developer Console, but in the Google play Developer API there are no function to do this. Which method can i use to get all the CSV?
0
votes
1 answer

Making Google API calls to only one user

I'm writing an in-house app and we're using some of the Google API's in Express/node. Since I'm only going to use one google account (an email I made just for this purpose), what's the best authentication configuration to use?
Brandon
  • 3,573
  • 6
  • 19
  • 21
0
votes
0 answers

Google Batch permissions request return success but no permission granted for users

I have to create multiple user permissions for a single folder by using Drive REST API. If I do requests (more than one) continuously for each user (because Document List API batchACL deprecated) It returns permissionIds for every user but most of…
0
votes
1 answer

Can't download drive spreadsheet after upload

I'm working with the google node api. I am trying to do the following: Read the contents of a google drive spreadsheet Interpret some of the data (I convert the csv to an object using node-csv) Then upload the file with the new contents I have…
ThomasReggi
  • 55,053
  • 85
  • 237
  • 424
0
votes
2 answers

google-api-nodejs-client / How to decode the id_token received from oauth2Client.getToken

How to decode the id_token received from oauth2Client.getToken to get access to the JWT JSON fields email, sub, ..? Is there a function included in the google-api-nodejs-client lib? In https://developers.google.com/accounts/docs/OpenIDConnect in…
joafeldmann
  • 246
  • 4
  • 14
0
votes
1 answer

Google Calendar API service token only has reader accessRole

I'm accessing the Google Calendar API and authenticating with a service token to a calendar owned by an apps-for-domains account. When I call calendar.events.list, I get the response: { kind: 'calendar#events', etag: [snip], summary: [snip], …
sil
  • 1,769
  • 1
  • 18
  • 34
0
votes
1 answer

Google API Callback on Stateless REST server

We are running a typical MEAN setup - Angular for the frontend rendering, node.js (express) as server. Static HTML/Javascript assets are served from node without requiring authentication. All data displayed in the frontend is requested by Angular…
0
votes
1 answer

NodeJS GoogleAPIs mirror timeline insert returning 400 code with "required"

I'm trying to send a very simple Hello World message to the mirror API timeline in NodeJS with version 1.0.20 of the googleapis package, but I'm getting a response that isn't very helpful. // OAuth is happening earlier and creating the proper auth…
Josh B
  • 1,748
  • 16
  • 19
0
votes
1 answer

google oauth2 implementation using Node JS error

Anybody can explain me where to put this following code and what its mean.. it showing error in .js file showing that "OBJECT HAS NO METHOD .discover". googleapis .discover('calendar', 'v3') .discover('oauth2', 'v2') .execute(function(err,…
0
votes
1 answer

How can I Insert account my google glass using node.js

I'd like insert account my google glass, but I cann't do that. I'm using node.js(v0.10.31), googleapis(v1.0.11) and passport-google-oauth(v0.1.5) of course, I turned on Google Mirror API on Google Developers Console. and made pem file. Here is…
0
votes
1 answer

gulp browserify and bromote

My project is using gulp-starter which has quite a bit of wiring already implemented with browserify and I'm now trying to add bromote to this project. I found this reference to implement bromote with browserify browserify & factor-bundle dependency…
user391986
  • 29,536
  • 39
  • 126
  • 205
0
votes
1 answer

Google+ insert moment with nodejs client

Has anyone been able to get the google-api-nodejs-client to successfully insert a moment? Whatever I try, I get a generic 400 "Invalid value" error but am unable to narrow down the invalid value because the API Explorer doesn't work either. Would it…
fisch2
  • 2,574
  • 2
  • 26
  • 29
0
votes
0 answers

Make a popup form in AngularJs and Nodejs

I'm newbie in Angular and Node, so I don't know a lot of it. I have an Angular single page and I want to create a popup form that appears when I click a button, and then send the information via rest to node. But I don't know how to do that. How can…
0
votes
1 answer

OAuth 2.0 Scope for Google Apps users' names with google-api-nodejs-client

I'm trying to use Google's 'google-api-nodejs-client' package (https://github.com/google/google-api-nodejs-client) to handle OAuth 2.0 authentication. I've modified the example in examples/oauth2.js to console.log the entire profile object. What…
neurotech
  • 5
  • 3
0
votes
1 answer

How can Dimensions be included in the API call object?

See - https://github.com/google/google-api-nodejs-client/issues/189 Looking to see if anyone has worked around this?