google-api

OAuth consent screen - ability to remove application logo: old solution is no longer working

寵の児 提交于 2020-06-27 16:50:27
问题 Question : how to remove an application logo. Solution : previous solution from this answer, https://stackoverflow.com/a/57168008/1992004, is no longer working. Google changed the format of "iconUrl" to "icon" , and uses now the Base64 -encoded data stream, like "icon":"iVBORw0KGgoAAAAN... , instead of the image URL, previously written as "iconUrl":"https://..." . I've tried "icon":"" and many Base64-encoded values like "icon":"IA" , "icon":"Lw" , and some of other - no success. I get console

Android Device Policy sync does not work until done manually

穿精又带淫゛_ 提交于 2020-06-27 08:49:09
问题 We have some android devices attached to Android Management API as fully managed work devices. Now when we push out some changes to the device policy such as Factory Reset Disabled , Adjust Volume Button Disabled or any other such controls, the devices don't sync it immediately. In fact we have to manually open up Android Device Policy and click on Sync for it actually get the changes. This is really troublesome because at times the policy doesn't sync for hours together and the devices don't

Is there any api for reverse image search for android as powerful as Google reverse image search? [closed]

纵然是瞬间 提交于 2020-06-27 05:35:10
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 days ago . Improve this question I want to do reverse image search in my android app. I need some api as powerful as google reverse image search. Is there any google reverse image search api for android? weather free or non-free I also found google cloud vision api but the results - at least in it

Google Drive API read access not granted

两盒软妹~` 提交于 2020-06-26 06:50:51
问题 I am trying to download a random file from a Google Drive using Google Drive API. Although after running the code I got an error message: The user has not granted the app (app_code) read access to the file (filename). How can I grant a read access to the file? I haven't found anything on the internet, and in the API Dashboard either. # Call the Drive v3 API results = service.files().list( pageSize=1000, fields="nextPageToken, files(id, name)").execute() items = results.get('files', []) rand

how to implement Google Login API in VueJS?

╄→гoц情女王★ 提交于 2020-06-25 08:12:42
问题 So I was using the guide and codes from https://developers.google.com/identity/sign-in/web/ When I clicked the button, it works fine, it will redirect me to google login page, and no problem occurs during authentication. Once finished, it redirected me back to the page (vue component) where the button is located. In theory it should call onSignIn method and print out info with console.log , but it didn't happen. Somehow Vue was not able to excute data-onsuccess="onSignIn" . I tried to change

how to implement Google Login API in VueJS?

半城伤御伤魂 提交于 2020-06-25 08:12:00
问题 So I was using the guide and codes from https://developers.google.com/identity/sign-in/web/ When I clicked the button, it works fine, it will redirect me to google login page, and no problem occurs during authentication. Once finished, it redirected me back to the page (vue component) where the button is located. In theory it should call onSignIn method and print out info with console.log , but it didn't happen. Somehow Vue was not able to excute data-onsuccess="onSignIn" . I tried to change

Request specific file permissions with Google Sheets / Google Drive API

岁酱吖の 提交于 2020-06-24 22:22:48
问题 I'm using the Google Sheets API to obtain sheet data for a Java project. All works as expected locally, but I'm using the verbose permissions scope https://www.googleapis.com/auth/spreadsheets which "Allows read/write access to the user's sheets and their properties.". I would prefer to not provide this app access to all of the spreadsheets in my Google Drive (have only done so locally temporarily). Ideally, I'd like to request permission for read/write access to a file using a file's ID. Is

How to use the node google client api to get user profile with already fetched token?

余生长醉 提交于 2020-06-24 09:38:43
问题 Getting a user profile info through curl curl -i https://www.googleapis.com/userinfo/v2/me -H "Authorization: Bearer a-google-account-access-token" Getting a user profile info through node https get request const https = require('https'); function getUserData(accessToken) { var options = { hostname: 'www.googleapis.com', port: 443, path: '/userinfo/v2/me', method: 'GET', json: true, headers:{ Authorization: 'Bearer ' + accessToken } }; console.log(options); var getReq = https.request(options,

How to use the node google client api to get user profile with already fetched token?

一世执手 提交于 2020-06-24 09:38:30
问题 Getting a user profile info through curl curl -i https://www.googleapis.com/userinfo/v2/me -H "Authorization: Bearer a-google-account-access-token" Getting a user profile info through node https get request const https = require('https'); function getUserData(accessToken) { var options = { hostname: 'www.googleapis.com', port: 443, path: '/userinfo/v2/me', method: 'GET', json: true, headers:{ Authorization: 'Bearer ' + accessToken } }; console.log(options); var getReq = https.request(options,

How to get Google OAuth 2.0 Access token directly using curl? (without using Google Libraries)

白昼怎懂夜的黑 提交于 2020-06-24 06:20:58
问题 I'm trying to follow this tutorial to authenticate with Google using their OAuth 2.0 API. However, I would like to make straight curl calls rather than use their libraries. I have obtained my Client ID and Client Secret Key. Now I'm trying to get the access token like this: curl \ --request POST \ --header "Content-Type: application/json" \ --data '{ "client_id":"MY_CLIENT_ID", "client_secret":"MY_SECRET_KEY", "redirect_uri": "http://localhost/etc", "grant_type":"authorization_code" }' \