google-spreadsheet-api

Google Sheets API “update” method Http Error 400

旧巷老猫 提交于 2019-12-18 17:06:07
问题 I am trying to make a python script that reads and writes to a google spreadsheet. I've basically copied the python quickstart script at https://developers.google.com/sheets/quickstart/python and modified it using the reference at https://developers.google.com/resources/api-libraries/documentation/sheets/v4/python/latest/. Everything works fine with the "get" method shown in the quickstart script. I can read the sheet with no errors. To use "update" instead of "get" (write to the sheet

Browser Pop up in Google Apps Script

假如想象 提交于 2019-12-18 13:48:24
问题 Background: I have prepared a form in HTML Service in Google apps script which I call with DoGet function from Code.gs. my doget function function doGet() { return HtmlService.createTemplateFromFile('HTMLUI').evaluate(); } Once published it presents a simple browser form with some labels, input box, submit, reset and find buttons on it. The user(s) will input information click submit and the data will get stored in a spreadsheet (background). - Working fine till here. Now when the user clicks

Google Sheets API v4 - How to get the last row with value?

微笑、不失礼 提交于 2019-12-17 19:39:22
问题 How to get the last row with value in the new Google Sheets API v4 ? i use this to get a range from a sheet: mService.spreadsheets().values().get("ID_SHEET", "Sheet1!A2:B50").execute(); how to detect the last row with value in the sheet ? 回答1: You can set the range to "A2:D" and this would fetch as far as the last data row in your sheet. 回答2: I managed to get it by counting the total rows from current Sheets. Then append the data to the next row. rowcount = this.mService.spreadsheets().values

Automate Google Spreadsheet data load from external database

♀尐吖头ヾ 提交于 2019-12-17 17:15:51
问题 I have a shared Google spreadsheet. Some columns of a worksheet must be filled with data (SQL query) that exist in a DB server (PostgreSQL). Also the data load must be scheduled to be done automatically (e.g. at 1.00 o'clock every day) . Finally I need some tweaks in the spreadsheet (e.g after the load to put the datetime in the name of the worksheet or send a confirmation email etc) What is the best and easiest approach to achieve this? (I start looking Google app scripts and Google Sheets

Write data to Google Sheet using Google Sheet API V4 - Java Sample Code [closed]

前提是你 提交于 2019-12-17 16:43:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I have a developed a test automation framework that writes pass or fail values for test cases in excel sheet currently. We have decided to migrate to Google Sheets. Can anyone provide a sample java code to Write data to Google Sheet using Google Sheet API V4? I had a look sheet documentation but it was not clear

How to automatically import data from uploaded CSV or XLS file into Google Sheets

北城余情 提交于 2019-12-17 01:40:41
问题 I have a legacy database system (not web accessible) on a server which generates CSV or XLS reports to a Google Drive folder. Currently, I am manually opening those files in Drive web interface and converting them to Google Sheets. I would rather this be automatic so that I can create jobs that append/transform and graph the data in other sheets. Is it possible to output a native .gsheet file? Or is there a way to convert CSV or XLS to .gsheet programmatically after saving it to Google Drive

Data label Google spreadsheet Column chart

瘦欲@ 提交于 2019-12-14 03:49:05
问题 I have created a column chart in Google spreadsheet, but it is not showing data label explicitly. I need data value to be shown on top of each bar of column chart. Currently, that is showing only as tool tip, but I require it to be always visible. I have not used any script just created it directly, please provide some way either by script/direct to implement data labels. only direct / apps script but no java script as I only need to view it on my spreadsheet. here is link of sheet: https:/

How do you manipulate an inserted object in Google Sheets?

纵饮孤独 提交于 2019-12-14 02:37:01
问题 Insert an object in sheets (ex: https://developers.google.com/apps-script/reference/spreadsheet/sheet#insertImage(String,Integer,Integer)): var obj = sheet.insert{ObjectType}(args.); You can call your charts in sheets: var chart = sheet.getCharts()[0].modify().{params}.build; And can call objects in docs: docs.getBody().findElement(DocumentApp.ElementType.{object type}, null); What's the equivalent for finding objects in sheets, i.e. is there a gsheets dom model like there is for docs? or are

Token invalid - Invalid token: Cannot parse referred token string: Invalid gaia_data.AuthSubToken proto on base64 token

℡╲_俬逩灬. 提交于 2019-12-14 01:21:45
问题 I've strage issue with google spreadsheet via Java application. I had application created which was working without any issue for more than 1 year I even posted an solution for Google API change under Create Spreadsheet using Google Spreadsheet API in Google drive in Java Yesterday I don't know why but it stopped working and now I've only exception: Exception in thread "main" com.google.gdata.client.GoogleService$SessionExpiredException: Token invalid - Invalid token: Cannot parse referred

Google Sheet Script - Repeat Multiple Values X Times

送分小仙女□ 提交于 2019-12-13 20:27:16
问题 I made a working script (below) that repeats the numbers 1-50, 8 times each in a single column (AB). I'm just numbering rows. I'm new to this (like third day ever trying this) and I'm certain there is a more efficient way to do this, I just have no idea what that is. The initial set-up (and changing variables) wouldn't really save time over copy and paste a ton of times. While there are built-in functions (like REPT and ROW) which would get close, it would still require copy/paste 50 times