google-api

Will an old refresh token still be valid if a new refresh token get issued?

江枫思渺然 提交于 2021-01-28 08:55:47
问题 My application uses a Google refresh token (to get access_token from Google). I have two questions here: I know Google refresh token does not expire for 6 months (see the doc here); say I got a refresh token refresh_token_old at 5:00pm on Jan 1st , and my application requests another refresh token refresh_token_new from Google at 5:30pm on Jan 1st (i.e., just 30 minute later), will the old refresh token still be valid (apparently the old one has not been expired)? -- basically, I am asking if

Will an old refresh token still be valid if a new refresh token get issued?

随声附和 提交于 2021-01-28 08:42:19
问题 My application uses a Google refresh token (to get access_token from Google). I have two questions here: I know Google refresh token does not expire for 6 months (see the doc here); say I got a refresh token refresh_token_old at 5:00pm on Jan 1st , and my application requests another refresh token refresh_token_new from Google at 5:30pm on Jan 1st (i.e., just 30 minute later), will the old refresh token still be valid (apparently the old one has not been expired)? -- basically, I am asking if

How to get the next 10,000 data from google analytics api using php?

戏子无情 提交于 2021-01-28 08:06:15
问题 Good day, Is there a way to get the next 10,000 data from google analytics API? I would want to get the next set of data after getting the first 10,000. Is there a way to accomplish that? I am using google analytics api php client libraries. Here is my code: <?php $analytics = initializeAnalytics(); $response = getReport($analytics); printResults($response); function initializeAnalytics() { $KEY_FILE_LOCATION = __DIR__ . 'MyFileDirectory'; // Create and configure a new client object. $client

Google Drive API Python Service Account Example

那年仲夏 提交于 2021-01-28 07:37:07
问题 Is it possible to authenticate against the Google Drive API using a Google Service Account, rather than an OAuth flow ? The Python examples for Google Drive use OAuth - Google drive Python Quick start However I can't find any Service Account examples. The majority of the other Google APIs I use (Translate, Cloud Vision) do use Service Account however, so I'd like to deprecate my Google Drive OAuth code for consistency. 回答1: The best service account python example that i know of is the one for

Gmail-API request quota at a user level

为君一笑 提交于 2021-01-28 07:24:28
问题 Note: This question is about something that I do not understand in the documentation here: https://developers.google.com/gmail/api/v1/reference/quota#concurrent_requests Concurrent Requests The Gmail API enforces a per-user concurrent request limit (in addition to the per-user rate limit). This limit is shared by all Gmail API clients accessing a given user and ensures that no API client is overloading a Gmail user mailbox or their backend server. enforces a per-user concurrent request limit

Google api redirect uri issue while reading google sheet from java

醉酒当歌 提交于 2021-01-28 06:12:26
问题 I am using oauth2 google drive API to read data from a google sheet in Java. I have an working sample on my local machine. But when I deploy it on the remote server, at the time of authentication the API returns a URL which is to be opened in browser. The URL is like below : https://accounts.google.com/o/oauth2/auth?access_type=online&approval_prompt=auto&client_id=my.client.id&redirect_uri=http://**localhost:58305**/Callback&response_type=code&scope=https://www.googleapis.com/auth/drive

Android Google Services Location costs and limitations

我的未来我决定 提交于 2021-01-28 05:27:46
问题 I would use in my app the location service provided by Google Services and I am in trouble understanding how it works. I need to check user position for an amount higher then 1000 times so I need to enable the function that allows me to do 150 000 requests every 24h (or maybe I am in wrong?). I have a Developer account on Google Play (paid 1 time for ever). To be able to check user position higher then 1000 times for day what have I to do? Do I pay for this ? How much ? What I found : https:/

How can I use Google Apps Script to move files between personal Google Drives and Team Drives?

主宰稳场 提交于 2021-01-28 05:07:05
问题 Recently, I gained access to Google Team Drive via Google's Team Drive early adopter program. I created a Google Docs file called Hello, world! , and then wrote a short Google Apps Script function which uses an addFile() method to update which Google Drive folder the file is attached to: function move_or_link_file() { var source = DriveApp.getFolderById("<sourceID>"); var fileiter = source.getFilesByName("Hello, world!"); var dest = DriveApp.getFolderById("<destID>"); while (fileiter.hasNext(

NextPageToken gives invalid input error, 400 - Google Directory API ChomeDevices

别来无恙 提交于 2021-01-28 05:05:53
问题 I have to fetch 250K chromebooks from google workspace (Gsuite), I am using Admin Directory API to retrieve JSON data from Google. The response returns in chunks of 200 records, in the response is included a nextPageToken , I use that next page token to retrieve the next 200 and so on. After an hour, of using the nextPageToken attached from the previous request, However Google returns with error 400, {error_code: 400, "message"=>"Invalid Input: CMiJhq7-5ewCEp0BCm737N8GN......"}, Note: This

Google big query API returns “too many free query bytes scanned for this project”

前提是你 提交于 2021-01-28 05:00:02
问题 I am using Google's big query API to retrieve results from their n-gram dataset. So I send multiple queries of "SELECT ngram from trigram_dataset where ngram == 'natural language processing'". I'm basically using the same code posted here (https://developers.google.com/bigquery/bigquery-api-quickstart) replaced with my query statement. On every program run, I have to get a new code of authorization and type it in the console, which gives authorization to my program to send queries to google