google-apis-explorer

Not returning refresh token from auth code

只愿长相守 提交于 2019-12-22 05:59:07
问题 I'm using googleapis package from node to get refresh token and access token from auth code passed from front-end but every time I get the following error. { error: 'redirect_uri_mismatch', error_description: 'Bad Request' } I know this error comes up when we mismatch URL passed as a callback URL in the console. https://console.cloud.google.com/apis/credentials but I've already set up the correct URL in the console. still not sure what's the problem with the code. Using /auth to pass the

Is it possible to load google photos metadata into google sheets?

馋奶兔 提交于 2019-12-22 01:03:36
问题 I have a project where I have scanned 10,000 family pictures from as far back as the 1900's and I am organizing them in Google Photos. I have a spreadsheet where I was keeping track of the proper dates and captions for the entire collection. I would organize a few at a time but then recently found out about the google photos API. I would like to use something like the methods Method: mediaItems.list or Method: mediaItems.search to get the data from my photos into the spreadsheet to manage.

How to update a user's externalId using Java

∥☆過路亽.° 提交于 2019-12-20 07:04:12
问题 I'm trying to update a user with an externalId based on the Google Admin SDK documentation. UserExternalId externalId = new UserExternalId(); externalId.setType( "account" ); externalId.setValue( "test" ); User user = new User(); user.setExternalIds( externalId ); try { User update = directory.users().update( "USERKEY", user ).execute().setExternalIds( externalId ); LOGGER.info("Response from google: " + update.toPrettyString()); User full = directory.users().get( "USERKEY" ).setProjection(

Error: Missing end time. Google Calendar API with Node JS

别等时光非礼了梦想. 提交于 2019-12-20 05:29:12
问题 I am realising example from Google Calendar API instruction web page. I put the code into example.js file and start it with node example.js in command line. var fs = require('fs'); var readline = require('readline'); var google = require('googleapis'); var googleAuth = require('google-auth-library'); // If modifying these scopes, delete your previously saved credentials // at ~/.credentials/calendar-nodejs-quickstart.json var SCOPES = ['https://www.googleapis.com/auth/calendar']; var TOKEN

Google Sheets API: The caller does not have permission

一世执手 提交于 2019-12-18 10:36:18
问题 I'm trying to read the document from the cron: https://sheets.googleapis.com/v4/spreadsheets/<sheet_id>?key=<api_key> My document is available to anyone with the link. My #1 key settings: Application restrictions: - IP addresses (web servers, cron jobs, etc.) - I added my external IP address. - API restrictions - none My #2 key settings: Application restrictions: - IP addresses (web servers, cron jobs, etc.) - I added my external IP address. - API restrictions - Google Sheets API My #3 key

posting to google plus through api

夙愿已清 提交于 2019-12-17 17:00:17
问题 Trying to find how to post to google plus wall from PHP but got 403 even using the api explorer at got the { "error": { "errors": [ { "domain": "global", "reason": "forbidden", "message": "Forbidden" } ], "code": 403, "message": "Forbidden" } } My PHP code looks like: $client = new \Google_Client(); $client->setApplicationName("Speerit"); $client->setClientId($appId); $client->setClientSecret($appSecret); $client->setAccessType("offline"); // offline access $client->setIncludeGrantedScopes

List publicly shared files from google drive using service account key not getting public files

无人久伴 提交于 2019-12-14 00:39:48
问题 I have been facing problem while coding that while using service account key and using drive.files.list API, i am not able to get files, though i have shared all the files publicly const { google } = require('googleapis'); const drive = google.drive('v3'); const jwtClient = new google.auth.JWT( client_email, null, private_key, ['https://www.googleapis.com/auth/drive'] ); jwtClient.authorize(function (err, tokens) { if (err) { console.log(err); return; } else { console.log("Successfully

Base64 decoding failed for Google Speech API

痴心易碎 提交于 2019-12-13 16:32:23
问题 I tried to send a POST request to https://speech.googleapis.com/v1/speech:recognize using the JSON and the code fragment below. Somehow google responsed that fail to decoding Base 64 in my request. { "config": { "encoding": "LINEAR16", "sampleRateHertz": 16000, "languageCode": "ja-JP", "maxAlternatives": 5, "profanityFilter": false }, "audio": { "content": "ZXCVBNM" }, } String pcmFilePath = "/storage/emulated/0/Download/voice8K16bitmono.pcm"; File rawFile = new File(pcmFilePath); byte[]

R Shiny rCharts https server failing to load fonts.googleapis.com

喜欢而已 提交于 2019-12-12 15:11:01
问题 I got a shiny https server running, and I tried to use rCharts to plot a dTable so that I could do multi-column sort from dataTables (see https://stackoverflow.com/a/20956772/719016). What I could deduct from the Console output and this explanation (http://yoast.com/wordpress-ssl-setup/) is that this rCharts table is trying to load fonts from fonts.googleapis.com via the templates/default.html in shiny: [blocked] The page at 'https://my.server.com/shiny/shiny_dev/' was loaded over HTTPS, but

How do I delete a list of files meeting criteria with Google Drive API and Javascript?

岁酱吖の 提交于 2019-12-12 04:45:32
问题 I want to get a list of things with get list (which I have already coded in), but next, I want a delete button that deletes all the things on that list. How can I do that with Google Drive SDK and Javascript? Example, if my criteria is: q: "starred = "+test+" and viewedByMeTime < '"+n+"" How do I delete every single file that meets that criteria? References: https://developers.google.com/drive/v2/reference/files/delete https://developers.google.com/drive/v2/web/search-parameters I tried