google-sheets-api

How to Get Hyperlinks Using Google Sheets API v4

旧巷老猫 提交于 2021-01-04 09:11:25
问题 I am trying to access a hyperlink using the v4 API ValueRenderOption param ( valueRenderOption=FORMULA ). I have tried with both python's gsheets and cURL. Either way, I cannot seem to get the formula that will show a hyperlink. Below is a screenshot of the spreadsheet; note the cell containing the value 2 has its formula shown, as expected, but that the hyperlink to https://example.com is shown as "sup". Is there a new way that we are supposed to access the contents of hyperlinks? gsheets:

How to use sheet ID in Google Sheets API?

孤街浪徒 提交于 2020-12-26 06:34:37
问题 Google Sheets document can contain some sheets. First is default and '0'. Generally for any sheet there is address like this: https://docs.google.com/spreadsheets/d/(spreadsheetId)/edit#gid=(sheetId) with both spreadsheetId and sheetId . But in API documentation there is no mention of how to use sheetId . I can only read and edit default sheet for given spreadsheetId . If in request from code presented in exemplary link I added sheetId property I got error: { message: 'Invalid JSON payload

How to use sheet ID in Google Sheets API?

我只是一个虾纸丫 提交于 2020-12-26 06:34:17
问题 Google Sheets document can contain some sheets. First is default and '0'. Generally for any sheet there is address like this: https://docs.google.com/spreadsheets/d/(spreadsheetId)/edit#gid=(sheetId) with both spreadsheetId and sheetId . But in API documentation there is no mention of how to use sheetId . I can only read and edit default sheet for given spreadsheetId . If in request from code presented in exemplary link I added sheetId property I got error: { message: 'Invalid JSON payload

Is there a way to auto-authenticate access to GoogleSheets upon R Shiny App load? Googlesheets4 authentication trouble

只愿长相守 提交于 2020-12-13 19:08:43
问题 I'm currently working with an R Shiny App that utilizes googlesheets4 to read data in from a GoogleSheet. I recognize that authentication is important for accessing GoogleSheets, so I've tried authenticating the app using the code below in my app.R file (email and api key removed for privacy): ### AUTHENTICATE FOR GOOGLE SHEETS ACCESS ### sheets_auth( email = "MY EMAIL", path = NULL, scopes = "https://www.googleapis.com/auth/spreadsheets", cache = gargle::gargle_oauth_cache(), use_oob =

Is there a way to auto-authenticate access to GoogleSheets upon R Shiny App load? Googlesheets4 authentication trouble

瘦欲@ 提交于 2020-12-13 19:05:44
问题 I'm currently working with an R Shiny App that utilizes googlesheets4 to read data in from a GoogleSheet. I recognize that authentication is important for accessing GoogleSheets, so I've tried authenticating the app using the code below in my app.R file (email and api key removed for privacy): ### AUTHENTICATE FOR GOOGLE SHEETS ACCESS ### sheets_auth( email = "MY EMAIL", path = NULL, scopes = "https://www.googleapis.com/auth/spreadsheets", cache = gargle::gargle_oauth_cache(), use_oob =

Google sheets: Add image or drawing if a cell contains specific text

旧巷老猫 提交于 2020-12-13 03:29:36
问题 Just want to ask if how can I add a shape or drawing (half-shaded shape) if the cell has an exact text. Is it possible that when I type the letter "t" in the cell, the image/drawing will be visible? Though, I don't think it can be done through a formula, given that the cell on which the image/drawing should be placed is the cell on which the letter "t" should be placed. Is there a way for me to do it via script? EDIT As I applied the solution of copyTo(destination), it worked. But, it is only

Google sheets: Add image or drawing if a cell contains specific text

非 Y 不嫁゛ 提交于 2020-12-13 03:29:16
问题 Just want to ask if how can I add a shape or drawing (half-shaded shape) if the cell has an exact text. Is it possible that when I type the letter "t" in the cell, the image/drawing will be visible? Though, I don't think it can be done through a formula, given that the cell on which the image/drawing should be placed is the cell on which the letter "t" should be placed. Is there a way for me to do it via script? EDIT As I applied the solution of copyTo(destination), it worked. But, it is only

Restoring specific version of spreadsheet using the Google API

感情迁移 提交于 2020-12-06 13:00:54
问题 Just like the title says, I'm trying to find a way to restore a spreadsheet to a specific version using the Google Sheets API v4 (or Google Drive API v3). This is needed because of unit testing - I need one test to perform some actions (let's say delete a row) on a spreadsheet, assert the results and then reset the spreadsheet to its initial state so the next test can execute on the original spreadsheet. So far I noticed that there isn't an option to do something similar in the Google Sheets