google-api

NotLoadingAPIFromGoogleMapsError even when loading correct URL

房东的猫 提交于 2021-02-07 17:10:53
问题 I am getting the NotLoadingAPIFromGoogleMapsError error for some users even if the correct URL is being used: (pug syntax): script(type='text/javascript' src='https://maps.googleapis.com/maps/api/js?key=MY_KEY&libraries=places') It seems to be resulting from the Authentication API call generated from the script. Anyone else have this issue? How did you solve it? 回答1: Hopefully others will find this useful - I received an answer from Google as follows: The API session token expires if someone

Why Google Translate API doesn't accept API-Key in JSON request body?

安稳与你 提交于 2021-02-07 12:55:23
问题 I'm new to use Google Could Platform. I tried Translation API's tutorial. By some reason I want to use API-Key for its authentication. but API doesn't accept key in JSON Request, though it accepts same key in HTTP query parameter. Is this a restriction of Google Translation API? or do I have any mistake? Following is what I tried: Worked when API-key is passed as a query parameter $ curl -H 'Content-Type: application/json' 'https://translation.googleapis.com/language/translate/v2?key

Google Sign In with redirect

不打扰是莪最后的温柔 提交于 2021-02-07 10:36:31
问题 I'm trying to implement a simple google sign in, and since the popup is often blocked by the browser, I've set ux_mode: "redirect" This is what I did: //Inside https://example.com/login/index.php onload = function() { gapi.load("auth2", function() { var auth = gapi.auth2.init({ client_id: "{MY_CLIENT_ID}.googleusercontent.com", fetch_basic_profile: false, scope: "email", cookie_policy: "none", ux_mode: "redirect", redirect_uri: "https://example.com/login/auth.php" }); auth.attachClickHandler

Picker API - manually set access_token

时光总嘲笑我的痴心妄想 提交于 2021-02-07 10:22:25
问题 I am trying to use the Picker API using this guide, and following the guide works fine. However, my app uses Google sign-in itself to log in the user. Therefore, the auth step in this guide is redundant, as I already have an access_token from when the user logged in (I obtain this by exchanging the auth_code on the server using the node js google api client lib). However, when I try to call the function setOAuthToken(oauthToken) , using this old value of access_token, it shows me this screen

Picker API - manually set access_token

社会主义新天地 提交于 2021-02-07 10:21:29
问题 I am trying to use the Picker API using this guide, and following the guide works fine. However, my app uses Google sign-in itself to log in the user. Therefore, the auth step in this guide is redundant, as I already have an access_token from when the user logged in (I obtain this by exchanging the auth_code on the server using the node js google api client lib). However, when I try to call the function setOAuthToken(oauthToken) , using this old value of access_token, it shows me this screen

Obtain an id token in the Gmail add-on for a backend service authentication

ⅰ亾dé卋堺 提交于 2021-02-07 06:11:56
问题 The background I'm using the Google Apps Script to create a Gmail Add-on. Via this plugin, I would like to connect to my backend server (a non-Google service) using a REST service request. The request has to be authorised. When authorised, I could then make requests to that server to receive data associated with that user in the database. I'm already using Google sign-in in my webapp to sign in to the backend service - at the front end, I receive the id_token inside of the GoogleUser object

Obtain an id token in the Gmail add-on for a backend service authentication

浪子不回头ぞ 提交于 2021-02-07 06:11:18
问题 The background I'm using the Google Apps Script to create a Gmail Add-on. Via this plugin, I would like to connect to my backend server (a non-Google service) using a REST service request. The request has to be authorised. When authorised, I could then make requests to that server to receive data associated with that user in the database. I'm already using Google sign-in in my webapp to sign in to the backend service - at the front end, I receive the id_token inside of the GoogleUser object

Obtain an id token in the Gmail add-on for a backend service authentication

为君一笑 提交于 2021-02-07 06:09:12
问题 The background I'm using the Google Apps Script to create a Gmail Add-on. Via this plugin, I would like to connect to my backend server (a non-Google service) using a REST service request. The request has to be authorised. When authorised, I could then make requests to that server to receive data associated with that user in the database. I'm already using Google sign-in in my webapp to sign in to the backend service - at the front end, I receive the id_token inside of the GoogleUser object

Google picker asking to sign in even after providing access token

家住魔仙堡 提交于 2021-02-07 04:17:16
问题 Firstly, after some research I found out that many people have faced this issue but I did not find any concrete solution to this. Coming to the issue, Objective: I want to integrate google drive with my app so that user can upload files to their drive from my app. So user first has to integrate their drive with the app and then subsequently use google picker to upload/import files. Once Google drive is integrated user should not see auth screen again instead directly google picker should open

Google picker asking to sign in even after providing access token

£可爱£侵袭症+ 提交于 2021-02-07 04:15:18
问题 Firstly, after some research I found out that many people have faced this issue but I did not find any concrete solution to this. Coming to the issue, Objective: I want to integrate google drive with my app so that user can upload files to their drive from my app. So user first has to integrate their drive with the app and then subsequently use google picker to upload/import files. Once Google drive is integrated user should not see auth screen again instead directly google picker should open