Questions tagged [google-api-js-client]

This code is written by Google, this compact and efficient client library provides access to any of Google's RESTful APIs

Google APIs Client Library for JavaScript

Description

Written by Google, this compact and efficient client library provides access to any of Google's RESTful APIs. See below for a list of supported APIs.

Beta

This library is in Beta. We're comfortable enough with the stability and features of the library that we want you to build real production applications on it. We will make an effort to support the public and protected surface of the library and maintain backwards compatibility in the future. While we are still in Beta, we reserve the right to make incompatible changes. If we do remove some functionality (typically because better functionality exists or if the feature proved infeasible), our intention is to deprecate and provide ample time for developers to update their code.

Features

The JavaScript client library supports these Google APIs.

The JavaScript client supports the following browser environments:

  • Chrome 8+
  • Firefox 3.5+
  • MSIE 8+
  • Safari 4+

The library supports the following authentication and authorization methods - OAuth2

Documentation

Links

637 questions
0
votes
2 answers

In Meteor, how to only load a javascript when the user is logged in using an particular external service?

What I really need is to load google apis client library for javascript when a user is logged in using google service. If a user is logged in using password or other external services, the library is not loaded. Is this possible by any means?…
Fei
  • 769
  • 2
  • 7
  • 13
0
votes
1 answer

AppState with Google Client API. Update not possible?

We are integrating Google App State into our web based game using Google's API discovery service. Our test code looks like this: gapi.client.load('appstate','v1',function(response) { var request = gapi.client.appstate.states.update({ stateKey: 0…
0
votes
1 answer

Google+ CreateActivity returning "401 Unauthorized" for certain accounts

I have a Google+ app that is successfully writing app activity for certain test accounts, yet others return a 401 Unauthorized error: { "error": { "errors": [ { "domain": "global", "reason": "unauthorized", "message":…
0
votes
2 answers

How to pass Service OAuth access_token from PHP to JavaScript

I am working on an application that is using Google Cloud Storage. I would like to use the JSON_API to manage uploading/downloading the pictures our user's provide. My goal is to grab the access_token using my service account method, and pass it off…
0
votes
1 answer

ERROR 403 Google plus friend list access

I am using Google plus Oauth in client side in a web application . I have registered and could get userinformation using the api, But When I tried to get the friend list using the following get operation, I am getting a 403…
SarathSprakash
  • 4,614
  • 2
  • 19
  • 35
0
votes
1 answer

Getting all events for all calendars with Google API Javascript Client

I'm trying to get all of a user's events, for all of their calendars on Google Calendar. I'm doing this by first making the call to gapi.client.calendar.calendarList.list, and then using the IDs retrieved in the call to…
Jakemmarsh
  • 4,601
  • 12
  • 43
  • 70
0
votes
1 answer

Google javascript API returns 404's

I have the same code (more or less) working fine in Java, but when I write it in javascript, I end up with 404's. I can't figure out what I'm doing wrong and it's driving me crazy! gapi.client.load('translate', 'v2', function () { …
Jayen
  • 5,653
  • 2
  • 44
  • 65
0
votes
1 answer

Blogger API v.3 - can't transfer the data to the post (javascript)

New post created with out data - http://yatsynych.blogspot.com/. Problem on object body_data? My source: function makeApiCallBlogger() { gapi.client.setApiKey('AIzaSyDFnBwpKVqjMm9NJ4L0Up5Y_bYpsaJdC6I'); gapi.client.load('blogger', 'v3',…
Yatsynych
  • 1
  • 1
0
votes
1 answer

Google API on-load callback timing?

The Google javascript API client library script is loaded in the section like this: The method specified in the onload parameter is called when…
isomeme
  • 451
  • 3
  • 12
0
votes
1 answer

using google js api to authenticate the user and get the google id of the user

I'm using this as a reference: https://code.google.com/p/google-api-javascript-client/wiki/Authentication I'm trying to authenticate a user and then fetch his/her google_id after auth. I have a button called "login with google" and when the user…
boyfromnorth
  • 958
  • 4
  • 19
  • 41
-1
votes
1 answer

How to Use Google Drive API in Javascript with Manifeft V3?

It was long. Closed. Tried to explain. Had things I tried. I delete them all and only leave the original, core question. I'm trying to make an extension with V3. I want to update a few files in my Drive with it. I got client ID, API key, client…
-1
votes
1 answer

Google is not defined with Google Maps API

I'm using the Google Maps API in one of my projects. The map works correctly, but sometimes, in a completely random way, the map does not load and I get the error: Google is not defined I tried to change script position and add async/defer tag,…
-1
votes
1 answer

Generate body for multipart file upload using fetch in Javascript

I am trying to upload a file(uploadType=multipart) to Drive API V3 using fetch but the body is wrong as it is creating a file with the title unnamed. var tmpFile=document.getElementById('inputFile').files; tmpFile=tmpFile[0]; await …
user15381235
-1
votes
2 answers

Is it possible to patch the responsestatus of an invitee in google calendar?

I am working with the google calendar api and i was wondering if it was possible to patch/update the responsestatus of an invitee. I am able to access the google calendar of the users and insert, delete and update their google calendar. But I do not…
-1
votes
1 answer

How to avoid pending promises when sending data from google api to discord.js?

I am working on a Discord bot which could extract datas from an Excel sheet. For example when I will ask the bot : "!adress paul", I would like the bot to look for "paul" value in the column A of a sheet and return the value of the column B (of the…
Maxence Hermand
  • 105
  • 1
  • 3
  • 12
1 2 3
42
43