google-spreadsheet-api

Google Script: Conditionally copy rows from one sheet to another in the same spreadsheet

心不动则不痛 提交于 2019-11-30 09:56:11
I read Google Script: Conditionally copy rows from one spreadsheet to another and could not make it work for me. I need a script that will allow me to do the quoted text below. Please feel free to edit my spreadsheet to make a complete working script. I will keep the spreadsheet publicly available for anyone to copy the script for their own use. I really know nothing about script writing so I need it all spelled out. Sorry, I'm such a noob with all this, but this will help me learn. https://docs.google.com/spreadsheet/ccc?key=0AoJdwy8V1ldHdFA5M1M1Wlp1NHZhcmxJOUZKVEU4X3c&usp=sharing If Column B

how to work with spreadsheets using Google Drive API on iOS

时光毁灭记忆、已成空白 提交于 2019-11-30 08:51:19
I'm trying to write an iPhone app that stores its database in a Google spreadsheet. I followed the DrEdit example here which uses the Drive API to read/write plain text files to Google Drive. I'm trying to modify the example app to work with spreadsheets instead. I was able to upload a csv file and ask Google to convert it. However, what I really want is to directly work with mimeType: "application/vnd.google-apps.spreadsheet". I'm very new at this and it would be extremely helpful if someone could point me to an example. For starters, I'd like to achieve something like the following - (void

Access Google spreadsheet API without auth token

故事扮演 提交于 2019-11-30 07:25:35
问题 I have created Google Spreadsheet, and given edit access to all (can edit even without login). Here is the link. I would like to update this sheet with Google Spreadsheet API. But I am getting error. My requirement is update the sheet thru API even without access credential. 回答1: It is possible to write to spreadsheet without OAuth or API Keys . You need to use Service Account Keys . Here is what I did for my Node.js environment. Get a service account key from https://console.cloud.google.com

How to programmatically create a Google Docs spreadsheet WITH CONTENT?

六月ゝ 毕业季﹏ 提交于 2019-11-30 03:26:14
问题 I have found multiple StackOverflow questions dealing with how to create or edit Google Doc spreadsheets using the Google Spreadsheets API, or older API's. However, this Spreadsheets API seems to be part of the "gdata" library, which to my understanding is deprecated. Newer StackOverflow answers show how to create an empty spreadsheet using the Drive API, which seems more current. However, from looking at the documentation and examples for that API, it seems to only let you create new EMPTY

List names of sheets in Google Sheets and skip the first two

牧云@^-^@ 提交于 2019-11-30 02:41:51
问题 I found code to list the names of all the sheets in Google Sheets (from here): function SheetNames() { // Usage as custom function: =SheetNames( GoogleClock() ) try { var sheets = SpreadsheetApp.getActiveSpreadsheet().getSheets() var out = new Array( sheets.length+1 ) ; //out[0] = [ "Name" , "gid" ]; for (var i = 1 ; i < sheets.length+1 ; i++ ) out[i] = [sheets[i-1].getName()]; return out } catch( err ) { return "#ERROR!" } } My question is how can I modify the script to skip the first two

Retrieve rows from spreadsheet data using google app script

爱⌒轻易说出口 提交于 2019-11-29 21:28:59
I am using Google app script to write form data to spreadsheet. Now I would like to fetch the values from Excel which matches conditions (eg., filtered by date, username) and display them with app script. My spreadsheet has +-------------+-----------+----------------------+ | Date | Username | Comment | +-------------+-----------+----------------------+ | 2012-05-02 | palani | My first comment | | 2012-05-02 | raja | My second comment | | 2012-05-03 | palani | My third comment | | 2012-05-03 | raja | My fourth comment | +-------------+-----------+----------------------+ Now I want to filter

Google Spreadsheet to pdf with watermark in Google script

早过忘川 提交于 2019-11-29 16:38:53
I want to convert the spreadsheet with a watermark/background image, and send + save the generated pdf The converting to pdf worked, but I don't know if/how you can put an image to the generated pdf. This is what i got now: function ExportAndSent(subject, filename, email) { var ss = SpreadsheetApp.getActiveSpreadsheet(); var message = "A message"; var tempSpreadsheet = SpreadsheetApp.create(filename); var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); sheet = ss.getActiveSheet(); sheet.copyTo(tempSpreadsheet); tempSpreadsheet.deleteActiveSheet(); var pdf = DriveApp.getFileById

How to get a note or comment

爱⌒轻易说出口 提交于 2019-11-29 15:19:15
I have an Excel containing cell comments/notes, I've uploaded it to Google Drive, and converted it into a Google Spreadsheet. How may I retrieve the comments for cell A1? The API doesn't describe how to get a note or comment from a cell. Mogsdad The Google Apps Spreadsheet API only provides programmatic access to spreadsheet data. You cannot access comments using the API. You can get the Notes for a cell or range of cells using Google Apps Script. See the Class Range documentation for these methods: getNote() - Returns the note associated with the given cell. getNotes() - Returns the notes

Google Script: Conditionally copy rows from one sheet to another in the same spreadsheet

本秂侑毒 提交于 2019-11-29 15:01:07
问题 I read Google Script: Conditionally copy rows from one spreadsheet to another and could not make it work for me. I need a script that will allow me to do the quoted text below. Please feel free to edit my spreadsheet to make a complete working script. I will keep the spreadsheet publicly available for anyone to copy the script for their own use. I really know nothing about script writing so I need it all spelled out. Sorry, I'm such a noob with all this, but this will help me learn. https:/

“PERMISSION_DENIED” on Google Spreadsheet REST API v4

拜拜、爱过 提交于 2019-11-29 11:55:12
I try to read data from google sheet via http. I use v4 google spreadsheet api: https://sheets.googleapis.com/v4/spreadsheets/1MZJEOzkzy5iJ9HPy2GU-Ky3vdaIzGGDQH8BMt4n3OGI/values/Sheet1!A1:D5 I get: { "error": { "code": 403, "message": "The request cannot be identified with a client project. Please pass a valid API key with the request.", "status": "PERMISSION_DENIED" } } Sheet is published online and everyone can edit it. It works on api v3 too. First, make sure you have a permission to call this spreadsheet and you enable the Sheets API in your developer console. You can also try to change