google-api

Google OAuth2 API Refresh Tokens

落爺英雄遲暮 提交于 2019-12-30 05:15:06
问题 I'm using the google-auth-library-nodejs library to integrate into a number of GMail accounts, to get lists of emails. My process flow is simple: 1) Try to authorize the client, using this function: function _authorise(mailBox, callback) { let auth = new googleAuth(); let clientId = eval(`process.env.GMAIL_API_CLIENT_ID_${mailBox.toUpperCase()}`); let clientSecret = eval(`process.env.GMAIL_API_CLIENT_SECRET_${mailBox.toUpperCase()}`); let redirectUri = eval(`process.env.GMAIL_API_REDIRECT_URI

GoogleUser.getAuthResponse() doesn't contain access_token

懵懂的女人 提交于 2019-12-30 03:47:06
问题 UPDATE2: I revisited this issue and have solved the problem by carefully following the doco linked below. But first, for those who are struggling with this, you are in good company. There are so many versions of the doco from Google it is confusing! Do you include platform.js or client.js in your html? Do you load gapi.auth or gapi.auth2? Do you use gapi.auth2.render or gapi.auth.authorize, or gapi.auth2.init, and so on. The way that returns an access_token (as of this article date) is linked

Google Translate API always returning 'Daily Limit Exceeded'

一曲冷凌霜 提交于 2019-12-30 03:00:14
问题 I'm trying to get the google translate API up and running. On the getting started guide, it gives the following example: https://www.googleapis.com/language/translate/v2/detect?key={MyAppId}&q=google+translate+is+fast I just want to get this working for now, so I'm just trying to get it working view via a browser post, so I created a testing web application (screenshot): and grabbed the API key, replaced the sample URL's key with my API key. I get the following response: { "error": { "errors"

Client is unauthorized to retrieve access tokens using this method

喜欢而已 提交于 2019-12-29 08:18:29
问题 I have a custom dashboard in Ruby on Rails project with data collected from Google Analytics. I user Google Analytics Reporting V4 API and a Service Account to authenticate. My code works well if I don't impersonate user authorization.sub = 'xxx@mail.com' and If I do it, I get unauthorized_client error but not all the times. Sometimes it works, and sometimes not. This is my code: scope = [Google::Apis::AnalyticsreportingV4::AUTH_ANALYTICS_READONLY] view_id = 'xxxxxx' ENV['GOOGLE_APPLICATION

You do not have sufficient permissions to view this page

天大地大妈咪最大 提交于 2019-12-29 05:38:27
问题 I can't enter Credentials or Consent screen via Google Console Developer I'm admin, sometimes it's allow but most of the time it not I don't know why. Have anyone be like this? NOTE I also use incognito mode , clear cache, clear data but no hope. 回答1: In top left corner there is a spinner for project selection(see the attached image), if you select some other project from the drop down of spinner the issue most probably will be solved. You can select back your project from that menu. It

You do not have sufficient permissions to view this page

纵饮孤独 提交于 2019-12-29 05:38:23
问题 I can't enter Credentials or Consent screen via Google Console Developer I'm admin, sometimes it's allow but most of the time it not I don't know why. Have anyone be like this? NOTE I also use incognito mode , clear cache, clear data but no hope. 回答1: In top left corner there is a spinner for project selection(see the attached image), if you select some other project from the drop down of spinner the issue most probably will be solved. You can select back your project from that menu. It

Google Calendar API OAuth2 Troubles on Android Honeycomb

南笙酒味 提交于 2019-12-29 05:28:08
问题 I am working on an Android Honeycomb (v3.0) application that has a requirement of communicating with the Google Calendar API. I would like to allow my application to access a particular Google account's Calendar data in order to read and create events. Unfortunately, I ran into a problem with authorization using OAuth2. Here's what I have so far: 1) The Google account whose calendar I would like to access is registered within the Android device I am working with. 2) I enabled the Calendar API

How do I connect Android apps with Google Sheets spreadsheets?

試著忘記壹切 提交于 2019-12-29 04:01:25
问题 I'm trying to do an Android app that needs to work with Google spreadsheet API. I'm new in this, so I'm starting with the version 3 of the api: https://developers.google.com/google-apps/spreadsheets/ I followed all the steps, downloaded all the jar files to lib subfolder in my project folder and then I added to the build path in Eclipse as usual. So although there is no Java example to perform Oauth 2.0, I just tried to declare: SpreadsheetService service = new SpreadsheetService("v1"); but

Write to GoogleSheet via API with Java

旧巷老猫 提交于 2019-12-29 01:34:13
问题 I am trying to write a value to a cell with Google Sheet API with Java. For reading I used guide from Java Quickstart which worked fine for me. For writing to Google Sheet I use: service.spreadsheets().values().update(spreadsheetId, "Sheet1!A4:H", response).execute(); This function outputs the following error while run: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden { "code" : 403, "errors" : [ { "domain" : "global", "message" : "Request had insufficient

Write to GoogleSheet via API with Java

大城市里の小女人 提交于 2019-12-29 01:34:10
问题 I am trying to write a value to a cell with Google Sheet API with Java. For reading I used guide from Java Quickstart which worked fine for me. For writing to Google Sheet I use: service.spreadsheets().values().update(spreadsheetId, "Sheet1!A4:H", response).execute(); This function outputs the following error while run: com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden { "code" : 403, "errors" : [ { "domain" : "global", "message" : "Request had insufficient