google-spreadsheet-api

OAuth2 authorization from Java/Scala using google gdata client API

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-11 11:30:14
问题 How would you perform the same flow as the Google .Net sample at subsection "Performing OAuth 2.0", using an equivalent Java api? That .Net sample I am trying to mimic using Java api seems fit for sending an api request to create an authorization url, then assumes I would use that url in a browser to obtain an access code... thus allowing server-side code to use google spreadsheets api thereafter, for that one google account. The closet Google Java api class I spotted is OAuthHelper, but it

Google Apps Script Additional Sorting Rules

有些话、适合烂在心里 提交于 2020-01-10 20:03:34
问题 I am working on a Google Apps Script spreadsheet application, and one of the abilities I would like the program to have is to automatically sort a series of form responses based on data from 2 different columns. So I would want to sort it by the data in column 16 and then sort by column 1. I can achieve this functionality manually using the method at: https://drive.googleblog.com/2010/06/tips-tricks-advanced-sorting-rules-in.html Currently I am running the Spreadsheet.sort(column, ascending)

is it possible to know the rows result of a filter in a Google Spreadsheet?

好久不见. 提交于 2020-01-07 03:29:22
问题 I want to know the rows result of a filter in Google App Script but I dont achieve obtain them, I always obtain all the rows of the selection or the sheet. I've investigated and it seems that it is impossible with this API. Do you know if it is true or if exist another way to obtain these rows?. Thx function docReport() { try { splashScreen("Generando informe..."); var activeSheet = SpreadsheetApp.getActiveSheet(); var numberOfColumns = activeSheet.getLastColumn(); var numberOfRows =

How to write the MIN, MID, MAX enums in Google Sheets when trying to create gradient conditional formatting?

岁酱吖の 提交于 2020-01-06 06:37:45
问题 How can I use an InterpolationPointType enum in the following script? See the commented lines with the hand pointers to see where I'm hitting an error: Invalid value at 'requests[0].add_conditional_format_rule.rule.gradient_rule.midpoint.type' (TYPE_ENUM) I'm excited about what I'm designing here and think I'm close to achieving a script that can dynamically add color gradient conditional formatting to a Google Sheet. But I haven't found a way around this enum problem even when looking at

How to write the MIN, MID, MAX enums in Google Sheets when trying to create gradient conditional formatting?

≯℡__Kan透↙ 提交于 2020-01-06 06:37:07
问题 How can I use an InterpolationPointType enum in the following script? See the commented lines with the hand pointers to see where I'm hitting an error: Invalid value at 'requests[0].add_conditional_format_rule.rule.gradient_rule.midpoint.type' (TYPE_ENUM) I'm excited about what I'm designing here and think I'm close to achieving a script that can dynamically add color gradient conditional formatting to a Google Sheet. But I haven't found a way around this enum problem even when looking at

formatting trendline using setoption() in google apps script

孤人 提交于 2020-01-05 20:01:56
问题 I am using Google Apps Script to create a scatterplot with a trendline. I have taken an idea from Google Charts API on how to create the trendline, and this has been successful. But, the approach to formatting the trendline does not work as the Charts API describes. I have used setOption("trendlines", "0: {}") to create my trendline, but it does not matter what I put in between the curly brackets, the formatting that I add there doesn't seem to work. I would like the trendline to have smaller

Google Spreadsheet service Using OAuth 2.0 - C#

微笑、不失礼 提交于 2020-01-05 02:58:22
问题 I'm facing an issue with Google Spreadsheet service. Previously I used below code to call my spreadsheet then retrieve data and save into my local database. SpreadsheetsService service = new SpreadsheetsService("MySpreadSheet"); service.setUserCredentials(userName, password); string token = service.QueryClientLoginToken(); // Now 404 error SpreadsheetQuery query = new SpreadsheetQuery(); SpreadsheetFeed feed = service.Query(query); foreach (SpreadsheetEntry spreadsheet in feed.Entries){ //

Import google calendar data into existing google spreadsheet

喜夏-厌秋 提交于 2020-01-05 02:30:11
问题 I am trying to keep a record of google calendar entries in a google spreadsheet to further process the data. I have the following code, which I borrowed from other sources: function importEvents(){ var startOfDay = new Date(); startOfDay.setUTCHours(0); startOfDay.setMinutes(0); startOfDay.setSeconds(0); startOfDay.setMilliseconds(0); var endOfDay = new Date(startOfDay.getTime() + 24 * 60 * 60 * 1000); var Calendar = CalendarApp.getCalendarById("[calendarIDhere]"); var events = Calendar

Write to a Google spreadsheet from JavaScript using the Public API access (no OAuth)

青春壹個敷衍的年華 提交于 2020-01-04 17:21:25
问题 I'd like to allow a user to visit one of my sites, enter some information into a field, and then save that information into a Google Spreadsheet via JavaScript. I don't want the user to login via Google or have to do any special authentication. It's Ok if the spreadsheet needs to be open to public; the data's not sensitive. I don't want to use a Google Form, I want to have full control over the client-side UI. I've been reading through the Google developer docs, but they only make mention to

Write to a Google spreadsheet from JavaScript using the Public API access (no OAuth)

我只是一个虾纸丫 提交于 2020-01-04 17:21:05
问题 I'd like to allow a user to visit one of my sites, enter some information into a field, and then save that information into a Google Spreadsheet via JavaScript. I don't want the user to login via Google or have to do any special authentication. It's Ok if the spreadsheet needs to be open to public; the data's not sensitive. I don't want to use a Google Form, I want to have full control over the client-side UI. I've been reading through the Google developer docs, but they only make mention to