google-api

Refreshing Tokens with Google API for Google Calendar v3

让人想犯罪 __ 提交于 2019-12-30 11:22:22
问题 I'm trying to use Google API (PHP) to perform a daily sync between a system calendar and the user's Google Calendars. I want a system user to be able to set up access to their calendar once from within the system, then the system can synchronise the calendars each day via a cron job. I have managed to get the entire process working, from authorising the access to syncing the calendars, but I am getting stuck with the token expiry times. The way I thought it worked in v3 was the old token

“Cannot find DriveId. Are you authorized to view this file?”: Even if EXISTING_FOLDER_ID is set manually

依然范特西╮ 提交于 2019-12-30 11:16:09
问题 I am having a look at here from github. I can create a file and a folder successfully by reading the code provided in github. But I am not being able to edit the file or create a file/folder in any specific folder. The main problem would be using emulator, but I am not sure. I am using GenyMotion I have also copied the ID of a file/folder using showMessage("Created a file in App Folder: " + result.getDriveFile().getDriveId()); and showMessage("Created a folder: " + result.getDriveFolder()

Using Google API Java Client on Android, a POST request does not seem to authenticate with Google App Engine app using OAuth

和自甴很熟 提交于 2019-12-30 10:35:23
问题 I have an Android client that needs to authenticate with a python Google App Engine app using OAuth. I followed this article. And was able to successfully do so using an HTTP Get Request. The Android client uses the package com.google.api.client to accomplish this: OAuthHmacSigner _signer; HttpTransport TRANSPORT = new NetHttpTransport(); _signer = new OAuthHmacSigner(); _signer.clientSharedSecret = CONSUMER_SECRET; // STEP1: get a request token OAuthGetTemporaryToken requestToken = new

Google OAuth2 API. Check user has two factor authentication (Not GSuite)

拜拜、爱过 提交于 2019-12-30 10:24:10
问题 I use scopes: https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email but result data of: https://www.googleapis.com/oauth2/v1/userinfo https://www.googleapis.com/oauth2/v3/tokeninfo not contains info about exist two-factor auth on google account. Can I get boolean or another value about it? 回答1: Sorry we don't expose If a user has 2 factor auth or not) through API. We have been thinking about this for a while. We have been doing a lot of things to

google API translate, only a div into page

落爺英雄遲暮 提交于 2019-12-30 10:06:03
问题 I have an HTML page, and I would use Google Translate to translate only a div into my page. <div id="google_translate_element"></div><script> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'it'}, 'google_translate_element'); } </script><script src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> With this code, google translate everything in the page. But if I wanna translate only a piece. How I can do

Integrate oauth2 with native (iOS/Android) mobile application

耗尽温柔 提交于 2019-12-30 09:47:33
问题 I need to integrate OAuth2 in a iOS and Android native application. I have been researching on OAuth2 and mobile applications and found this documentation - Google APIs - Using OAuth 2.0 for Installed Applications The above documentation basically details how to consume Goolge OAuth 2.0 endpoint in mobile applications. Here is what the document says - When registering the application, you specify that the application is a Installed application. This results in a different value for the

Google Drive SDK not returning headRevisionId for google Docs format

折月煮酒 提交于 2019-12-30 07:28:45
问题 I have been working on google drive sync mechanism. I am using Google Drive Python SDK for it. The issue i am having is that the google SDK does not return headRevisionId is file resource's metadata if the file is google MimeType i.e it has been created with google docs. Its important for me to store headRevisionId. Files which are uploaded by user from his local machine does have headRevisionId in its metadata. this issue is for only those google docs. How do i get headRevisionId of such

Google Trends Quota Limit

安稳与你 提交于 2019-12-30 06:49:47
问题 I'm trying to pull data from Google trends and got a "You have reached your daily limit" error after only 2 tries. Is there any way to go around this? I know Google API projects have special quota limits but Google Trends doesn't have an API. I also read that we may need to pass it a cookie file so that it seems like I'm logged in. Has anyone faced this issue before? 回答1: You probably disabled your cookies, which makes Google Trends think you're a robot 回答2: I'm struggling with the same issue

Google Trends Quota Limit

吃可爱长大的小学妹 提交于 2019-12-30 06:48:59
问题 I'm trying to pull data from Google trends and got a "You have reached your daily limit" error after only 2 tries. Is there any way to go around this? I know Google API projects have special quota limits but Google Trends doesn't have an API. I also read that we may need to pass it a cookie file so that it seems like I'm logged in. Has anyone faced this issue before? 回答1: You probably disabled your cookies, which makes Google Trends think you're a robot 回答2: I'm struggling with the same issue

Use google credentials to login into UWP C# app

孤街浪徒 提交于 2019-12-30 06:37:09
问题 I'm trying to make a login for a UWP app that I'm developing for a client that has a @<theircompay>.com email that uses G Suite. It doesn't have to access any user data, they just want it as an authentication so that only people that have a company email can access the app. It would be great if they could login from within the app without having to use a web browser, and even better if it could remember them so they wouldn't have to login every single time. I've been looking at OAuth 2.0 and