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

Update or patch existing card in Glass timeline with google api nodejs client

Im playing around with Googles official js client for accessing Google APIs and in this case Google Glass Mirror API. I need some guidance on how to use the update or even better patch methods (see…
Ismar Slomic
  • 5,315
  • 6
  • 44
  • 63
0
votes
2 answers

Retrieve Google+ activity list of an user

I need to get the list of activities of an user in Google+. My coding platform is node.js Express framework and I'm using google-api-nodejs-client package. var googleapis = require('googleapis'); var auth = new googleapis.OAuth2Client(); var…
Foreever
  • 7,099
  • 8
  • 53
  • 55
0
votes
1 answer

Google JSON API and GQL. Get objects by date range

I try to find objects in google datastore via GQL and JSON API by date range. For example, this is my request: SELECT * FROM table WHERE uuid = "test" AND start >= 100 AND end <= 150 But i get error: { errors: [ { domain: 'global', reason:…
0
votes
1 answer

Requested scopes not allowed: admin.directory.group.member

I want to make an insert authorized request. According to API Explorer I need the following scopes: In code it would look like this: { ... , scopes": [ "https://www.googleapis.com/auth/admin.directory.group" ,…
Ionică Bizău
  • 109,027
  • 88
  • 289
  • 474
0
votes
1 answer

Use Google APIs Node.js client library with AppEngine Cloud Endpoints?

I've coded an Java App Engine app that uses Cloud Endpoints. I want to talk to these endpoints from a Node.js app. Is it possible to use the google-api-nodejs-client for this purpose? I've already tried this: var googleapis =…
0
votes
0 answers

NodeJS googleapis batchRequest issue

I am trying to use the (experimental) newBatchRequest method in the NodeJS googleapis library (https://github.com/google/google-api-nodejs-client), but the results returned all return a 401 Invalid Credentials error from Google. The exact same call…
Edward Sun
  • 1,541
  • 3
  • 15
  • 26
0
votes
2 answers

How do I create a youtube playlist with the Google API node client?

Using Google's google-api-nodejs-client (official google node library), I had this piece of code running many months ago. I had left it aside. googleapis.discover('youtube', 'v3').execute(function (err, client) { var request =…
machunter
  • 967
  • 1
  • 11
  • 27
0
votes
2 answers

Inserting google plus moment using googleapis node.js api (google-api-nodejs-client)

Using the example here: https://developers.google.com/+/api/latest/moments/insert and everyauth to handle the oauth login: (with the .withAuth() added) Or using my own simpler example I'm getting an "Invalid Value" status code: 400…
0
votes
1 answer

google api + node.js + google-api-nodejs-client

I feel like I should be able to figure this out but I'm stuck on the syntax for google api calls in node using google-api-nodejs-client. Here is my code to query for books that accepts a search string as 'query', and this works just…
0
votes
0 answers

Youtube upload failing with 403 - Download Service Forbidden

I'm using the google-api-nodejs-client and I'm trying to script up an uploader. I've finally got to the stage where everything is OAuth2 authenticated and I can make requests. When trying to do an upload however, I'm getting 403 - Download Service…
0
votes
1 answer

drive.comments.insert worked with previous version, not current

I am using drive.comments.insert to insert a comment into a Google Drive document. This worked with a previous version of googleapis with a previous version of node, but now, with the exact same code, it is returning a 400 Resource metadata required…
Edward Sun
  • 1,541
  • 3
  • 15
  • 26
0
votes
2 answers

How do I match this with an express.js route

/oauth2callback?code=4/SOMECODE.LOL-ISHERE Hello there the above url is sent from an OAUTH request generated by the googleapis package in node.js. I have tried so many routes but it never matches. app.get('/oauth2callback?code=4/:token',…
Michael
  • 573
  • 2
  • 12
  • 26
-1
votes
3 answers

How get only those object which has name equal to Delhi inside the object as element in Json?

Here i m given some data in Json formate. I want to fillter it with it atrribute . [ { "_id": "1", "name": "ShalimarBhagh", "city_id": "1", "location_id": "1", "country_name": "India" }, { "_id": "2", "name": "Janpat,…
-1
votes
1 answer

What google api function can I use to write data back to a Google Task?

Wrote my first node.js to access Google Tasks. I was able to successfully read the notes of a specific task I had set up into a text variable as follows: function getTask(auth) { const service = google.tasks({version: 'v1', auth}); …
-1
votes
1 answer

How to get list of public urls for google cloud storage with NodeJs client instead of storage object

When running (new Storage()).bucket('my-bucket-name').getFiles(), I get a list of objects with this structure. All the items are set to public and I'd rather not process the objects to piece together the public urls by "hand"…
1 2 3
54
55