Questions tagged [google-api-javascript-client]
62 questions
1
vote
2 answers
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 files that will upload to that URL.
const img = await…

Marcos Barrera
- 35
- 1
- 6
1
vote
1 answer
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 JavaScript API. I can print it to the console inside…

edfrommathclass
- 33
- 4
1
vote
0 answers
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. User enters email, password and submits form.…

Oles
- 11
- 1
1
vote
1 answer
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 = […

Jeet Andhariya
- 28
- 5
1
vote
0 answers
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
initGoogleAccounts() {
gapi.load('auth2', () => {
…

Puneet Uppal
- 195
- 10
1
vote
2 answers
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 PHP file as I want (which would mean it returns…

MBS
- 72
- 7
1
vote
1 answer
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={z}&s=Ga
The app uses the imagery as background in a PDF report…

cate
- 21
- 2
1
vote
0 answers
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 can choose the account.
if user is logged-in in…

ajayv
- 641
- 6
- 21
1
vote
1 answer
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 Maps correctly' and maps are grayed and…

g.pickardou
- 32,346
- 36
- 123
- 268
1
vote
0 answers
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 of them. Has anyone hit this limit, if so, how…

Stickman
- 138
- 7
1
vote
0 answers
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 several answers. But it seems that each answer is…

sexyuser1
- 29
- 4
1
vote
0 answers
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 but I cant remember and searched but wasnt able…

Bharat D Bhadresha
- 742
- 8
- 23
1
vote
1 answer
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't say anywhere how it does this? Is the user…

mesqueeb
- 5,277
- 5
- 44
- 77
1
vote
2 answers
How can you detect that you are logged out with the Google login API?
I am using the Google login client API for JavaScript. The site I am working on has two relevant pages. It has a login page, and it has a user profile page. The login page obviously has a Google login button on it. You should only be able to view…

Grant Gryczan
- 1,314
- 16
- 24
1
vote
1 answer
How to grant access to certain folders in my Google Drive to users logging in via Google Drive API
I was playing with Java Script Google Drive API and was able to successfully fetch my google drive content via API.
Now lets say i have certain files in certain folders and on logging in to my App by other users, they can access these files in my…

Wolverine
- 455
- 3
- 8
- 26