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-api-js-client
638
questions
-2
votes
0
answers
49
views
Restrict suggestion by city using Place Autocomplete Data API not working
I'm using Google Place Autocomplete Data API to create my own autocomplete https://developers.google.com/maps/documentation/javascript/place-autocomplete-data. I've created a code based on ...
0
votes
1
answer
104
views
How to add an api key to discovery loaded beta endpoint for the google js client library
I'm trying to get support for the file upload endpoint that is part of the betav1 version. Which hasn't been added to the generative ai js library yet.
I can load the discovery doc and call the file ...
1
vote
1
answer
1k
views
Model not found when using gemini 1.5 when I have access to 1.5
When i run the code below i get the following error.
[404 Not Found] models/gemini-1.5-pro-latest is not found for API version v1, or is not supported for GenerateContent. Call ListModels to see the ...
0
votes
1
answer
41
views
google.accounts.oauth2 No refresh token for web client?
I have a web app, basically a bookmarks/links manager, that optionally saves all of its data to a text file on the users Google Drive. This provides both a backup store and sync's the apps data across ...
1
vote
1
answer
47
views
YouTube client-side JavaScript API: how to use thumbnails set?
I can't figure out how to use the gapi.client.youtube.thumbnails.set client-side JavaScript? All the examples I've found are for node.js and use the following syntax:
gapi.client.youtube.thumbnails....
1
vote
1
answer
277
views
I need Oauth2 token for Google Data API with client ID and client secret for React app
I want to fetch data from google analytics via google data api. The request is given below.
export async function fetchAnalyticsData() {
// getAccessToken();
const GA4_PROPERTY_ID = ""...
0
votes
0
answers
63
views
Issues after integrating Google Calendar with React application
I have integrated the Google Calendar with my React application by following this article. (The associated Google Cloud project is still in testing state. Not published.) I have encountered the ...
0
votes
0
answers
12
views
Send Mail with Google API from Frontend JavaScript with JWT
On my website I have a contact field that should send a mail from my own account to my own account when submitted.
Is it possible to send a mail with the Google Mail API from Frontend JavaScript?
My ...
0
votes
0
answers
91
views
Client ID undefined in initTokenClient call
I need to acquire access token for accessing google sheets api. This is a code inside Next.js page, which is also denoted as 'use client'.
Google api library script is loaded like so:
<Script
...
0
votes
1
answer
602
views
google.accounts.oauth2 TokenClient, how to get refresh token
Using gapi my goal is to authenticate the user, then save their refresh token, which is to be later used for performing background tasks on the server side.
For this I have made a simple ...
0
votes
0
answers
217
views
can can I resolve the cross origin opener closed window error
type here
I have integrated the google sign in option into my web appication and when i am trying to use that sign in option the google sign in window which usually pops when we signin with google id ...
0
votes
0
answers
57
views
How i can solve this error in HTML, google signin new library. Problem with signout button
I have this HTML and JS code:
<script src="https://accounts.google.com/gsi/client" async defer></script>
<div class="loginButton" id="loginButton">
&...
0
votes
0
answers
22
views
Unable to use Google's text-to-speech API (requested via service account) after hosting backend on Fly.io
I have built a webapp with a backend expressJS server that uses Google's text-to-speech API (which the app requests via a service account) to convert text to speech.
Code that converts text to speech:
...
1
vote
1
answer
56
views
Remembering Permission from Google Calendar API - Javascript
Following the code from: https://developers.google.com/calendar/api/quickstart/js
It states that "Authorization information is stored in the file system, so the next time you run the sample code, ...
0
votes
1
answer
81
views
How can I re-initialize gapi on page refresh using Google oAuth in React?
I've been working on integrating Google Sign-In for my application and have run into an intriguing problem. While the sign-in process is seamless and works as expected, I've noticed that upon ...