63 questions
0
votes
1
answer
63
views
Google business get placeId from storeCode
When using the Google Business API to retrieve locations managed by the end user, I get a storeCode. What I'm trying to do is check if that business location has a placeId on Google Maps or not.
...
1
vote
1
answer
133
views
Google Auth with Google Identity Services in the front end deprecation confusion [duplicate]
I'm having a hard time understanding what is and what is not deprecated.
In the The Google API client, if you click on the "auth" guide, you end up with a message "gapi.auth2 has been ...
0
votes
1
answer
249
views
Google Chat (Spaces) Add Member as Manager
I am attempting to add different users to a Google Space and set their roles as Members or Managers. When I try to set the role to ROLE_MANAGER, it always defaults to ROLE_MEMBER. In reading the ...
2
votes
1
answer
3k
views
How can I check if the user is logged into their Google account with Google One Tap?
My question is here (How to check if user is logged in or not with "Google Sign In" (OAuth 2.0) ), but the relevant package has been deprecated (https://developers.google.com/identity/sign-...
0
votes
1
answer
1k
views
How to creating Calendar Event with JavaScript in React JS with fetch
In a React JS app I want to create a google calendar event. I am completely unfamiliar with google apis and am trying to learn / figure out how to do this.
the following is a react test component ...
0
votes
2
answers
378
views
authenticate bigquery javascript api
I am putting together a web app where I would like to display some bigquery data on my webpage
However, I am having trouble setting up the authentication for bigquery's javascript api. Most of the ...
1
vote
1
answer
508
views
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 ...
2
votes
1
answer
576
views
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 ...
0
votes
0
answers
340
views
react js npm googleapis,@googleapi/sheets package error for version (npm=9.2.0,node=v18.13.0)
React message error image links
My local PC is running Ubuntu 22.04.1 LTS.
When installing the package, there are no problems; there are a few warnings and a red error, but rendering works fine. But ...
2
votes
1
answer
901
views
Will Google API Client Library for JavaScript be unavailable after March 31, 2023? [closed]
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 ...
1
vote
0
answers
323
views
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 ...
-1
votes
1
answer
280
views
Having issues to connect to Google Drive API
I am trying to connect to Google Drive API but I keep getting the return "Uncaught TypeError: Cannot read property 'init' of undefined at initClient."
I am not sure what to do to fix this.
...
0
votes
0
answers
542
views
Unable to delete an event using Google Calendar API on React
I am trying to create a simple schedule management app using React and HAsura GraphQL API and I am trying to integrate it with my Google Calendar. However I am unable to delete the required event. ...
1
vote
2
answers
2k
views
How can I upload files to google drive that are in a url?
I try to upload a photo that I have in a URL on another server, but it does not work for me or I do not know how to upload them in this case I am going to upload a photo but I also want to upload ...
0
votes
1
answer
308
views
Google javascript client api : how to fetch profile name?
I am trying to implement SignIn with Google with redirect approach. I am following this link
My code looks like below
<script src="https://apis.google.com/js/platform.js?onload=startGoogleApp&...
1
vote
1
answer
81
views
Using inner function variable in outer function using Google Maps Javascript API
I am fairly new to Javascript so forgive me if this has been answered but I cannot get this to work nor can I find the answer anywhere online. I am trying to return an address using Google's Maps ...
2
votes
1
answer
3k
views
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 ...
1
vote
0
answers
350
views
window.gapi.auth2.getAuthInstance().signIn doesn't send callback in Safari
We embedded Google OAuth button inside iframe. When user loads a page with this iframe, clicks Google button from that iframe, window.gapi.auth2.getAuthInstance().signIn fires and new window appears. ...
1
vote
1
answer
1k
views
Uncaught (in promise) Error: Data for arrayToDataTable is not an array in visualizing data using https://www.google.com/jsapi
I am trying to visualize data from a javascript file as shown below.
data = [ ['Year','China','India'],
['C1960',1.83286768126466,1.96098348563911],
['C1961',-1.01552778731319,1.99843774000741],
['...
0
votes
1
answer
30
views
Deleting markers automaticaly created by Google directionsService
How can I delete all markers created by directionsService when using:
function calculateAndDisplayRoute(directionsService, directionsRenderer)
The example I´m working with is Waypoints in Directions ...
0
votes
0
answers
13
views
InvalidValueError: NaN is not an accepted value for latitude [duplicate]
I got this error while running the following Javascript code:
<script>
var map;
var service;
var infowindow;
function initMap() {
infowindow = new ...
4
votes
0
answers
2k
views
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 ...
3
votes
0
answers
805
views
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 this:
https:/...
1
vote
1
answer
3k
views
How to read data using the spreadsheets API without using oauth2
This is Yet another error 403 on Google Sheets API. Um trying to read the data from a Spreadsheet and expose it on a website, using some custom HTML filters.
So, there is this question:
Error 403 on ...
1
vote
0
answers
339
views
grantOfflineAccess is not working with scope
I am using google API's in my angular 8 website. I have to integrate Google Drive and YouTube account on different buttons.
YouTube Connect button
Google Drive Connect button
I init gapi as
...
-2
votes
1
answer
252
views
How to Draw on Google Map
I need to create a shape on the google map. If the user wants to create a shape(Polygon, Circle, Rectangle, Square) with the help of Drawer he will be able to draw shapes.
Is there any related ...
0
votes
0
answers
361
views
Google Map Javascript Only loads after refresh
Using Google Map API, I have embedded Google Map (Javascript) in my page. However, the map will only load after I refresh the page once.
I looked up on many past threads, to which many mentioned the ...
0
votes
1
answer
1k
views
Google Maps did not load correctly, ERROR: You seem to be using a malformed key. (Invalid Key)
I have set up an API Key and enabled it for Geocoding API as well as Javascript Map API. However, google map did not load correctly on my show page. The error keep mentioning that I did not have an ...
1
vote
2
answers
960
views
How to use JSON data returned from a local PHP file in Google Maps API instead of an online hosted JSON file?
While combining data on a map using Google Maps API, I use a local PHP file which returns the same JSON result which I store online via hosting using a site like myjson. However I cannot use the local ...
1
vote
1
answer
127
views
Accessing Google Maps URL outside the Javascript API
I have a web app and have successfully configured it to access google maps from this URL outside the JavaScript API using this URL:
http://mt0.google.com/vt/lyrs=y&hl=en&x={x}&y={y}&z=...
0
votes
1
answer
3k
views
How to properly get Access Token from logged in Google Sign In (client-side only app)?
I am using Google Sign-In button to let user logging in with their Google Account:
gapi.signin2.render("container-btn-google-login", {
scope: "email profile",
onsuccess: (user) =&...
0
votes
1
answer
2k
views
Getting error in Google App Script to fetch data from JSON api Webservice and write them to google spreadsheet
I am trying to get data using Google App Script from a web service via api which is in json format and write it to my google sheet spreadsheet but getting error that says "The number of rows in the ...
0
votes
1
answer
36
views
Is there any code to simply restart my whole function?
I started learning Google Javascript on my own, and as my first code is to do an interactive calculator which the equation can be selected by pressing some images of those equations. The problem is I ...
1
vote
0
answers
871
views
Show multi-login popup when user is loggedin in multiple google account and bypass the login popup if user is loggedin in only one accout
I am working to add google sign-in flow on web app. Trying to figure out if we can achieve this functionality,
if user is logged-in in multiple google account, show the multi-login popup where user ...
0
votes
1
answer
3k
views
What is the URL to authenticate Gsuite users using curl?
I want to authenticate Gsuite users in order for them to be able to create groups from my company's application, I have to do so using CURL, what URL should I send a post request to?
For example, if ...
1
vote
1
answer
396
views
How to modify existing working WP site which is using Goole Maps Javascript API to use a Key?
Context
I've inherited a legacy working WP site which is uses Google Maps JavaScript API. As API key is now mandatory the maps displayed correctly, but popup error says 'This page can't load Google ...
1
vote
0
answers
85
views
Need to exceed 1200 referrer url limit in Google Javascript API
So my colleague ran into this error while attempting to add http referrers to our javascript maps api key. Our app needs to be able to hit the api from our client domains, and there are well over 1200 ...
0
votes
1
answer
111
views
Google analytics dashboard response not valid
I want to create a google analytics dashboard with multiple views on my site, but I have a problem.
I followed all the instructions on https://ga-dev-tools.appspot.com/embed-api/basic-dashboard/ for ...
1
vote
0
answers
431
views
Google sheet cell value to html page
I'm doing a little project and I would like to display the top player (Cell A2) of a ranking (sheet: ranking) in an HTML page. My google sheet is shared with everyone.
I found similar questions with ...
3
votes
1
answer
4k
views
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 ...
1
vote
2
answers
9k
views
Google Maps Javascript API not working on mobile site
I'm building a site for a customer who wants a map on their "About Us" page showing their locations. I have the map working and fully functional on the desktop site (www.al-van.org/jake/aboutUs.html) ...
2
votes
2
answers
3k
views
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 } = ...
0
votes
0
answers
144
views
Google Maps API - matching a request with the asynchronous response
I'm using the google maps distance matrix javascript API to query the travel time from one point to about 50 destinations.
in order to do this, I need to break my query up into multiple chunks, since ...
1
vote
0
answers
35
views
Is there a Google javascript plugin which allow website to get user's email with single click?
Is there a google email javascript product/SDK that provide user with just a single click button to subscribe to a newsletter on the website with the signed account.
I think I saw one on some website ...
0
votes
1
answer
269
views
Google Drive API Share document for offline writing/updating
I have created a web app which is making use of Google Drive API/ REST v2 (https://developers.google.com/drive/v2/web/about-sdk) to perform actions such as create/update/rename/delete of documents etc....
0
votes
1
answer
95
views
Streets change their width while zooming in Google Javascript API
I try to put some rectangles on a styled map which can be zoomed in and out. I noticed that every time I change the zoom level from e.g. 17.5 to 17.6, the streets are changing their width and because ...
7
votes
1
answer
7k
views
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 ...
1
vote
1
answer
1k
views
How does Google One-Tap manage my refresh tokens? How does it differ from GAPI?
In the documents of Google One-Tap sign in, it says:
Returning users are signed in automatically, even when they switch devices or platforms, or after their session expires.
Question 1:
But it doesn'...
2
votes
0
answers
1k
views
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:
...
0
votes
1
answer
651
views
How can I impersonate an admin user from Google API in Javascript?
I am trying to make a request for gapi.client.directory.users.list with the following parameters:
'customer': 'my_customer',
'maxResults': 100,
'orderBy': 'email'
getting a success result when my ...