Questions tagged [google-api-javascript-client]
62 questions
9
votes
8 answers
google finance api not working from 6/september/2017
I was using google finance api to get the stock quotes and display the contents on my site. All of a sudden from 6/september/2017 this stopped working. The url i used to get the stock quotes is…

Ramaprasad Palanichamy
- 129
- 1
- 1
- 5
7
votes
1 answer
How to use the Google API client for JavaScript with a One-Tap sign in flow?
I'm using Google One-Tap sign in to authenticate users, and after the user is authenticated I get an access token. I know that I can use this access token in order to work with the Google API client for JavaScript ("GAPI"). But I can't find any way…

mesqueeb
- 5,277
- 5
- 44
- 77
7
votes
0 answers
What's causing Google JavaScript API discovery to fail?
I'm using the Google JavaScript API for the browser, and intermittently it fails with the following exception: gapi.client.Error: API discovery response missing required fields. What might be causing this?
My code for loading the API looks as…

aknuds1
- 65,625
- 67
- 195
- 317
7
votes
1 answer
How to get access token via Google JavaScript oauth2 API
http://api.chan15.info/google-stackoverflow.html
This is the sample code I use to let user login via Google JavaScript API, and it's work, next step is use user id to login to local server via PHP, but use the user id by JavaScript is pretty danger,…

Chan
- 1,947
- 6
- 25
- 37
4
votes
0 answers
How to use OAuth 2.0 flow in Google One tap Sign In?
I know that I can use the access token that I receive in the response can be use to authenticate users.
But I want it to be more secure So I want the code that we get in oAuth 2.0.
Is there any way to get the code in the background to authenticate…

Punisher
- 41
- 1
- 4
3
votes
1 answer
Google Maps API Geocoder componentRestrictions syntax
I'm having trouble adding the componentRestrictions parameter to the Google Maps Geocoder object. I'm using the JavaScript client-side api. Specifically, the administrativeArea property isn't working for me. Docs say type is a string, and I've tried…

doublea
- 447
- 1
- 4
- 11
2
votes
1 answer
How to use the GAPI Client Library (Google Sign-In for Web) for existing apps after March 31, 2023 for the example given?
The GAPI Client Library (Google Sign-In for Web) is being deprecated after March 31, 2023, but:
existing client IDs created before July 29th, 2022 may set the plugin_name to enable use of the legacy Google platform library.
See:…

dvdsmpsn
- 2,839
- 1
- 26
- 40
2
votes
1 answer
Will Google API Client Library for JavaScript be unavailable after March 31, 2023?
I am developing a Web Application based on Google App Engine.
This application uses Google Sign-In JavaScript platform library for Web for Oauth 2.0 and Google API Client Library for JavaScript to access Google APIs.
We recently received the…

T.Sasaki
- 47
- 2
2
votes
1 answer
Google Maps JavaScript API error: ApiNotActivatedMapError altough Google Maps JavaScript API is enabled
I want to display a simple Google Maps on my Website. I followed several tutorials and they always tell me the same: Generate API KEY, Enable the Google Maps API and type in this code...
First it loads correctly with the latitude/longitude I want…

Boommeister
- 1,591
- 2
- 15
- 54
2
votes
0 answers
Google Places Javascript Api photo redirects to photo url but returns 403
I have an issue with showing photos from the Google Places (Javascript) API. I follow the instructions for getting a photo and it's url with .getUrl(). This returns a url that looks like…

Jürgen Visser
- 21
- 2
2
votes
2 answers
List publicly shared files from google drive using service account key not getting public files
I have been facing problem while coding that while using service account key and using drive.files.list API, i am not able to get files, though i have shared all the files publicly
const { google } = require('googleapis');
const drive =…

Abhi Thakkar
- 151
- 4
- 17
2
votes
0 answers
Ionic - how to display a nearby places list
I've been following this guide on using Google Place JavaScript library to show a list of restaurants within a 500 metre radius of the hard coded coordinates.
This is what I have attempted so far:
The .ts file
export class AmenityPage {
…

kenyami
- 59
- 8
2
votes
1 answer
how to properly use javascript google task api?
I try to update a task with the following code but its not working and I do not get any feedback from it:
gapi.client.tasks.tasks.update({'task': task.id, 'tasklist': taskList.id, 'body': {'status': 'completed'}});
I successfully retrieve both…

Rob
- 127
- 2
- 10
1
vote
1 answer
Trouble using JavaScript and the google drive API to convert a google slide into a pdf, and upload the pdf onto a folder
I'm new to JavaScript, and am trying to write some code that uses the google drive API (via the gapi client) to transform an existing slide into a pdf document, upload it to a specific folder, and return the pdf file id. This is all to be done in…

John Neves
- 13
- 4
1
vote
0 answers
javascript module `gapi` is not work with Google Discovery Document List API value
I'm currently using the javascript module gapi to develop a service using theGoogle Fit REST API.
According to the official documentation, client.init() ingapi need Discovery Docs information is…

ogihara
- 41
- 1
- 1
- 3