From 2c6270cdec1a408210b11e9acf4652051f58ee83 Mon Sep 17 00:00:00 2001 From: Mudassir Chapra <37051110+muddi900@users.noreply.github.com> Date: Sun, 23 Jun 2024 19:10:30 +0000 Subject: [PATCH 01/13] Added range option for `get_notes`.[Issue #1482] --- gspread/worksheet.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gspread/worksheet.py b/gspread/worksheet.py index 6a6783b80..dd3b61605 100644 --- a/gspread/worksheet.py +++ b/gspread/worksheet.py @@ -2606,7 +2606,9 @@ def unmerge_cells(self, name: str) -> JSONResponse: return self.client.batch_update(self.spreadsheet_id, body) - def get_notes(self, default_empty_value: Optional[str] = "") -> List[List[str]]: + def get_notes( + self, default_empty_value: Optional[str] = "", range: Optional[str] = None + ) -> List[List[str]]: """Returns a list of lists containing all notes in the sheet. .. note:: @@ -2644,6 +2646,8 @@ def get_notes(self, default_empty_value: Optional[str] = "") -> List[List[str]]: ] """ params: ParamsType = {"fields": "sheets.data.rowData.values.note"} + if range is not None: + params["ranges"] = absolute_range_name(self.title, range) res = self.client.spreadsheets_get(self.spreadsheet_id, params) data = res["sheets"][self.index]["data"][0].get("rowData", [{}]) notes: List[List[str]] = [] From 4d4e59276537e37171744ace18bb282f672401d4 Mon Sep 17 00:00:00 2001 From: Mudassir Chapra Date: Sun, 23 Jun 2024 20:29:10 -0400 Subject: [PATCH 02/13] updated docstring --- gspread/worksheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gspread/worksheet.py b/gspread/worksheet.py index dd3b61605..4ce789b36 100644 --- a/gspread/worksheet.py +++ b/gspread/worksheet.py @@ -2609,7 +2609,7 @@ def unmerge_cells(self, name: str) -> JSONResponse: def get_notes( self, default_empty_value: Optional[str] = "", range: Optional[str] = None ) -> List[List[str]]: - """Returns a list of lists containing all notes in the sheet. + """Returns a list of lists containing all notes in the sheet or range. .. note:: From 1368fba7d127e063c55c8ffccc3acd6df0eec99b Mon Sep 17 00:00:00 2001 From: Mudassir Chapra Date: Sun, 23 Jun 2024 20:29:38 -0400 Subject: [PATCH 03/13] updated `test_get_notes` to handle range. --- .../WorksheetTest.test_get_notes.json | 1494 +++++++++++++++++ tests/worksheet_test.py | 14 +- 2 files changed, 1503 insertions(+), 5 deletions(-) diff --git a/tests/cassettes/WorksheetTest.test_get_notes.json b/tests/cassettes/WorksheetTest.test_get_notes.json index ee21aa8c5..e0fef9953 100644 --- a/tests/cassettes/WorksheetTest.test_get_notes.json +++ b/tests/cassettes/WorksheetTest.test_get_notes.json @@ -728,6 +728,1500 @@ "string": "" } } + }, + { + "request": { + "method": "POST", + "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", + "body": "{\"name\": \"Test WorksheetTest test_get_notes\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "100" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "ESF" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Vary": [ + "Origin, X-Origin" + ], + "Date": [ + "Mon, 24 Jun 2024 00:25:58 GMT" + ], + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "content-length": [ + "187" + ] + }, + "body": { + "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs\",\n \"name\": \"Test WorksheetTest test_get_notes\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "ESF" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Date": [ + "Mon, 24 Jun 2024 00:25:58 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "private" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "ESF" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Date": [ + "Mon, 24 Jun 2024 00:25:58 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "private" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs/values/%27Sheet1%27:clear", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "ESF" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Date": [ + "Mon, 24 Jun 2024 00:25:59 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "private" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "content-length": [ + "107" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "ESF" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Date": [ + "Mon, 24 Jun 2024 00:25:59 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "private" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs?fields=sheets.data.rowData.values.note", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "ESF" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Date": [ + "Mon, 24 Jun 2024 00:25:59 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "private" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "content-length": [ + "69" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs:batchUpdate", + "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"read my note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 1, \"endRowIndex\": 2, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"Or don't\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 2, \"endColumnIndex\": 3, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"another note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 2, \"endRowIndex\": 3, \"startColumnIndex\": 2, \"endColumnIndex\": 3, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"test\"}]}]}}]}", + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "778" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "ESF" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Date": [ + "Mon, 24 Jun 2024 00:25:59 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "private" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "content-length": [ + "121" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs\",\n \"replies\": [\n {},\n {},\n {},\n {}\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs?fields=sheets.data.rowData.values.note", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "ESF" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Date": [ + "Mon, 24 Jun 2024 00:25:59 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "private" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "content-length": [ + "702" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"read my note\"\n },\n {},\n {\n \"note\": \"another note\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {},\n {\n \"note\": \"test\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27%21B1%3AC3", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Server": [ + "ESF" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Date": [ + "Mon, 24 Jun 2024 00:25:59 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "private" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "content-length": [ + "584" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {},\n {\n \"note\": \"another note\"\n }\n ]\n },\n {\n \"values\": [\n {\n \"note\": \"Or don't\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {\n \"note\": \"test\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "DELETE", + "uri": "https://www.googleapis.com/drive/v3/files/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs?supportsAllDrives=True", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 204, + "message": "No Content" + }, + "headers": { + "Content-Length": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Server": [ + "ESF" + ], + "Content-Type": [ + "text/html" + ], + "Vary": [ + "Origin, X-Origin" + ], + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "Date": [ + "Mon, 24 Jun 2024 00:26:00 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "Pragma": [ + "no-cache" + ], + "X-Content-Type-Options": [ + "nosniff" + ] + }, + "body": { + "string": "" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", + "body": "{\"name\": \"Test WorksheetTest test_get_notes\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "100" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Pragma": [ + "no-cache" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Mon, 24 Jun 2024 00:27:46 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Origin, X-Origin" + ], + "content-length": [ + "187" + ] + }, + "body": { + "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k\",\n \"name\": \"Test WorksheetTest test_get_notes\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "X-XSS-Protection": [ + "0" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Cache-Control": [ + "private" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Mon, 24 Jun 2024 00:27:47 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "X-XSS-Protection": [ + "0" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Cache-Control": [ + "private" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Mon, 24 Jun 2024 00:27:47 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k/values/%27Sheet1%27:clear", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "X-XSS-Protection": [ + "0" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Cache-Control": [ + "private" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Mon, 24 Jun 2024 00:27:47 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "content-length": [ + "107" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "X-XSS-Protection": [ + "0" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Cache-Control": [ + "private" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Mon, 24 Jun 2024 00:27:47 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k?fields=sheets.data.rowData.values.note", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "X-XSS-Protection": [ + "0" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Cache-Control": [ + "private" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Mon, 24 Jun 2024 00:27:47 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "content-length": [ + "69" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k:batchUpdate", + "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"read my note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 1, \"endRowIndex\": 2, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"Or don't\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 2, \"endRowIndex\": 3, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"another note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 2, \"endRowIndex\": 3, \"startColumnIndex\": 2, \"endColumnIndex\": 3, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"test\"}]}]}}]}", + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "778" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "X-XSS-Protection": [ + "0" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Cache-Control": [ + "private" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Mon, 24 Jun 2024 00:27:47 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "content-length": [ + "121" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k\",\n \"replies\": [\n {},\n {},\n {},\n {}\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k?fields=sheets.data.rowData.values.note", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "X-XSS-Protection": [ + "0" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Cache-Control": [ + "private" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Mon, 24 Jun 2024 00:27:47 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "content-length": [ + "662" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"read my note\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n },\n {\n \"values\": [\n {\n \"note\": \"another note\"\n },\n {},\n {\n \"note\": \"test\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27%21A2%3AC3", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "X-XSS-Protection": [ + "0" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Cache-Control": [ + "private" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Mon, 24 Jun 2024 00:27:48 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "content-length": [ + "514" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n },\n {\n \"values\": [\n {\n \"note\": \"another note\"\n },\n {},\n {\n \"note\": \"test\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "DELETE", + "uri": "https://www.googleapis.com/drive/v3/files/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k?supportsAllDrives=True", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 204, + "message": "No Content" + }, + "headers": { + "Pragma": [ + "no-cache" + ], + "Content-Type": [ + "text/html" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Mon, 24 Jun 2024 00:27:48 GMT" + ], + "Content-Length": [ + "0" + ], + "Vary": [ + "Origin, X-Origin" + ] + }, + "body": { + "string": "" + } + } } ] } diff --git a/tests/worksheet_test.py b/tests/worksheet_test.py index ba430aa13..a9f70851a 100644 --- a/tests/worksheet_test.py +++ b/tests/worksheet_test.py @@ -1631,20 +1631,24 @@ def test_worksheet_notes(self): @pytest.mark.vcr() def test_get_notes(self): w = self.spreadsheet.worksheets()[0] - notes = {"A1": "read my note", "B2": "Or don't"} - notes_array = [ - [notes["A1"]], - ["", notes["B2"]], - ] + notes = { + "A1": "read my note", + "B2": "Or don't", + "A3": "another note", + "C3": "test", + } + notes_array = [[notes["A1"]], ["", notes["B2"]], ["another note", "", "test"]] empty_notes = w.get_notes() w.insert_notes(notes) all_notes = w.get_notes() + range_notes = w.get_notes(range="A2:C3") self.assertEqual(empty_notes, [[]]) self.assertEqual(all_notes, notes_array) + self.assertEqual(range_notes, all_notes[1:]) @pytest.mark.vcr() def test_batch_clear(self): From 5951c46b912815030e458b9dd74438ded40cedfc Mon Sep 17 00:00:00 2001 From: Mudassir Chapra <37051110+muddi900@users.noreply.github.com> Date: Thu, 4 Jul 2024 11:06:47 +0000 Subject: [PATCH 04/13] reverted all changes made by @alifeee --- gspread/worksheet.py | 32 +- .../WorksheetTest.test_get_notes.json | 2548 +++-------------- ...orksheetTest.test_get_notes_2nd_sheet.json | 897 ++++++ tests/worksheet_test.py | 14 +- 4 files changed, 1268 insertions(+), 2223 deletions(-) create mode 100644 tests/cassettes/WorksheetTest.test_get_notes_2nd_sheet.json diff --git a/gspread/worksheet.py b/gspread/worksheet.py index 4ce789b36..7c0d98c2d 100644 --- a/gspread/worksheet.py +++ b/gspread/worksheet.py @@ -2607,7 +2607,9 @@ def unmerge_cells(self, name: str) -> JSONResponse: return self.client.batch_update(self.spreadsheet_id, body) def get_notes( - self, default_empty_value: Optional[str] = "", range: Optional[str] = None + self, + default_empty_value: Optional[str] = "", + grid_range: Optional[str] = None, ) -> List[List[str]]: """Returns a list of lists containing all notes in the sheet or range. @@ -2624,6 +2626,7 @@ def get_notes( :param str default_empty_value: (optional) Determines which value to use for cells without notes, defaults to None. + :param str grid_range: (optional) Range name in A1 notation, e.g. 'A1:A5'. Examples:: @@ -2633,23 +2636,36 @@ def get_notes( # 2 - B2 # Read all notes from the sheet - >>> arr = worksheet.get_notes() - >>> print(arr) + >>> worksheet.get_notes() [ ["A1"], ["", "B2"] ] - >>> print(gspread.utils.fill_gaps(arr, len(arr), max(len(a) for a in arr), None)) + >>> arr = worksheet.get_notes() + >>> gspread.utils.fill_gaps(arr, len(arr), max(len(a) for a in arr), None) [ ["A1", ""], ["", "B2"] ] + # Read notes from a specific range + >>> worksheet.get_notes(grid_range="A2:B2") + [ + ["", "B2"] + ] """ - params: ParamsType = {"fields": "sheets.data.rowData.values.note"} - if range is not None: - params["ranges"] = absolute_range_name(self.title, range) + params: ParamsType = { + "fields": "sheets.data.rowData.values.note", + "ranges": ( + self.title + if grid_range is None + else absolute_range_name(self.title, grid_range) + ), + } + res = self.client.spreadsheets_get(self.spreadsheet_id, params) - data = res["sheets"][self.index]["data"][0].get("rowData", [{}]) + + # access 0th sheet because we specified a sheet with params["ranges"] above + data = res["sheets"][0]["data"][0].get("rowData", [{}]) notes: List[List[str]] = [] for row in data: notes.append([]) diff --git a/tests/cassettes/WorksheetTest.test_get_notes.json b/tests/cassettes/WorksheetTest.test_get_notes.json index e0fef9953..5419e5771 100644 --- a/tests/cassettes/WorksheetTest.test_get_notes.json +++ b/tests/cassettes/WorksheetTest.test_get_notes.json @@ -1,2227 +1,363 @@ { - "version": 1, - "interactions": [ - { - "request": { - "method": "POST", - "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", - "body": "{\"name\": \"Test WorksheetTest test_get_notes\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "Content-Length": [ - "100" - ], - "Content-Type": [ - "application/json" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "Expires": [ - "Mon, 01 Jan 1990 00:00:00 GMT" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Origin, X-Origin" - ], - "Server": [ - "ESF" - ], - "Cache-Control": [ - "no-cache, no-store, max-age=0, must-revalidate" - ], - "Date": [ - "Wed, 01 May 2024 12:10:35 GMT" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "187" - ] - }, - "body": { - "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk\",\n \"name\": \"Test WorksheetTest test_get_notes\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Server": [ - "ESF" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 01 May 2024 12:10:36 GMT" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Server": [ - "ESF" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 01 May 2024 12:10:37 GMT" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk/values/%27Sheet1%27:clear", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "Content-Length": [ - "0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Server": [ - "ESF" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 01 May 2024 12:10:37 GMT" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "107" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Server": [ - "ESF" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 01 May 2024 12:10:39 GMT" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk?fields=sheets.data.rowData.values.note", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Server": [ - "ESF" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 01 May 2024 12:10:39 GMT" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "69" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" - } - } - }, - { - "request": { - "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk:batchUpdate", - "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"read my note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 1, \"endRowIndex\": 2, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"Or don't\"}]}]}}]}", - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "Content-Length": [ - "398" - ], - "Content-Type": [ - "application/json" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Server": [ - "ESF" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 01 May 2024 12:10:40 GMT" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "105" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk\",\n \"replies\": [\n {},\n {}\n ]\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk?fields=sheets.data.rowData.values.note", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Server": [ - "ESF" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 01 May 2024 12:10:41 GMT" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "424" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"read my note\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" - } - } - }, - { - "request": { - "method": "DELETE", - "uri": "https://www.googleapis.com/drive/v3/files/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk?supportsAllDrives=True", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "Content-Length": [ - "0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 204, - "message": "No Content" - }, - "headers": { - "Expires": [ - "Mon, 01 Jan 1990 00:00:00 GMT" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Content-Length": [ - "0" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Origin, X-Origin" - ], - "Server": [ - "ESF" - ], - "Cache-Control": [ - "no-cache, no-store, max-age=0, must-revalidate" - ], - "Date": [ - "Wed, 01 May 2024 12:10:41 GMT" - ], - "Content-Type": [ - "text/html" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "X-XSS-Protection": [ - "0" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "method": "POST", - "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", - "body": "{\"name\": \"Test WorksheetTest test_get_notes\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "100" - ], - "Content-Type": [ - "application/json" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "ESF" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Vary": [ - "Origin, X-Origin" - ], - "Date": [ - "Mon, 24 Jun 2024 00:25:58 GMT" - ], - "Expires": [ - "Mon, 01 Jan 1990 00:00:00 GMT" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "no-cache, no-store, max-age=0, must-revalidate" - ], - "Pragma": [ - "no-cache" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "content-length": [ - "187" - ] - }, - "body": { - "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs\",\n \"name\": \"Test WorksheetTest test_get_notes\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "ESF" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Date": [ - "Mon, 24 Jun 2024 00:25:58 GMT" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs/edit\"\n}\n" - } - } + "version": 1, + "interactions": [ + { + "request": { + "method": "POST", + "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", + "body": "{\"name\": \"Test WorksheetTest test_get_notes\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", + "headers": { + "User-Agent": ["python-requests/2.31.0"], + "Accept-Encoding": ["gzip, deflate"], + "Accept": ["*/*"], + "Connection": ["keep-alive"], + "x-goog-api-client": ["cred-type/sa"], + "x-allowed-locations": ["0x0"], + "Content-Length": ["100"], + "Content-Type": ["application/json"], + "authorization": [""] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "ESF" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Date": [ - "Mon, 24 Jun 2024 00:25:58 GMT" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs/edit\"\n}\n" - } - } + "headers": { + "Transfer-Encoding": ["chunked"], + "X-Content-Type-Options": ["nosniff"], + "Server": ["ESF"], + "Vary": ["Origin, X-Origin"], + "Cache-Control": ["no-cache, no-store, max-age=0, must-revalidate"], + "X-XSS-Protection": ["0"], + "X-Frame-Options": ["SAMEORIGIN"], + "Expires": ["Mon, 01 Jan 1990 00:00:00 GMT"], + "Content-Type": ["application/json; charset=UTF-8"], + "Date": ["Sat, 29 Jun 2024 15:06:58 GMT"], + "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], + "Pragma": ["no-cache"], + "content-length": ["187"] }, - { - "request": { - "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs/values/%27Sheet1%27:clear", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "ESF" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Date": [ - "Mon, 24 Jun 2024 00:25:59 GMT" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "content-length": [ - "107" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" - } - } + "body": { + "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"name\": \"Test WorksheetTest test_get_notes\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8?includeGridData=false", + "body": null, + "headers": { + "User-Agent": ["python-requests/2.31.0"], + "Accept-Encoding": ["gzip, deflate"], + "Accept": ["*/*"], + "Connection": ["keep-alive"], + "x-goog-api-client": ["cred-type/sa"], + "x-allowed-locations": ["0x0"], + "authorization": [""] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "ESF" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Date": [ - "Mon, 24 Jun 2024 00:25:59 GMT" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs/edit\"\n}\n" - } - } + "headers": { + "x-l2-request-path": ["l2-managed-6"], + "Transfer-Encoding": ["chunked"], + "X-Content-Type-Options": ["nosniff"], + "Server": ["ESF"], + "Vary": ["Origin", "X-Origin", "Referer"], + "Cache-Control": ["private"], + "X-XSS-Protection": ["0"], + "X-Frame-Options": ["SAMEORIGIN"], + "Date": ["Sat, 29 Jun 2024 15:06:59 GMT"], + "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], + "Content-Type": ["application/json; charset=UTF-8"], + "content-length": ["3331"] }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs?fields=sheets.data.rowData.values.note", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "ESF" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Date": [ - "Mon, 24 Jun 2024 00:25:59 GMT" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "content-length": [ - "69" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" - } - } + "body": { + "string": "{\n \"spreadsheetId\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8?includeGridData=false", + "body": null, + "headers": { + "User-Agent": ["python-requests/2.31.0"], + "Accept-Encoding": ["gzip, deflate"], + "Accept": ["*/*"], + "Connection": ["keep-alive"], + "x-goog-api-client": ["cred-type/sa"], + "x-allowed-locations": ["0x0"], + "authorization": [""] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" }, - { - "request": { - "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs:batchUpdate", - "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"read my note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 1, \"endRowIndex\": 2, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"Or don't\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 2, \"endColumnIndex\": 3, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"another note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 2, \"endRowIndex\": 3, \"startColumnIndex\": 2, \"endColumnIndex\": 3, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"test\"}]}]}}]}", - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "778" - ], - "Content-Type": [ - "application/json" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "ESF" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Date": [ - "Mon, 24 Jun 2024 00:25:59 GMT" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "content-length": [ - "121" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs\",\n \"replies\": [\n {},\n {},\n {},\n {}\n ]\n}\n" - } - } + "headers": { + "x-l2-request-path": ["l2-managed-6"], + "Transfer-Encoding": ["chunked"], + "X-Content-Type-Options": ["nosniff"], + "Server": ["ESF"], + "Vary": ["Origin", "X-Origin", "Referer"], + "Cache-Control": ["private"], + "X-XSS-Protection": ["0"], + "X-Frame-Options": ["SAMEORIGIN"], + "Date": ["Sat, 29 Jun 2024 15:07:00 GMT"], + "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], + "Content-Type": ["application/json; charset=UTF-8"], + "content-length": ["3331"] }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs?fields=sheets.data.rowData.values.note", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "ESF" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Date": [ - "Mon, 24 Jun 2024 00:25:59 GMT" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "content-length": [ - "702" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"read my note\"\n },\n {},\n {\n \"note\": \"another note\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {},\n {\n \"note\": \"test\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" - } - } + "body": { + "string": "{\n \"spreadsheetId\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8/values/%27Sheet1%27:clear", + "body": null, + "headers": { + "User-Agent": ["python-requests/2.31.0"], + "Accept-Encoding": ["gzip, deflate"], + "Accept": ["*/*"], + "Connection": ["keep-alive"], + "x-goog-api-client": ["cred-type/sa"], + "x-allowed-locations": ["0x0"], + "Content-Length": ["0"], + "authorization": [""] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27%21B1%3AC3", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Server": [ - "ESF" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Date": [ - "Mon, 24 Jun 2024 00:25:59 GMT" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "content-length": [ - "584" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {},\n {\n \"note\": \"another note\"\n }\n ]\n },\n {\n \"values\": [\n {\n \"note\": \"Or don't\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {\n \"note\": \"test\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" - } - } + "headers": { + "x-l2-request-path": ["l2-managed-6"], + "Transfer-Encoding": ["chunked"], + "X-Content-Type-Options": ["nosniff"], + "Server": ["ESF"], + "Vary": ["Origin", "X-Origin", "Referer"], + "Cache-Control": ["private"], + "X-XSS-Protection": ["0"], + "X-Frame-Options": ["SAMEORIGIN"], + "Date": ["Sat, 29 Jun 2024 15:07:01 GMT"], + "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], + "Content-Type": ["application/json; charset=UTF-8"], + "content-length": ["107"] }, - { - "request": { - "method": "DELETE", - "uri": "https://www.googleapis.com/drive/v3/files/110TZ16-mxTNaG__4msDA6MxALygPeJ60ztfzUdivDrs?supportsAllDrives=True", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 204, - "message": "No Content" - }, - "headers": { - "Content-Length": [ - "0" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Server": [ - "ESF" - ], - "Content-Type": [ - "text/html" - ], - "Vary": [ - "Origin, X-Origin" - ], - "Expires": [ - "Mon, 01 Jan 1990 00:00:00 GMT" - ], - "Date": [ - "Mon, 24 Jun 2024 00:26:00 GMT" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "no-cache, no-store, max-age=0, must-revalidate" - ], - "Pragma": [ - "no-cache" - ], - "X-Content-Type-Options": [ - "nosniff" - ] - }, - "body": { - "string": "" - } - } + "body": { + "string": "{\n \"spreadsheetId\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8?includeGridData=false", + "body": null, + "headers": { + "User-Agent": ["python-requests/2.31.0"], + "Accept-Encoding": ["gzip, deflate"], + "Accept": ["*/*"], + "Connection": ["keep-alive"], + "x-goog-api-client": ["cred-type/sa"], + "x-allowed-locations": ["0x0"], + "authorization": [""] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" }, - { - "request": { - "method": "POST", - "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", - "body": "{\"name\": \"Test WorksheetTest test_get_notes\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "100" - ], - "Content-Type": [ - "application/json" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Pragma": [ - "no-cache" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "no-cache, no-store, max-age=0, must-revalidate" - ], - "Expires": [ - "Mon, 01 Jan 1990 00:00:00 GMT" - ], - "Server": [ - "ESF" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Mon, 24 Jun 2024 00:27:46 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Vary": [ - "Origin, X-Origin" - ], - "content-length": [ - "187" - ] - }, - "body": { - "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k\",\n \"name\": \"Test WorksheetTest test_get_notes\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" - } - } + "headers": { + "x-l2-request-path": ["l2-managed-6"], + "Transfer-Encoding": ["chunked"], + "X-Content-Type-Options": ["nosniff"], + "Server": ["ESF"], + "Vary": ["Origin", "X-Origin", "Referer"], + "Cache-Control": ["private"], + "X-XSS-Protection": ["0"], + "X-Frame-Options": ["SAMEORIGIN"], + "Date": ["Sat, 29 Jun 2024 15:07:01 GMT"], + "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], + "Content-Type": ["application/json; charset=UTF-8"], + "content-length": ["3331"] }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "X-XSS-Protection": [ - "0" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Cache-Control": [ - "private" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Server": [ - "ESF" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Mon, 24 Jun 2024 00:27:47 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k/edit\"\n}\n" - } - } + "body": { + "string": "{\n \"spreadsheetId\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8?fields=sheets.data.rowData.values.note&ranges=Sheet1", + "body": null, + "headers": { + "User-Agent": ["python-requests/2.31.0"], + "Accept-Encoding": ["gzip, deflate"], + "Accept": ["*/*"], + "Connection": ["keep-alive"], + "x-goog-api-client": ["cred-type/sa"], + "x-allowed-locations": ["0x0"], + "authorization": [""] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "X-XSS-Protection": [ - "0" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Cache-Control": [ - "private" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Server": [ - "ESF" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Mon, 24 Jun 2024 00:27:47 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k/edit\"\n}\n" - } - } + "headers": { + "x-l2-request-path": ["l2-managed-6"], + "Transfer-Encoding": ["chunked"], + "X-Content-Type-Options": ["nosniff"], + "Server": ["ESF"], + "Vary": ["Origin", "X-Origin", "Referer"], + "Cache-Control": ["private"], + "X-XSS-Protection": ["0"], + "X-Frame-Options": ["SAMEORIGIN"], + "Date": ["Sat, 29 Jun 2024 15:07:02 GMT"], + "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], + "Content-Type": ["application/json; charset=UTF-8"], + "content-length": ["69"] }, - { - "request": { - "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k/values/%27Sheet1%27:clear", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "X-XSS-Protection": [ - "0" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Cache-Control": [ - "private" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Server": [ - "ESF" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Mon, 24 Jun 2024 00:27:47 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "content-length": [ - "107" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" - } - } + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk:batchUpdate", + "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"read my note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 1, \"endRowIndex\": 2, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"Or don't\"}]}]}}]}", + "headers": { + "User-Agent": ["python-requests/2.31.0"], + "Accept-Encoding": ["gzip, deflate"], + "Accept": ["*/*"], + "Connection": ["keep-alive"], + "x-goog-api-client": ["cred-type/sa"], + "x-allowed-locations": ["0x0"], + "Content-Length": ["398"], + "Content-Type": ["application/json"], + "authorization": [""] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "X-XSS-Protection": [ - "0" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Cache-Control": [ - "private" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Server": [ - "ESF" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Mon, 24 Jun 2024 00:27:47 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k/edit\"\n}\n" - } - } + "headers": { + "Transfer-Encoding": ["chunked"], + "X-Content-Type-Options": ["nosniff"], + "X-Frame-Options": ["SAMEORIGIN"], + "x-l2-request-path": ["l2-managed-6"], + "Vary": ["Origin", "X-Origin", "Referer"], + "Server": ["ESF"], + "Cache-Control": ["private"], + "Date": ["Wed, 01 May 2024 12:10:40 GMT"], + "Content-Type": ["application/json; charset=UTF-8"], + "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], + "X-XSS-Protection": ["0"], + "content-length": ["105"] }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k?fields=sheets.data.rowData.values.note", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "X-XSS-Protection": [ - "0" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Cache-Control": [ - "private" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Server": [ - "ESF" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Mon, 24 Jun 2024 00:27:47 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "content-length": [ - "69" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" - } - } + "body": { + "string": "{\n \"spreadsheetId\": \"1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk\",\n \"replies\": [\n {},\n {}\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk?fields=sheets.data.rowData.values.note", + "body": null, + "headers": { + "User-Agent": ["python-requests/2.31.0"], + "Accept-Encoding": ["gzip, deflate"], + "Accept": ["*/*"], + "Connection": ["keep-alive"], + "x-goog-api-client": ["cred-type/sa"], + "x-allowed-locations": ["0x0"], + "authorization": [""] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" }, - { - "request": { - "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k:batchUpdate", - "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"read my note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 1, \"endRowIndex\": 2, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"Or don't\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 2, \"endRowIndex\": 3, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"another note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 2, \"endRowIndex\": 3, \"startColumnIndex\": 2, \"endColumnIndex\": 3, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"test\"}]}]}}]}", - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "778" - ], - "Content-Type": [ - "application/json" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "X-XSS-Protection": [ - "0" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Cache-Control": [ - "private" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Server": [ - "ESF" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Mon, 24 Jun 2024 00:27:47 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "content-length": [ - "121" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k\",\n \"replies\": [\n {},\n {},\n {},\n {}\n ]\n}\n" - } - } + "headers": { + "Transfer-Encoding": ["chunked"], + "X-Content-Type-Options": ["nosniff"], + "X-Frame-Options": ["SAMEORIGIN"], + "x-l2-request-path": ["l2-managed-6"], + "Vary": ["Origin", "X-Origin", "Referer"], + "Server": ["ESF"], + "Cache-Control": ["private"], + "Date": ["Wed, 01 May 2024 12:10:41 GMT"], + "Content-Type": ["application/json; charset=UTF-8"], + "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], + "X-XSS-Protection": ["0"], + "content-length": ["424"] }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k?fields=sheets.data.rowData.values.note", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "X-XSS-Protection": [ - "0" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Cache-Control": [ - "private" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Server": [ - "ESF" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Mon, 24 Jun 2024 00:27:47 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "content-length": [ - "662" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"read my note\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n },\n {\n \"values\": [\n {\n \"note\": \"another note\"\n },\n {},\n {\n \"note\": \"test\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" - } - } + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"read my note\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "DELETE", + "uri": "https://www.googleapis.com/drive/v3/files/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk?supportsAllDrives=True", + "body": null, + "headers": { + "User-Agent": ["python-requests/2.31.0"], + "Accept-Encoding": ["gzip, deflate"], + "Accept": ["*/*"], + "Connection": ["keep-alive"], + "x-goog-api-client": ["cred-type/sa"], + "x-allowed-locations": ["0x0"], + "Content-Length": ["0"], + "authorization": [""] + } + }, + "response": { + "status": { + "code": 204, + "message": "No Content" }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27%21A2%3AC3", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "X-XSS-Protection": [ - "0" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Cache-Control": [ - "private" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Server": [ - "ESF" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Mon, 24 Jun 2024 00:27:48 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "content-length": [ - "514" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n },\n {\n \"values\": [\n {\n \"note\": \"another note\"\n },\n {},\n {\n \"note\": \"test\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" - } - } + "headers": { + "Expires": ["Mon, 01 Jan 1990 00:00:00 GMT"], + "X-Content-Type-Options": ["nosniff"], + "X-Frame-Options": ["SAMEORIGIN"], + "Content-Length": ["0"], + "Pragma": ["no-cache"], + "Vary": ["Origin, X-Origin"], + "Server": ["ESF"], + "Cache-Control": ["no-cache, no-store, max-age=0, must-revalidate"], + "Date": ["Wed, 01 May 2024 12:10:41 GMT"], + "Content-Type": ["text/html"], + "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], + "X-XSS-Protection": ["0"] }, - { - "request": { - "method": "DELETE", - "uri": "https://www.googleapis.com/drive/v3/files/1Kc2P0fTazmCZhYTlVFfqok6ynv-oI_5Y2gf8cWsXW9k?supportsAllDrives=True", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 204, - "message": "No Content" - }, - "headers": { - "Pragma": [ - "no-cache" - ], - "Content-Type": [ - "text/html" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "no-cache, no-store, max-age=0, must-revalidate" - ], - "Expires": [ - "Mon, 01 Jan 1990 00:00:00 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Server": [ - "ESF" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Mon, 24 Jun 2024 00:27:48 GMT" - ], - "Content-Length": [ - "0" - ], - "Vary": [ - "Origin, X-Origin" - ] - }, - "body": { - "string": "" - } - } + "body": { + "string": "" } - ] + } + } + ] } diff --git a/tests/cassettes/WorksheetTest.test_get_notes_2nd_sheet.json b/tests/cassettes/WorksheetTest.test_get_notes_2nd_sheet.json new file mode 100644 index 000000000..a6fd59add --- /dev/null +++ b/tests/cassettes/WorksheetTest.test_get_notes_2nd_sheet.json @@ -0,0 +1,897 @@ +{ + "version": 1, + "interactions": [ + { + "request": { + "method": "POST", + "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", + "body": "{\"name\": \"Test WorksheetTest test_get_notes_2nd_sheet\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "Content-Length": [ + "110" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin, X-Origin" + ], + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "X-XSS-Protection": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Date": [ + "Sat, 29 Jun 2024 15:07:07 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Pragma": [ + "no-cache" + ], + "content-length": [ + "197" + ] + }, + "body": { + "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc\",\n \"name\": \"Test WorksheetTest test_get_notes_2nd_sheet\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "x-l2-request-path": [ + "l2-managed-6" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Cache-Control": [ + "private" + ], + "X-XSS-Protection": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Sat, 29 Jun 2024 15:07:07 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "3341" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes_2nd_sheet\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "x-l2-request-path": [ + "l2-managed-6" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Cache-Control": [ + "private" + ], + "X-XSS-Protection": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Sat, 29 Jun 2024 15:07:08 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "3341" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes_2nd_sheet\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc/values/%27Sheet1%27:clear", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "x-l2-request-path": [ + "l2-managed-6" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Cache-Control": [ + "private" + ], + "X-XSS-Protection": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Sat, 29 Jun 2024 15:07:08 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "107" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "x-l2-request-path": [ + "l2-managed-6" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Cache-Control": [ + "private" + ], + "X-XSS-Protection": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Sat, 29 Jun 2024 15:07:09 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "3341" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes_2nd_sheet\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc:batchUpdate", + "body": "{\"requests\": [{\"addSheet\": {\"properties\": {\"title\": \"worksheet 2\", \"sheetType\": \"GRID\", \"gridProperties\": {\"rowCount\": 3, \"columnCount\": 3}}}}]}", + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "Content-Length": [ + "144" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "x-l2-request-path": [ + "l2-managed-6" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Cache-Control": [ + "private" + ], + "X-XSS-Protection": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Sat, 29 Jun 2024 15:07:10 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "382" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc\",\n \"replies\": [\n {\n \"addSheet\": {\n \"properties\": {\n \"sheetId\": 1782405112,\n \"title\": \"worksheet 2\",\n \"index\": 1,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 3,\n \"columnCount\": 3\n }\n }\n }\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc?fields=sheets.data.rowData.values.note&ranges=worksheet+2", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "x-l2-request-path": [ + "l2-managed-6" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Cache-Control": [ + "private" + ], + "X-XSS-Protection": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Sat, 29 Jun 2024 15:07:10 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "69" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc:batchUpdate", + "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 1782405112}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"the first time\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 2, \"endRowIndex\": 3, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 1782405112}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"two sheets\"}]}]}}]}", + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "Content-Length": [ + "420" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "x-l2-request-path": [ + "l2-managed-6" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Cache-Control": [ + "private" + ], + "X-XSS-Protection": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Sat, 29 Jun 2024 15:07:11 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "105" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc\",\n \"replies\": [\n {},\n {}\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc?fields=sheets.data.rowData.values.note&ranges=worksheet+2", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "x-l2-request-path": [ + "l2-managed-6" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Cache-Control": [ + "private" + ], + "X-XSS-Protection": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Sat, 29 Jun 2024 15:07:12 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "444" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"the first time\"\n }\n ]\n },\n {},\n {\n \"values\": [\n {},\n {\n \"note\": \"two sheets\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc?fields=sheets.data.rowData.values.note&ranges=%27worksheet+2%27%21A2%3AC3", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "x-l2-request-path": [ + "l2-managed-6" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Cache-Control": [ + "private" + ], + "X-XSS-Protection": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Sat, 29 Jun 2024 15:07:12 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "294" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {},\n {\n \"values\": [\n {},\n {\n \"note\": \"two sheets\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "DELETE", + "uri": "https://www.googleapis.com/drive/v3/files/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc?supportsAllDrives=True", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 204, + "message": "No Content" + }, + "headers": { + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin, X-Origin" + ], + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "X-XSS-Protection": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Content-Length": [ + "0" + ], + "Date": [ + "Sat, 29 Jun 2024 15:07:13 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Pragma": [ + "no-cache" + ] + }, + "body": { + "string": "" + } + } + } + ] +} diff --git a/tests/worksheet_test.py b/tests/worksheet_test.py index a9f70851a..ba430aa13 100644 --- a/tests/worksheet_test.py +++ b/tests/worksheet_test.py @@ -1631,24 +1631,20 @@ def test_worksheet_notes(self): @pytest.mark.vcr() def test_get_notes(self): w = self.spreadsheet.worksheets()[0] - notes = { - "A1": "read my note", - "B2": "Or don't", - "A3": "another note", - "C3": "test", - } - notes_array = [[notes["A1"]], ["", notes["B2"]], ["another note", "", "test"]] + notes = {"A1": "read my note", "B2": "Or don't"} + notes_array = [ + [notes["A1"]], + ["", notes["B2"]], + ] empty_notes = w.get_notes() w.insert_notes(notes) all_notes = w.get_notes() - range_notes = w.get_notes(range="A2:C3") self.assertEqual(empty_notes, [[]]) self.assertEqual(all_notes, notes_array) - self.assertEqual(range_notes, all_notes[1:]) @pytest.mark.vcr() def test_batch_clear(self): From c0f5a68e2a79ba60a33bf611b252610ebe8355c4 Mon Sep 17 00:00:00 2001 From: Mudassir Chapra <37051110+muddi900@users.noreply.github.com> Date: Thu, 4 Jul 2024 11:11:16 +0000 Subject: [PATCH 05/13] passing `absolute_range_name` to ranges to handle cell-name like sheet names. (via @lavigne958) --- gspread/worksheet.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gspread/worksheet.py b/gspread/worksheet.py index 7c0d98c2d..2bff00919 100644 --- a/gspread/worksheet.py +++ b/gspread/worksheet.py @@ -2655,11 +2655,7 @@ def get_notes( """ params: ParamsType = { "fields": "sheets.data.rowData.values.note", - "ranges": ( - self.title - if grid_range is None - else absolute_range_name(self.title, grid_range) - ), + "ranges": absolute_range_name(self.title, grid_range), } res = self.client.spreadsheets_get(self.spreadsheet_id, params) From 7303c8fcc70d49506bd69fb6877fbc48ba3a6a13 Mon Sep 17 00:00:00 2001 From: alifeee Date: Fri, 5 Jul 2024 15:14:11 +0100 Subject: [PATCH 06/13] refresh test cassette --- .../WorksheetTest.test_get_notes.json | 1784 +++++++++++++---- 1 file changed, 1441 insertions(+), 343 deletions(-) diff --git a/tests/cassettes/WorksheetTest.test_get_notes.json b/tests/cassettes/WorksheetTest.test_get_notes.json index 5419e5771..9d825aedc 100644 --- a/tests/cassettes/WorksheetTest.test_get_notes.json +++ b/tests/cassettes/WorksheetTest.test_get_notes.json @@ -1,363 +1,1461 @@ { - "version": 1, - "interactions": [ - { - "request": { - "method": "POST", - "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", - "body": "{\"name\": \"Test WorksheetTest test_get_notes\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", - "headers": { - "User-Agent": ["python-requests/2.31.0"], - "Accept-Encoding": ["gzip, deflate"], - "Accept": ["*/*"], - "Connection": ["keep-alive"], - "x-goog-api-client": ["cred-type/sa"], - "x-allowed-locations": ["0x0"], - "Content-Length": ["100"], - "Content-Type": ["application/json"], - "authorization": [""] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" + "version": 1, + "interactions": [ + { + "request": { + "method": "POST", + "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", + "body": "{\"name\": \"Test WorksheetTest test_get_notes\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "Content-Length": [ + "100" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin, X-Origin" + ], + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "X-XSS-Protection": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Date": [ + "Sat, 29 Jun 2024 15:06:58 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Pragma": [ + "no-cache" + ], + "content-length": [ + "187" + ] + }, + "body": { + "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"name\": \"Test WorksheetTest test_get_notes\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" + } + } }, - "headers": { - "Transfer-Encoding": ["chunked"], - "X-Content-Type-Options": ["nosniff"], - "Server": ["ESF"], - "Vary": ["Origin, X-Origin"], - "Cache-Control": ["no-cache, no-store, max-age=0, must-revalidate"], - "X-XSS-Protection": ["0"], - "X-Frame-Options": ["SAMEORIGIN"], - "Expires": ["Mon, 01 Jan 1990 00:00:00 GMT"], - "Content-Type": ["application/json; charset=UTF-8"], - "Date": ["Sat, 29 Jun 2024 15:06:58 GMT"], - "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], - "Pragma": ["no-cache"], - "content-length": ["187"] + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "x-l2-request-path": [ + "l2-managed-6" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Cache-Control": [ + "private" + ], + "X-XSS-Protection": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Sat, 29 Jun 2024 15:06:59 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8/edit\"\n}\n" + } + } }, - "body": { - "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"name\": \"Test WorksheetTest test_get_notes\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8?includeGridData=false", - "body": null, - "headers": { - "User-Agent": ["python-requests/2.31.0"], - "Accept-Encoding": ["gzip, deflate"], - "Accept": ["*/*"], - "Connection": ["keep-alive"], - "x-goog-api-client": ["cred-type/sa"], - "x-allowed-locations": ["0x0"], - "authorization": [""] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "x-l2-request-path": [ + "l2-managed-6" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Cache-Control": [ + "private" + ], + "X-XSS-Protection": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Sat, 29 Jun 2024 15:07:00 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8/edit\"\n}\n" + } + } }, - "headers": { - "x-l2-request-path": ["l2-managed-6"], - "Transfer-Encoding": ["chunked"], - "X-Content-Type-Options": ["nosniff"], - "Server": ["ESF"], - "Vary": ["Origin", "X-Origin", "Referer"], - "Cache-Control": ["private"], - "X-XSS-Protection": ["0"], - "X-Frame-Options": ["SAMEORIGIN"], - "Date": ["Sat, 29 Jun 2024 15:06:59 GMT"], - "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], - "Content-Type": ["application/json; charset=UTF-8"], - "content-length": ["3331"] + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8/values/%27Sheet1%27:clear", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "x-l2-request-path": [ + "l2-managed-6" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Cache-Control": [ + "private" + ], + "X-XSS-Protection": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Sat, 29 Jun 2024 15:07:01 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "107" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" + } + } }, - "body": { - "string": "{\n \"spreadsheetId\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8?includeGridData=false", - "body": null, - "headers": { - "User-Agent": ["python-requests/2.31.0"], - "Accept-Encoding": ["gzip, deflate"], - "Accept": ["*/*"], - "Connection": ["keep-alive"], - "x-goog-api-client": ["cred-type/sa"], - "x-allowed-locations": ["0x0"], - "authorization": [""] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "x-l2-request-path": [ + "l2-managed-6" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Cache-Control": [ + "private" + ], + "X-XSS-Protection": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Sat, 29 Jun 2024 15:07:01 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8/edit\"\n}\n" + } + } }, - "headers": { - "x-l2-request-path": ["l2-managed-6"], - "Transfer-Encoding": ["chunked"], - "X-Content-Type-Options": ["nosniff"], - "Server": ["ESF"], - "Vary": ["Origin", "X-Origin", "Referer"], - "Cache-Control": ["private"], - "X-XSS-Protection": ["0"], - "X-Frame-Options": ["SAMEORIGIN"], - "Date": ["Sat, 29 Jun 2024 15:07:00 GMT"], - "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], - "Content-Type": ["application/json; charset=UTF-8"], - "content-length": ["3331"] + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8?fields=sheets.data.rowData.values.note&ranges=Sheet1", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "x-l2-request-path": [ + "l2-managed-6" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Cache-Control": [ + "private" + ], + "X-XSS-Protection": [ + "0" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Date": [ + "Sat, 29 Jun 2024 15:07:02 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "69" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" + } + } }, - "body": { - "string": "{\n \"spreadsheetId\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8/values/%27Sheet1%27:clear", - "body": null, - "headers": { - "User-Agent": ["python-requests/2.31.0"], - "Accept-Encoding": ["gzip, deflate"], - "Accept": ["*/*"], - "Connection": ["keep-alive"], - "x-goog-api-client": ["cred-type/sa"], - "x-allowed-locations": ["0x0"], - "Content-Length": ["0"], - "authorization": [""] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk:batchUpdate", + "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"read my note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 1, \"endRowIndex\": 2, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"Or don't\"}]}]}}]}", + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "Content-Length": [ + "398" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Server": [ + "ESF" + ], + "Cache-Control": [ + "private" + ], + "Date": [ + "Wed, 01 May 2024 12:10:40 GMT" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "content-length": [ + "105" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk\",\n \"replies\": [\n {},\n {}\n ]\n}\n" + } + } }, - "headers": { - "x-l2-request-path": ["l2-managed-6"], - "Transfer-Encoding": ["chunked"], - "X-Content-Type-Options": ["nosniff"], - "Server": ["ESF"], - "Vary": ["Origin", "X-Origin", "Referer"], - "Cache-Control": ["private"], - "X-XSS-Protection": ["0"], - "X-Frame-Options": ["SAMEORIGIN"], - "Date": ["Sat, 29 Jun 2024 15:07:01 GMT"], - "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], - "Content-Type": ["application/json; charset=UTF-8"], - "content-length": ["107"] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8?includeGridData=false", - "body": null, - "headers": { - "User-Agent": ["python-requests/2.31.0"], - "Accept-Encoding": ["gzip, deflate"], - "Accept": ["*/*"], - "Connection": ["keep-alive"], - "x-goog-api-client": ["cred-type/sa"], - "x-allowed-locations": ["0x0"], - "authorization": [""] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk?fields=sheets.data.rowData.values.note", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Transfer-Encoding": [ + "chunked" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "Server": [ + "ESF" + ], + "Cache-Control": [ + "private" + ], + "Date": [ + "Wed, 01 May 2024 12:10:41 GMT" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "content-length": [ + "424" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"read my note\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" + } + } }, - "headers": { - "x-l2-request-path": ["l2-managed-6"], - "Transfer-Encoding": ["chunked"], - "X-Content-Type-Options": ["nosniff"], - "Server": ["ESF"], - "Vary": ["Origin", "X-Origin", "Referer"], - "Cache-Control": ["private"], - "X-XSS-Protection": ["0"], - "X-Frame-Options": ["SAMEORIGIN"], - "Date": ["Sat, 29 Jun 2024 15:07:01 GMT"], - "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], - "Content-Type": ["application/json; charset=UTF-8"], - "content-length": ["3331"] + { + "request": { + "method": "DELETE", + "uri": "https://www.googleapis.com/drive/v3/files/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk?supportsAllDrives=True", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 204, + "message": "No Content" + }, + "headers": { + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Content-Length": [ + "0" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Origin, X-Origin" + ], + "Server": [ + "ESF" + ], + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "Date": [ + "Wed, 01 May 2024 12:10:41 GMT" + ], + "Content-Type": [ + "text/html" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ] + }, + "body": { + "string": "" + } + } }, - "body": { - "string": "{\n \"spreadsheetId\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8?fields=sheets.data.rowData.values.note&ranges=Sheet1", - "body": null, - "headers": { - "User-Agent": ["python-requests/2.31.0"], - "Accept-Encoding": ["gzip, deflate"], - "Accept": ["*/*"], - "Connection": ["keep-alive"], - "x-goog-api-client": ["cred-type/sa"], - "x-allowed-locations": ["0x0"], - "authorization": [""] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" + { + "request": { + "method": "POST", + "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", + "body": "{\"name\": \"Test WorksheetTest test_get_notes\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "Content-Length": [ + "100" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Vary": [ + "Origin, X-Origin" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Fri, 05 Jul 2024 14:13:53 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Pragma": [ + "no-cache" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "187" + ] + }, + "body": { + "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg\",\n \"name\": \"Test WorksheetTest test_get_notes\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" + } + } }, - "headers": { - "x-l2-request-path": ["l2-managed-6"], - "Transfer-Encoding": ["chunked"], - "X-Content-Type-Options": ["nosniff"], - "Server": ["ESF"], - "Vary": ["Origin", "X-Origin", "Referer"], - "Cache-Control": ["private"], - "X-XSS-Protection": ["0"], - "X-Frame-Options": ["SAMEORIGIN"], - "Date": ["Sat, 29 Jun 2024 15:07:02 GMT"], - "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], - "Content-Type": ["application/json; charset=UTF-8"], - "content-length": ["69"] + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Date": [ + "Fri, 05 Jul 2024 14:13:54 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Cache-Control": [ + "private" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg/edit\"\n}\n" + } + } }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" - } - } - }, - { - "request": { - "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk:batchUpdate", - "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"read my note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 1, \"endRowIndex\": 2, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"Or don't\"}]}]}}]}", - "headers": { - "User-Agent": ["python-requests/2.31.0"], - "Accept-Encoding": ["gzip, deflate"], - "Accept": ["*/*"], - "Connection": ["keep-alive"], - "x-goog-api-client": ["cred-type/sa"], - "x-allowed-locations": ["0x0"], - "Content-Length": ["398"], - "Content-Type": ["application/json"], - "authorization": [""] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Date": [ + "Fri, 05 Jul 2024 14:13:54 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Cache-Control": [ + "private" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg/edit\"\n}\n" + } + } }, - "headers": { - "Transfer-Encoding": ["chunked"], - "X-Content-Type-Options": ["nosniff"], - "X-Frame-Options": ["SAMEORIGIN"], - "x-l2-request-path": ["l2-managed-6"], - "Vary": ["Origin", "X-Origin", "Referer"], - "Server": ["ESF"], - "Cache-Control": ["private"], - "Date": ["Wed, 01 May 2024 12:10:40 GMT"], - "Content-Type": ["application/json; charset=UTF-8"], - "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], - "X-XSS-Protection": ["0"], - "content-length": ["105"] + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg/values/%27Sheet1%27:clear", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Date": [ + "Fri, 05 Jul 2024 14:13:55 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Cache-Control": [ + "private" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "107" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" + } + } }, - "body": { - "string": "{\n \"spreadsheetId\": \"1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk\",\n \"replies\": [\n {},\n {}\n ]\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk?fields=sheets.data.rowData.values.note", - "body": null, - "headers": { - "User-Agent": ["python-requests/2.31.0"], - "Accept-Encoding": ["gzip, deflate"], - "Accept": ["*/*"], - "Connection": ["keep-alive"], - "x-goog-api-client": ["cred-type/sa"], - "x-allowed-locations": ["0x0"], - "authorization": [""] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Date": [ + "Fri, 05 Jul 2024 14:13:56 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Cache-Control": [ + "private" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg/edit\"\n}\n" + } + } }, - "headers": { - "Transfer-Encoding": ["chunked"], - "X-Content-Type-Options": ["nosniff"], - "X-Frame-Options": ["SAMEORIGIN"], - "x-l2-request-path": ["l2-managed-6"], - "Vary": ["Origin", "X-Origin", "Referer"], - "Server": ["ESF"], - "Cache-Control": ["private"], - "Date": ["Wed, 01 May 2024 12:10:41 GMT"], - "Content-Type": ["application/json; charset=UTF-8"], - "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], - "X-XSS-Protection": ["0"], - "content-length": ["424"] + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Date": [ + "Fri, 05 Jul 2024 14:13:56 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Cache-Control": [ + "private" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "69" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" + } + } }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"read my note\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" - } - } - }, - { - "request": { - "method": "DELETE", - "uri": "https://www.googleapis.com/drive/v3/files/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk?supportsAllDrives=True", - "body": null, - "headers": { - "User-Agent": ["python-requests/2.31.0"], - "Accept-Encoding": ["gzip, deflate"], - "Accept": ["*/*"], - "Connection": ["keep-alive"], - "x-goog-api-client": ["cred-type/sa"], - "x-allowed-locations": ["0x0"], - "Content-Length": ["0"], - "authorization": [""] - } - }, - "response": { - "status": { - "code": 204, - "message": "No Content" + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg:batchUpdate", + "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"read my note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 1, \"endRowIndex\": 2, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"Or don't\"}]}]}}]}", + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "Content-Length": [ + "398" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Date": [ + "Fri, 05 Jul 2024 14:13:57 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Cache-Control": [ + "private" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "105" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg\",\n \"replies\": [\n {},\n {}\n ]\n}\n" + } + } }, - "headers": { - "Expires": ["Mon, 01 Jan 1990 00:00:00 GMT"], - "X-Content-Type-Options": ["nosniff"], - "X-Frame-Options": ["SAMEORIGIN"], - "Content-Length": ["0"], - "Pragma": ["no-cache"], - "Vary": ["Origin, X-Origin"], - "Server": ["ESF"], - "Cache-Control": ["no-cache, no-store, max-age=0, must-revalidate"], - "Date": ["Wed, 01 May 2024 12:10:41 GMT"], - "Content-Type": ["text/html"], - "Alt-Svc": ["h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"], - "X-XSS-Protection": ["0"] + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Date": [ + "Fri, 05 Jul 2024 14:13:58 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Cache-Control": [ + "private" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "424" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"read my note\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" + } + } }, - "body": { - "string": "" + { + "request": { + "method": "DELETE", + "uri": "https://www.googleapis.com/drive/v3/files/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg?supportsAllDrives=True", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.31.0" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "x-goog-api-client": [ + "cred-type/sa" + ], + "x-allowed-locations": [ + "0x0" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 204, + "message": "No Content" + }, + "headers": { + "Vary": [ + "Origin, X-Origin" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "Server": [ + "ESF" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Date": [ + "Fri, 05 Jul 2024 14:13:58 GMT" + ], + "X-XSS-Protection": [ + "0" + ], + "Pragma": [ + "no-cache" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "Content-Type": [ + "text/html" + ] + }, + "body": { + "string": "" + } + } } - } - } - ] + ] } From 1816e9a8a7f2b8df0dfb946a8d28342d218412b7 Mon Sep 17 00:00:00 2001 From: alifeee Date: Fri, 5 Jul 2024 15:16:39 +0100 Subject: [PATCH 07/13] refresh test cassette (again...) --- .../WorksheetTest.test_get_notes.json | 1070 +++-------------- 1 file changed, 171 insertions(+), 899 deletions(-) diff --git a/tests/cassettes/WorksheetTest.test_get_notes.json b/tests/cassettes/WorksheetTest.test_get_notes.json index 9d825aedc..e61e07799 100644 --- a/tests/cassettes/WorksheetTest.test_get_notes.json +++ b/tests/cassettes/WorksheetTest.test_get_notes.json @@ -42,35 +42,32 @@ "message": "OK" }, "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" + "Date": [ + "Fri, 05 Jul 2024 14:16:20 GMT" ], - "Vary": [ - "Origin, X-Origin" + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" ], "Cache-Control": [ "no-cache, no-store, max-age=0, must-revalidate" ], - "X-XSS-Protection": [ - "0" + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Server": [ + "ESF" ], "X-Frame-Options": [ "SAMEORIGIN" ], - "Expires": [ - "Mon, 01 Jan 1990 00:00:00 GMT" + "X-Content-Type-Options": [ + "nosniff" ], - "Content-Type": [ - "application/json; charset=UTF-8" + "Transfer-Encoding": [ + "chunked" ], - "Date": [ - "Sat, 29 Jun 2024 15:06:58 GMT" + "Vary": [ + "Origin, X-Origin" ], "Alt-Svc": [ "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" @@ -78,19 +75,22 @@ "Pragma": [ "no-cache" ], + "X-XSS-Protection": [ + "0" + ], "content-length": [ "187" ] }, "body": { - "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"name\": \"Test WorksheetTest test_get_notes\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" + "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0\",\n \"name\": \"Test WorksheetTest test_get_notes\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" } } }, { "request": { "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8?includeGridData=false", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0?includeGridData=false", "body": null, "headers": { "User-Agent": [ @@ -122,782 +122,54 @@ "message": "OK" }, "headers": { - "x-l2-request-path": [ - "l2-managed-6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" + "Date": [ + "Fri, 05 Jul 2024 14:16:21 GMT" ], "Cache-Control": [ "private" ], - "X-XSS-Protection": [ - "0" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Sat, 29 Jun 2024 15:06:59 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], "Content-Type": [ "application/json; charset=UTF-8" ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "x-l2-request-path": [ - "l2-managed-6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], "Server": [ "ESF" ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Cache-Control": [ - "private" - ], - "X-XSS-Protection": [ - "0" - ], "X-Frame-Options": [ "SAMEORIGIN" ], - "Date": [ - "Sat, 29 Jun 2024 15:07:00 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8/values/%27Sheet1%27:clear", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "Content-Length": [ - "0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "x-l2-request-path": [ - "l2-managed-6" - ], - "Transfer-Encoding": [ - "chunked" - ], "X-Content-Type-Options": [ "nosniff" ], - "Server": [ - "ESF" + "Transfer-Encoding": [ + "chunked" ], "Vary": [ "Origin", "X-Origin", "Referer" ], - "Cache-Control": [ - "private" - ], - "X-XSS-Protection": [ - "0" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Sat, 29 Jun 2024 15:07:01 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "107" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "x-l2-request-path": [ - "l2-managed-6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Cache-Control": [ - "private" - ], - "X-XSS-Protection": [ - "0" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Sat, 29 Jun 2024 15:07:01 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1-S_M0TH82KHincELnrlzlRN7OPl-jw44t1YD_eJrpX8?fields=sheets.data.rowData.values.note&ranges=Sheet1", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "x-l2-request-path": [ - "l2-managed-6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Cache-Control": [ - "private" - ], - "X-XSS-Protection": [ - "0" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Sat, 29 Jun 2024 15:07:02 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "69" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" - } - } - }, - { - "request": { - "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk:batchUpdate", - "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"read my note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 1, \"endRowIndex\": 2, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"Or don't\"}]}]}}]}", - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "Content-Length": [ - "398" - ], - "Content-Type": [ - "application/json" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Server": [ - "ESF" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 01 May 2024 12:10:40 GMT" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "105" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk\",\n \"replies\": [\n {},\n {}\n ]\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk?fields=sheets.data.rowData.values.note", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Server": [ - "ESF" - ], - "Cache-Control": [ - "private" - ], - "Date": [ - "Wed, 01 May 2024 12:10:41 GMT" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "424" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"read my note\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" - } - } - }, - { - "request": { - "method": "DELETE", - "uri": "https://www.googleapis.com/drive/v3/files/1D5C1Uoz_eZBURStCMEJCStrcW3H5MhVhAKkYTi19TWk?supportsAllDrives=True", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "Content-Length": [ - "0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 204, - "message": "No Content" - }, - "headers": { - "Expires": [ - "Mon, 01 Jan 1990 00:00:00 GMT" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Content-Length": [ - "0" - ], - "Pragma": [ - "no-cache" - ], - "Vary": [ - "Origin, X-Origin" - ], - "Server": [ - "ESF" - ], - "Cache-Control": [ - "no-cache, no-store, max-age=0, must-revalidate" - ], - "Date": [ - "Wed, 01 May 2024 12:10:41 GMT" - ], - "Content-Type": [ - "text/html" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "X-XSS-Protection": [ - "0" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "method": "POST", - "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", - "body": "{\"name\": \"Test WorksheetTest test_get_notes\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "Content-Length": [ - "100" - ], - "Content-Type": [ - "application/json" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Vary": [ - "Origin, X-Origin" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Expires": [ - "Mon, 01 Jan 1990 00:00:00 GMT" - ], - "Server": [ - "ESF" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Fri, 05 Jul 2024 14:13:53 GMT" - ], - "X-XSS-Protection": [ - "0" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Pragma": [ - "no-cache" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Cache-Control": [ - "no-cache, no-store, max-age=0, must-revalidate" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "187" - ] - }, - "body": { - "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg\",\n \"name\": \"Test WorksheetTest test_get_notes\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Server": [ - "ESF" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Date": [ - "Fri, 05 Jul 2024 14:13:54 GMT" - ], - "X-XSS-Protection": [ - "0" - ], - "Transfer-Encoding": [ - "chunked" - ], "Alt-Svc": [ "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" ], - "Cache-Control": [ - "private" + "x-l2-request-path": [ + "l2-managed-6" ], - "Content-Type": [ - "application/json; charset=UTF-8" + "X-XSS-Protection": [ + "0" ], "content-length": [ "3331" ] }, "body": { - "string": "{\n \"spreadsheetId\": \"1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg/edit\"\n}\n" + "string": "{\n \"spreadsheetId\": \"1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0/edit\"\n}\n" } } }, { "request": { "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg?includeGridData=false", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0?includeGridData=false", "body": null, "headers": { "User-Agent": [ @@ -929,54 +201,54 @@ "message": "OK" }, "headers": { - "Vary": [ - "Origin", - "X-Origin", - "Referer" + "Date": [ + "Fri, 05 Jul 2024 14:16:22 GMT" ], - "X-Frame-Options": [ - "SAMEORIGIN" + "Cache-Control": [ + "private" + ], + "Content-Type": [ + "application/json; charset=UTF-8" ], "Server": [ "ESF" ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], "X-Content-Type-Options": [ "nosniff" ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Date": [ - "Fri, 05 Jul 2024 14:13:54 GMT" - ], - "X-XSS-Protection": [ - "0" - ], "Transfer-Encoding": [ "chunked" ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], "Alt-Svc": [ "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" ], - "Cache-Control": [ - "private" + "x-l2-request-path": [ + "l2-managed-6" ], - "Content-Type": [ - "application/json; charset=UTF-8" + "X-XSS-Protection": [ + "0" ], "content-length": [ "3331" ] }, "body": { - "string": "{\n \"spreadsheetId\": \"1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg/edit\"\n}\n" + "string": "{\n \"spreadsheetId\": \"1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0/edit\"\n}\n" } } }, { "request": { "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg/values/%27Sheet1%27:clear", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0/values/%27Sheet1%27:clear", "body": null, "headers": { "User-Agent": [ @@ -1011,54 +283,54 @@ "message": "OK" }, "headers": { - "Vary": [ - "Origin", - "X-Origin", - "Referer" + "Date": [ + "Fri, 05 Jul 2024 14:16:22 GMT" ], - "X-Frame-Options": [ - "SAMEORIGIN" + "Cache-Control": [ + "private" + ], + "Content-Type": [ + "application/json; charset=UTF-8" ], "Server": [ "ESF" ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], "X-Content-Type-Options": [ "nosniff" ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Date": [ - "Fri, 05 Jul 2024 14:13:55 GMT" - ], - "X-XSS-Protection": [ - "0" - ], "Transfer-Encoding": [ "chunked" ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], "Alt-Svc": [ "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" ], - "Cache-Control": [ - "private" + "x-l2-request-path": [ + "l2-managed-6" ], - "Content-Type": [ - "application/json; charset=UTF-8" + "X-XSS-Protection": [ + "0" ], "content-length": [ "107" ] }, "body": { - "string": "{\n \"spreadsheetId\": \"1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" + "string": "{\n \"spreadsheetId\": \"1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" } } }, { "request": { "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg?includeGridData=false", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0?includeGridData=false", "body": null, "headers": { "User-Agent": [ @@ -1090,54 +362,54 @@ "message": "OK" }, "headers": { - "Vary": [ - "Origin", - "X-Origin", - "Referer" + "Date": [ + "Fri, 05 Jul 2024 14:16:23 GMT" ], - "X-Frame-Options": [ - "SAMEORIGIN" + "Cache-Control": [ + "private" + ], + "Content-Type": [ + "application/json; charset=UTF-8" ], "Server": [ "ESF" ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], "X-Content-Type-Options": [ "nosniff" ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Date": [ - "Fri, 05 Jul 2024 14:13:56 GMT" - ], - "X-XSS-Protection": [ - "0" - ], "Transfer-Encoding": [ "chunked" ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], "Alt-Svc": [ "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" ], - "Cache-Control": [ - "private" + "x-l2-request-path": [ + "l2-managed-6" ], - "Content-Type": [ - "application/json; charset=UTF-8" + "X-XSS-Protection": [ + "0" ], "content-length": [ "3331" ] }, "body": { - "string": "{\n \"spreadsheetId\": \"1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg/edit\"\n}\n" + "string": "{\n \"spreadsheetId\": \"1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0/edit\"\n}\n" } } }, { "request": { "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27", "body": null, "headers": { "User-Agent": [ @@ -1169,40 +441,40 @@ "message": "OK" }, "headers": { - "Vary": [ - "Origin", - "X-Origin", - "Referer" + "Date": [ + "Fri, 05 Jul 2024 14:16:24 GMT" ], - "X-Frame-Options": [ - "SAMEORIGIN" + "Cache-Control": [ + "private" + ], + "Content-Type": [ + "application/json; charset=UTF-8" ], "Server": [ "ESF" ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], "X-Content-Type-Options": [ "nosniff" ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Date": [ - "Fri, 05 Jul 2024 14:13:56 GMT" - ], - "X-XSS-Protection": [ - "0" - ], "Transfer-Encoding": [ "chunked" ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], "Alt-Svc": [ "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" ], - "Cache-Control": [ - "private" + "x-l2-request-path": [ + "l2-managed-6" ], - "Content-Type": [ - "application/json; charset=UTF-8" + "X-XSS-Protection": [ + "0" ], "content-length": [ "69" @@ -1216,7 +488,7 @@ { "request": { "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg:batchUpdate", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0:batchUpdate", "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"read my note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 1, \"endRowIndex\": 2, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"Or don't\"}]}]}}]}", "headers": { "User-Agent": [ @@ -1254,54 +526,54 @@ "message": "OK" }, "headers": { - "Vary": [ - "Origin", - "X-Origin", - "Referer" + "Date": [ + "Fri, 05 Jul 2024 14:16:24 GMT" ], - "X-Frame-Options": [ - "SAMEORIGIN" + "Cache-Control": [ + "private" + ], + "Content-Type": [ + "application/json; charset=UTF-8" ], "Server": [ "ESF" ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], "X-Content-Type-Options": [ "nosniff" ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Date": [ - "Fri, 05 Jul 2024 14:13:57 GMT" - ], - "X-XSS-Protection": [ - "0" - ], "Transfer-Encoding": [ "chunked" ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], "Alt-Svc": [ "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" ], - "Cache-Control": [ - "private" + "x-l2-request-path": [ + "l2-managed-6" ], - "Content-Type": [ - "application/json; charset=UTF-8" + "X-XSS-Protection": [ + "0" ], "content-length": [ "105" ] }, "body": { - "string": "{\n \"spreadsheetId\": \"1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg\",\n \"replies\": [\n {},\n {}\n ]\n}\n" + "string": "{\n \"spreadsheetId\": \"1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0\",\n \"replies\": [\n {},\n {}\n ]\n}\n" } } }, { "request": { "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27", "body": null, "headers": { "User-Agent": [ @@ -1333,40 +605,40 @@ "message": "OK" }, "headers": { - "Vary": [ - "Origin", - "X-Origin", - "Referer" + "Date": [ + "Fri, 05 Jul 2024 14:16:25 GMT" ], - "X-Frame-Options": [ - "SAMEORIGIN" + "Cache-Control": [ + "private" + ], + "Content-Type": [ + "application/json; charset=UTF-8" ], "Server": [ "ESF" ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], "X-Content-Type-Options": [ "nosniff" ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "Date": [ - "Fri, 05 Jul 2024 14:13:58 GMT" - ], - "X-XSS-Protection": [ - "0" - ], "Transfer-Encoding": [ "chunked" ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], "Alt-Svc": [ "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" ], - "Cache-Control": [ - "private" + "x-l2-request-path": [ + "l2-managed-6" ], - "Content-Type": [ - "application/json; charset=UTF-8" + "X-XSS-Protection": [ + "0" ], "content-length": [ "424" @@ -1380,7 +652,7 @@ { "request": { "method": "DELETE", - "uri": "https://www.googleapis.com/drive/v3/files/1p7K_SyR_q7j92neyq7DgY3RdXhD82yTUsKSfC-ngfYg?supportsAllDrives=True", + "uri": "https://www.googleapis.com/drive/v3/files/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0?supportsAllDrives=True", "body": null, "headers": { "User-Agent": [ @@ -1415,41 +687,41 @@ "message": "No Content" }, "headers": { - "Vary": [ - "Origin, X-Origin" + "Date": [ + "Fri, 05 Jul 2024 14:16:25 GMT" ], - "X-Frame-Options": [ - "SAMEORIGIN" + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" ], "Expires": [ "Mon, 01 Jan 1990 00:00:00 GMT" ], + "Content-Type": [ + "text/html" + ], "Server": [ "ESF" ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], "X-Content-Type-Options": [ "nosniff" ], - "Content-Length": [ - "0" - ], - "Date": [ - "Fri, 05 Jul 2024 14:13:58 GMT" + "Vary": [ + "Origin, X-Origin" ], - "X-XSS-Protection": [ + "Content-Length": [ "0" ], - "Pragma": [ - "no-cache" - ], "Alt-Svc": [ "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" ], - "Cache-Control": [ - "no-cache, no-store, max-age=0, must-revalidate" + "Pragma": [ + "no-cache" ], - "Content-Type": [ - "text/html" + "X-XSS-Protection": [ + "0" ] }, "body": { From cd2a1ebb9500ef9be224890c87fb9df60c9c0a44 Mon Sep 17 00:00:00 2001 From: Mudassir Chapra <37051110+muddi900@users.noreply.github.com> Date: Fri, 5 Jul 2024 15:29:38 +0000 Subject: [PATCH 08/13] Added range notes test --- .github/CONTRIBUTING.md | 14 +- .../WorksheetTest.test_get_notes.json | 747 ++++++++++++++++++ tests/worksheet_test.py | 19 +- 3 files changed, 771 insertions(+), 9 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index fcb0642f4..b587c24ba 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -6,11 +6,13 @@ - Make sure unit tests pass. Please read how to run unit tests [below](#run-tests-offline). - If you are fixing a bug: + - If you are resolving an existing issue, reference the issue ID in a commit message `(e.g., fixed #XXXX)`. - If the issue has not been reported, please add a detailed description of the bug in the Pull Request (PR). - Please add a regression test case to check the bug is fixed. - If you are adding a new feature: + - Please open a suggestion issue first. - Provide a convincing reason to add this feature and have it greenlighted before working on it. - Add tests to cover the functionality. @@ -110,7 +112,7 @@ In the following cases, you must record new HTTP requests: - an existing test is updated and does a new HTTP request - gspread is updated and does a new HTTP request -### Run test, capturing *all* HTTP requests +### Run test, capturing _all_ HTTP requests In some cases if the test suite can't record new episodes, or it can't replay them offline, you can run a complete update of the cassettes. @@ -118,15 +120,15 @@ In some cases if the test suite can't record new episodes, or it can't replay th GS_CREDS_FILENAME=<./YOUR_CREDS.json> GS_RECORD_MODE=all tox -e py ``` -### Run test, capturing *only new* HTTP requests +### Run test, capturing _only new_ HTTP requests To record new HTTP requests: 1. Remove the file holding the recorded HTTP requests of the test(s). - e.g., - 1. for the file `tests/cell_test.py`: - 2. for the test `test_a1_value` - 3. remove the file `tests/cassettes/CellTest.test_a1_value.json` + e.g., + 1. for the file `tests/cell_test.py`: + 2. for the test `test_a1_value` + 3. remove the file `tests/cassettes/CellTest.test_a1_value.json` 1. Run the tests with `GS_RECORD_MODE=new_episodes`. ```bash diff --git a/tests/cassettes/WorksheetTest.test_get_notes.json b/tests/cassettes/WorksheetTest.test_get_notes.json index e61e07799..1b1a7d383 100644 --- a/tests/cassettes/WorksheetTest.test_get_notes.json +++ b/tests/cassettes/WorksheetTest.test_get_notes.json @@ -728,6 +728,753 @@ "string": "" } } + }, + { + "request": { + "method": "POST", + "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", + "body": "{\"name\": \"Test WorksheetTest test_get_notes\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "100" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Transfer-Encoding": [ + "chunked" + ], + "Date": [ + "Fri, 05 Jul 2024 15:29:12 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin, X-Origin" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "187" + ] + }, + "body": { + "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c\",\n \"name\": \"Test WorksheetTest test_get_notes\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Transfer-Encoding": [ + "chunked" + ], + "Date": [ + "Fri, 05 Jul 2024 15:29:13 GMT" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "private" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Transfer-Encoding": [ + "chunked" + ], + "Date": [ + "Fri, 05 Jul 2024 15:29:13 GMT" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "private" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c/values/%27Sheet1%27:clear", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Transfer-Encoding": [ + "chunked" + ], + "Date": [ + "Fri, 05 Jul 2024 15:29:13 GMT" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "private" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "107" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Transfer-Encoding": [ + "chunked" + ], + "Date": [ + "Fri, 05 Jul 2024 15:29:13 GMT" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "private" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Transfer-Encoding": [ + "chunked" + ], + "Date": [ + "Fri, 05 Jul 2024 15:29:13 GMT" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "private" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "69" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c:batchUpdate", + "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"read my note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 1, \"endRowIndex\": 2, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"Or don't\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 2, \"endRowIndex\": 3, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"another note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 2, \"endRowIndex\": 3, \"startColumnIndex\": 2, \"endColumnIndex\": 3, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"test\"}]}]}}]}", + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "778" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Transfer-Encoding": [ + "chunked" + ], + "Date": [ + "Fri, 05 Jul 2024 15:29:14 GMT" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "private" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "121" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c\",\n \"replies\": [\n {},\n {},\n {},\n {}\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27%21A2%3AC3", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Transfer-Encoding": [ + "chunked" + ], + "Date": [ + "Fri, 05 Jul 2024 15:29:14 GMT" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "private" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "514" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n },\n {\n \"values\": [\n {\n \"note\": \"another note\"\n },\n {},\n {\n \"note\": \"test\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Transfer-Encoding": [ + "chunked" + ], + "Date": [ + "Fri, 05 Jul 2024 15:29:14 GMT" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "private" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "662" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"read my note\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n },\n {\n \"values\": [\n {\n \"note\": \"another note\"\n },\n {},\n {\n \"note\": \"test\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "DELETE", + "uri": "https://www.googleapis.com/drive/v3/files/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c?supportsAllDrives=True", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 204, + "message": "No Content" + }, + "headers": { + "Date": [ + "Fri, 05 Jul 2024 15:29:14 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "ESF" + ], + "Vary": [ + "Origin, X-Origin" + ], + "X-XSS-Protection": [ + "0" + ], + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Content-Type": [ + "text/html" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ] + }, + "body": { + "string": "" + } + } } ] } diff --git a/tests/worksheet_test.py b/tests/worksheet_test.py index ba430aa13..36097063a 100644 --- a/tests/worksheet_test.py +++ b/tests/worksheet_test.py @@ -1631,20 +1631,33 @@ def test_worksheet_notes(self): @pytest.mark.vcr() def test_get_notes(self): w = self.spreadsheet.worksheets()[0] - notes = {"A1": "read my note", "B2": "Or don't"} - notes_array = [ + notes = { + "A1": "read my note", + "B2": "Or don't", + "A3": "another note", + "C3": "test", + } + expected_notes = [ [notes["A1"]], ["", notes["B2"]], + ["another note", "", "test"], + ] + + expected_range_notes = [ + ["", "Or don't"], + ["another note", "", "test"], ] empty_notes = w.get_notes() w.insert_notes(notes) + range_notes = w.get_notes(grid_range="A2:C3") all_notes = w.get_notes() self.assertEqual(empty_notes, [[]]) - self.assertEqual(all_notes, notes_array) + self.assertEqual(all_notes, expected_notes) + self.assertEqual(range_notes, expected_range_notes) @pytest.mark.vcr() def test_batch_clear(self): From 6e395aabbfec437e6615fed228d019d6ac555f95 Mon Sep 17 00:00:00 2001 From: Mudassir Chapra <37051110+muddi900@users.noreply.github.com> Date: Sat, 6 Jul 2024 11:59:19 +0000 Subject: [PATCH 09/13] reverting CONTRIBUTING.md --- .github/CONTRIBUTING.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index b587c24ba..fcb0642f4 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -6,13 +6,11 @@ - Make sure unit tests pass. Please read how to run unit tests [below](#run-tests-offline). - If you are fixing a bug: - - If you are resolving an existing issue, reference the issue ID in a commit message `(e.g., fixed #XXXX)`. - If the issue has not been reported, please add a detailed description of the bug in the Pull Request (PR). - Please add a regression test case to check the bug is fixed. - If you are adding a new feature: - - Please open a suggestion issue first. - Provide a convincing reason to add this feature and have it greenlighted before working on it. - Add tests to cover the functionality. @@ -112,7 +110,7 @@ In the following cases, you must record new HTTP requests: - an existing test is updated and does a new HTTP request - gspread is updated and does a new HTTP request -### Run test, capturing _all_ HTTP requests +### Run test, capturing *all* HTTP requests In some cases if the test suite can't record new episodes, or it can't replay them offline, you can run a complete update of the cassettes. @@ -120,15 +118,15 @@ In some cases if the test suite can't record new episodes, or it can't replay th GS_CREDS_FILENAME=<./YOUR_CREDS.json> GS_RECORD_MODE=all tox -e py ``` -### Run test, capturing _only new_ HTTP requests +### Run test, capturing *only new* HTTP requests To record new HTTP requests: 1. Remove the file holding the recorded HTTP requests of the test(s). - e.g., - 1. for the file `tests/cell_test.py`: - 2. for the test `test_a1_value` - 3. remove the file `tests/cassettes/CellTest.test_a1_value.json` + e.g., + 1. for the file `tests/cell_test.py`: + 2. for the test `test_a1_value` + 3. remove the file `tests/cassettes/CellTest.test_a1_value.json` 1. Run the tests with `GS_RECORD_MODE=new_episodes`. ```bash From 0b44118e14387218b6a6007e109101f01c69dd7a Mon Sep 17 00:00:00 2001 From: Mudassir Chapra <37051110+muddi900@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:17:07 +0000 Subject: [PATCH 10/13] added `test_get_notes_2nd_sheet` (authored by @alifeee) --- tests/worksheet_test.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/tests/worksheet_test.py b/tests/worksheet_test.py index 36097063a..0449e9e3f 100644 --- a/tests/worksheet_test.py +++ b/tests/worksheet_test.py @@ -1659,6 +1659,37 @@ def test_get_notes(self): self.assertEqual(all_notes, expected_notes) self.assertEqual(range_notes, expected_range_notes) + @pytest.mark.vcr() + def test_get_notes_2nd_sheet(self): + self.spreadsheet.worksheets()[0] + w2 = self.spreadsheet.add_worksheet("worksheet 2", 3, 3) + + notes = { + "A1": "the first time", + "B3": "two sheets", + } + + expected_notes = [ + ["the first time"], + [], + ["", "two sheets"], + ] + expected_range_notes = [ + [], + ["", "two sheets"], + ] + + empty_notes = w2.get_notes() + + w2.insert_notes(notes) + + all_notes = w2.get_notes() + range_notes = w2.get_notes(grid_range="A2:C3") + + self.assertEqual(empty_notes, [[]]) + self.assertEqual(all_notes, expected_notes) + self.assertEqual(range_notes, expected_range_notes) + @pytest.mark.vcr() def test_batch_clear(self): w = self.spreadsheet.sheet1 From 1a3e5f491b0c952a50cc5ee63b3895ee1f00617c Mon Sep 17 00:00:00 2001 From: Mudassir Chapra <37051110+muddi900@users.noreply.github.com> Date: Mon, 8 Jul 2024 10:21:09 +0000 Subject: [PATCH 11/13] removed the cassettes --- .../WorksheetTest.test_get_notes.json | 1480 ----------------- ...orksheetTest.test_get_notes_2nd_sheet.json | 897 ---------- 2 files changed, 2377 deletions(-) delete mode 100644 tests/cassettes/WorksheetTest.test_get_notes.json delete mode 100644 tests/cassettes/WorksheetTest.test_get_notes_2nd_sheet.json diff --git a/tests/cassettes/WorksheetTest.test_get_notes.json b/tests/cassettes/WorksheetTest.test_get_notes.json deleted file mode 100644 index 1b1a7d383..000000000 --- a/tests/cassettes/WorksheetTest.test_get_notes.json +++ /dev/null @@ -1,1480 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "method": "POST", - "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", - "body": "{\"name\": \"Test WorksheetTest test_get_notes\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "Content-Length": [ - "100" - ], - "Content-Type": [ - "application/json" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Date": [ - "Fri, 05 Jul 2024 14:16:20 GMT" - ], - "Expires": [ - "Mon, 01 Jan 1990 00:00:00 GMT" - ], - "Cache-Control": [ - "no-cache, no-store, max-age=0, must-revalidate" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Server": [ - "ESF" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Vary": [ - "Origin, X-Origin" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Pragma": [ - "no-cache" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "187" - ] - }, - "body": { - "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0\",\n \"name\": \"Test WorksheetTest test_get_notes\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Date": [ - "Fri, 05 Jul 2024 14:16:21 GMT" - ], - "Cache-Control": [ - "private" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Server": [ - "ESF" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Date": [ - "Fri, 05 Jul 2024 14:16:22 GMT" - ], - "Cache-Control": [ - "private" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Server": [ - "ESF" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0/values/%27Sheet1%27:clear", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "Content-Length": [ - "0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Date": [ - "Fri, 05 Jul 2024 14:16:22 GMT" - ], - "Cache-Control": [ - "private" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Server": [ - "ESF" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "107" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Date": [ - "Fri, 05 Jul 2024 14:16:23 GMT" - ], - "Cache-Control": [ - "private" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Server": [ - "ESF" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Date": [ - "Fri, 05 Jul 2024 14:16:24 GMT" - ], - "Cache-Control": [ - "private" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Server": [ - "ESF" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "69" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" - } - } - }, - { - "request": { - "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0:batchUpdate", - "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"read my note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 1, \"endRowIndex\": 2, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"Or don't\"}]}]}}]}", - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "Content-Length": [ - "398" - ], - "Content-Type": [ - "application/json" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Date": [ - "Fri, 05 Jul 2024 14:16:24 GMT" - ], - "Cache-Control": [ - "private" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Server": [ - "ESF" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "105" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0\",\n \"replies\": [\n {},\n {}\n ]\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Date": [ - "Fri, 05 Jul 2024 14:16:25 GMT" - ], - "Cache-Control": [ - "private" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Server": [ - "ESF" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Transfer-Encoding": [ - "chunked" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "X-XSS-Protection": [ - "0" - ], - "content-length": [ - "424" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"read my note\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" - } - } - }, - { - "request": { - "method": "DELETE", - "uri": "https://www.googleapis.com/drive/v3/files/1fb5QMe4i7-_MtL55TYEpW8ykmMcPN7_j1JddUongiA0?supportsAllDrives=True", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "Content-Length": [ - "0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 204, - "message": "No Content" - }, - "headers": { - "Date": [ - "Fri, 05 Jul 2024 14:16:25 GMT" - ], - "Cache-Control": [ - "no-cache, no-store, max-age=0, must-revalidate" - ], - "Expires": [ - "Mon, 01 Jan 1990 00:00:00 GMT" - ], - "Content-Type": [ - "text/html" - ], - "Server": [ - "ESF" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Vary": [ - "Origin, X-Origin" - ], - "Content-Length": [ - "0" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Pragma": [ - "no-cache" - ], - "X-XSS-Protection": [ - "0" - ] - }, - "body": { - "string": "" - } - } - }, - { - "request": { - "method": "POST", - "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", - "body": "{\"name\": \"Test WorksheetTest test_get_notes\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "100" - ], - "Content-Type": [ - "application/json" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "Date": [ - "Fri, 05 Jul 2024 15:29:12 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin, X-Origin" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "no-cache, no-store, max-age=0, must-revalidate" - ], - "Expires": [ - "Mon, 01 Jan 1990 00:00:00 GMT" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "187" - ] - }, - "body": { - "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c\",\n \"name\": \"Test WorksheetTest test_get_notes\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "Date": [ - "Fri, 05 Jul 2024 15:29:13 GMT" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "Date": [ - "Fri, 05 Jul 2024 15:29:13 GMT" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c/values/%27Sheet1%27:clear", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "Date": [ - "Fri, 05 Jul 2024 15:29:13 GMT" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "107" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "Date": [ - "Fri, 05 Jul 2024 15:29:13 GMT" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "3331" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "Date": [ - "Fri, 05 Jul 2024 15:29:13 GMT" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "69" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" - } - } - }, - { - "request": { - "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c:batchUpdate", - "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"read my note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 1, \"endRowIndex\": 2, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"Or don't\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 2, \"endRowIndex\": 3, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"another note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 2, \"endRowIndex\": 3, \"startColumnIndex\": 2, \"endColumnIndex\": 3, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"test\"}]}]}}]}", - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "778" - ], - "Content-Type": [ - "application/json" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "Date": [ - "Fri, 05 Jul 2024 15:29:14 GMT" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "121" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c\",\n \"replies\": [\n {},\n {},\n {},\n {}\n ]\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27%21A2%3AC3", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "Date": [ - "Fri, 05 Jul 2024 15:29:14 GMT" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "514" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n },\n {\n \"values\": [\n {\n \"note\": \"another note\"\n },\n {},\n {\n \"note\": \"test\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "Date": [ - "Fri, 05 Jul 2024 15:29:14 GMT" - ], - "x-l2-request-path": [ - "l2-managed-6" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "private" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "662" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"read my note\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n },\n {\n \"values\": [\n {\n \"note\": \"another note\"\n },\n {},\n {\n \"note\": \"test\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" - } - } - }, - { - "request": { - "method": "DELETE", - "uri": "https://www.googleapis.com/drive/v3/files/1PeqsnPaiHoyuqN2padTpmk0iw7Az1IyzLesO72RkR2c?supportsAllDrives=True", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.32.3" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "Content-Length": [ - "0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 204, - "message": "No Content" - }, - "headers": { - "Date": [ - "Fri, 05 Jul 2024 15:29:14 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin, X-Origin" - ], - "X-XSS-Protection": [ - "0" - ], - "Cache-Control": [ - "no-cache, no-store, max-age=0, must-revalidate" - ], - "Expires": [ - "Mon, 01 Jan 1990 00:00:00 GMT" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Content-Length": [ - "0" - ], - "Content-Type": [ - "text/html" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ] - }, - "body": { - "string": "" - } - } - } - ] -} diff --git a/tests/cassettes/WorksheetTest.test_get_notes_2nd_sheet.json b/tests/cassettes/WorksheetTest.test_get_notes_2nd_sheet.json deleted file mode 100644 index a6fd59add..000000000 --- a/tests/cassettes/WorksheetTest.test_get_notes_2nd_sheet.json +++ /dev/null @@ -1,897 +0,0 @@ -{ - "version": 1, - "interactions": [ - { - "request": { - "method": "POST", - "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", - "body": "{\"name\": \"Test WorksheetTest test_get_notes_2nd_sheet\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "Content-Length": [ - "110" - ], - "Content-Type": [ - "application/json" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin, X-Origin" - ], - "Cache-Control": [ - "no-cache, no-store, max-age=0, must-revalidate" - ], - "X-XSS-Protection": [ - "0" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Expires": [ - "Mon, 01 Jan 1990 00:00:00 GMT" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "Date": [ - "Sat, 29 Jun 2024 15:07:07 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Pragma": [ - "no-cache" - ], - "content-length": [ - "197" - ] - }, - "body": { - "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc\",\n \"name\": \"Test WorksheetTest test_get_notes_2nd_sheet\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "x-l2-request-path": [ - "l2-managed-6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Cache-Control": [ - "private" - ], - "X-XSS-Protection": [ - "0" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Sat, 29 Jun 2024 15:07:07 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "3341" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes_2nd_sheet\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "x-l2-request-path": [ - "l2-managed-6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Cache-Control": [ - "private" - ], - "X-XSS-Protection": [ - "0" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Sat, 29 Jun 2024 15:07:08 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "3341" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes_2nd_sheet\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc/values/%27Sheet1%27:clear", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "Content-Length": [ - "0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "x-l2-request-path": [ - "l2-managed-6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Cache-Control": [ - "private" - ], - "X-XSS-Protection": [ - "0" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Sat, 29 Jun 2024 15:07:08 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "107" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc?includeGridData=false", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "x-l2-request-path": [ - "l2-managed-6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Cache-Control": [ - "private" - ], - "X-XSS-Protection": [ - "0" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Sat, 29 Jun 2024 15:07:09 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "3341" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes_2nd_sheet\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc/edit\"\n}\n" - } - } - }, - { - "request": { - "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc:batchUpdate", - "body": "{\"requests\": [{\"addSheet\": {\"properties\": {\"title\": \"worksheet 2\", \"sheetType\": \"GRID\", \"gridProperties\": {\"rowCount\": 3, \"columnCount\": 3}}}}]}", - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "Content-Length": [ - "144" - ], - "Content-Type": [ - "application/json" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "x-l2-request-path": [ - "l2-managed-6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Cache-Control": [ - "private" - ], - "X-XSS-Protection": [ - "0" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Sat, 29 Jun 2024 15:07:10 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "382" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc\",\n \"replies\": [\n {\n \"addSheet\": {\n \"properties\": {\n \"sheetId\": 1782405112,\n \"title\": \"worksheet 2\",\n \"index\": 1,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 3,\n \"columnCount\": 3\n }\n }\n }\n }\n ]\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc?fields=sheets.data.rowData.values.note&ranges=worksheet+2", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "x-l2-request-path": [ - "l2-managed-6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Cache-Control": [ - "private" - ], - "X-XSS-Protection": [ - "0" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Sat, 29 Jun 2024 15:07:10 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "69" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" - } - } - }, - { - "request": { - "method": "POST", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc:batchUpdate", - "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 1782405112}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"the first time\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 2, \"endRowIndex\": 3, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 1782405112}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"two sheets\"}]}]}}]}", - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "Content-Length": [ - "420" - ], - "Content-Type": [ - "application/json" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "x-l2-request-path": [ - "l2-managed-6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Cache-Control": [ - "private" - ], - "X-XSS-Protection": [ - "0" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Sat, 29 Jun 2024 15:07:11 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "105" - ] - }, - "body": { - "string": "{\n \"spreadsheetId\": \"1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc\",\n \"replies\": [\n {},\n {}\n ]\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc?fields=sheets.data.rowData.values.note&ranges=worksheet+2", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "x-l2-request-path": [ - "l2-managed-6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Cache-Control": [ - "private" - ], - "X-XSS-Protection": [ - "0" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Sat, 29 Jun 2024 15:07:12 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "444" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"the first time\"\n }\n ]\n },\n {},\n {\n \"values\": [\n {},\n {\n \"note\": \"two sheets\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" - } - } - }, - { - "request": { - "method": "GET", - "uri": "https://sheets.googleapis.com/v4/spreadsheets/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc?fields=sheets.data.rowData.values.note&ranges=%27worksheet+2%27%21A2%3AC3", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 200, - "message": "OK" - }, - "headers": { - "x-l2-request-path": [ - "l2-managed-6" - ], - "Transfer-Encoding": [ - "chunked" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin", - "X-Origin", - "Referer" - ], - "Cache-Control": [ - "private" - ], - "X-XSS-Protection": [ - "0" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Date": [ - "Sat, 29 Jun 2024 15:07:12 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Content-Type": [ - "application/json; charset=UTF-8" - ], - "content-length": [ - "294" - ] - }, - "body": { - "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {},\n {\n \"values\": [\n {},\n {\n \"note\": \"two sheets\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" - } - } - }, - { - "request": { - "method": "DELETE", - "uri": "https://www.googleapis.com/drive/v3/files/1XXiZCoOQWcAradnj8Gah_5CSoKjG430kjfNx7Lc_3dc?supportsAllDrives=True", - "body": null, - "headers": { - "User-Agent": [ - "python-requests/2.31.0" - ], - "Accept-Encoding": [ - "gzip, deflate" - ], - "Accept": [ - "*/*" - ], - "Connection": [ - "keep-alive" - ], - "x-goog-api-client": [ - "cred-type/sa" - ], - "x-allowed-locations": [ - "0x0" - ], - "Content-Length": [ - "0" - ], - "authorization": [ - "" - ] - } - }, - "response": { - "status": { - "code": 204, - "message": "No Content" - }, - "headers": { - "X-Content-Type-Options": [ - "nosniff" - ], - "Server": [ - "ESF" - ], - "Vary": [ - "Origin, X-Origin" - ], - "Cache-Control": [ - "no-cache, no-store, max-age=0, must-revalidate" - ], - "X-XSS-Protection": [ - "0" - ], - "X-Frame-Options": [ - "SAMEORIGIN" - ], - "Expires": [ - "Mon, 01 Jan 1990 00:00:00 GMT" - ], - "Content-Type": [ - "text/html" - ], - "Content-Length": [ - "0" - ], - "Date": [ - "Sat, 29 Jun 2024 15:07:13 GMT" - ], - "Alt-Svc": [ - "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" - ], - "Pragma": [ - "no-cache" - ] - }, - "body": { - "string": "" - } - } - } - ] -} From f31db23d23e0a38b148986d82e7c13f4ff05878c Mon Sep 17 00:00:00 2001 From: Mudassir Chapra <37051110+muddi900@users.noreply.github.com> Date: Wed, 31 Jul 2024 20:04:57 +0000 Subject: [PATCH 12/13] removed the no-op line --- tests/worksheet_test.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/worksheet_test.py b/tests/worksheet_test.py index 0449e9e3f..ef362ea91 100644 --- a/tests/worksheet_test.py +++ b/tests/worksheet_test.py @@ -1661,7 +1661,6 @@ def test_get_notes(self): @pytest.mark.vcr() def test_get_notes_2nd_sheet(self): - self.spreadsheet.worksheets()[0] w2 = self.spreadsheet.add_worksheet("worksheet 2", 3, 3) notes = { From 95cbb1ea07c177a14f1ee4c52f9226576a1ac6bf Mon Sep 17 00:00:00 2001 From: Alexandre Lavigne Date: Mon, 7 Oct 2024 21:30:11 +0200 Subject: [PATCH 13/13] Add test cassettes record Signed-off-by: Alexandre Lavigne --- .../WorksheetTest.test_get_notes.json | 752 ++++++++ ...orksheetTest.test_get_notes_2nd_sheet.json | 1511 +++++++++++++++++ 2 files changed, 2263 insertions(+) create mode 100644 tests/cassettes/WorksheetTest.test_get_notes.json create mode 100644 tests/cassettes/WorksheetTest.test_get_notes_2nd_sheet.json diff --git a/tests/cassettes/WorksheetTest.test_get_notes.json b/tests/cassettes/WorksheetTest.test_get_notes.json new file mode 100644 index 000000000..d1ead538f --- /dev/null +++ b/tests/cassettes/WorksheetTest.test_get_notes.json @@ -0,0 +1,752 @@ +{ + "version": 1, + "interactions": [ + { + "request": { + "method": "POST", + "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", + "body": "{\"name\": \"Test WorksheetTest test_get_notes\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "100" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:43 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin, X-Origin" + ], + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "187" + ] + }, + "body": { + "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI\",\n \"name\": \"Test WorksheetTest test_get_notes\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "private" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:43 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "private" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:44 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI/values/%27Sheet1%27:clear", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "private" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:45 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "107" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "private" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:45 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "3331" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "private" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:46 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "69" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI:batchUpdate", + "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"read my note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 1, \"endRowIndex\": 2, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"Or don't\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 2, \"endRowIndex\": 3, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"another note\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 2, \"endRowIndex\": 3, \"startColumnIndex\": 2, \"endColumnIndex\": 3, \"sheetId\": 0}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"test\"}]}]}}]}", + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "778" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "private" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:47 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "121" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI\",\n \"replies\": [\n {},\n {},\n {},\n {}\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27%21A2%3AC3", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "private" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:47 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "514" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n },\n {\n \"values\": [\n {\n \"note\": \"another note\"\n },\n {},\n {\n \"note\": \"test\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI?fields=sheets.data.rowData.values.note&ranges=%27Sheet1%27", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "private" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:48 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "662" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"read my note\"\n }\n ]\n },\n {\n \"values\": [\n {},\n {\n \"note\": \"Or don't\"\n }\n ]\n },\n {\n \"values\": [\n {\n \"note\": \"another note\"\n },\n {},\n {\n \"note\": \"test\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "DELETE", + "uri": "https://www.googleapis.com/drive/v3/files/1ixIGCQezexeSZMbzt_A3kYfYLMC9UI4mmFmlw-G_9NI?supportsAllDrives=True", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 204, + "message": "No Content" + }, + "headers": { + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:48 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin, X-Origin" + ], + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "Content-Type": [ + "text/html" + ] + }, + "body": { + "string": "" + } + } + } + ] +} diff --git a/tests/cassettes/WorksheetTest.test_get_notes_2nd_sheet.json b/tests/cassettes/WorksheetTest.test_get_notes_2nd_sheet.json new file mode 100644 index 000000000..68de96980 --- /dev/null +++ b/tests/cassettes/WorksheetTest.test_get_notes_2nd_sheet.json @@ -0,0 +1,1511 @@ +{ + "version": 1, + "interactions": [ + { + "request": { + "method": "POST", + "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", + "body": "{\"name\": \"Test WorksheetTest test_get_notes_2nd_sheet\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "110" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Vary": [ + "Origin, X-Origin" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 07 Oct 2024 19:27:44 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-XSS-Protection": [ + "0" + ], + "Server": [ + "ESF" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "content-length": [ + "197" + ] + }, + "body": { + "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1EAqgeQrhtltuzA3qYPTQiiz23g2re7Jr4rnVOCUDybA\",\n \"name\": \"Test WorksheetTest test_get_notes_2nd_sheet\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1EAqgeQrhtltuzA3qYPTQiiz23g2re7Jr4rnVOCUDybA?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 07 Oct 2024 19:27:45 GMT" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Cache-Control": [ + "private" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-XSS-Protection": [ + "0" + ], + "Server": [ + "ESF" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "content-length": [ + "3341" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1EAqgeQrhtltuzA3qYPTQiiz23g2re7Jr4rnVOCUDybA\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes_2nd_sheet\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1EAqgeQrhtltuzA3qYPTQiiz23g2re7Jr4rnVOCUDybA/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1EAqgeQrhtltuzA3qYPTQiiz23g2re7Jr4rnVOCUDybA?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 07 Oct 2024 19:27:46 GMT" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Cache-Control": [ + "private" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-XSS-Protection": [ + "0" + ], + "Server": [ + "ESF" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "content-length": [ + "3341" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1EAqgeQrhtltuzA3qYPTQiiz23g2re7Jr4rnVOCUDybA\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes_2nd_sheet\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1EAqgeQrhtltuzA3qYPTQiiz23g2re7Jr4rnVOCUDybA/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1EAqgeQrhtltuzA3qYPTQiiz23g2re7Jr4rnVOCUDybA/values/%27Sheet1%27:clear", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 07 Oct 2024 19:27:47 GMT" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Cache-Control": [ + "private" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-XSS-Protection": [ + "0" + ], + "Server": [ + "ESF" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "content-length": [ + "107" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1EAqgeQrhtltuzA3qYPTQiiz23g2re7Jr4rnVOCUDybA\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1EAqgeQrhtltuzA3qYPTQiiz23g2re7Jr4rnVOCUDybA:batchUpdate", + "body": "{\"requests\": [{\"addSheet\": {\"properties\": {\"title\": \"worksheet 2\", \"sheetType\": \"GRID\", \"gridProperties\": {\"rowCount\": 3, \"columnCount\": 3}}}}]}", + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "144" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 07 Oct 2024 19:27:48 GMT" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Cache-Control": [ + "private" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-XSS-Protection": [ + "0" + ], + "Server": [ + "ESF" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "content-length": [ + "381" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1EAqgeQrhtltuzA3qYPTQiiz23g2re7Jr4rnVOCUDybA\",\n \"replies\": [\n {\n \"addSheet\": {\n \"properties\": {\n \"sheetId\": 367780790,\n \"title\": \"worksheet 2\",\n \"index\": 1,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 3,\n \"columnCount\": 3\n }\n }\n }\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1EAqgeQrhtltuzA3qYPTQiiz23g2re7Jr4rnVOCUDybA?fields=sheets.data.rowData.values.note&ranges=%27worksheet+2%27", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 07 Oct 2024 19:27:48 GMT" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Cache-Control": [ + "private" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-XSS-Protection": [ + "0" + ], + "Server": [ + "ESF" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "content-length": [ + "69" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1EAqgeQrhtltuzA3qYPTQiiz23g2re7Jr4rnVOCUDybA:batchUpdate", + "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 367780790}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"the first time\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 2, \"endRowIndex\": 3, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 367780790}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"two sheets\"}]}]}}]}", + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "418" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 07 Oct 2024 19:27:49 GMT" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Cache-Control": [ + "private" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-XSS-Protection": [ + "0" + ], + "Server": [ + "ESF" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "content-length": [ + "105" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1EAqgeQrhtltuzA3qYPTQiiz23g2re7Jr4rnVOCUDybA\",\n \"replies\": [\n {},\n {}\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1EAqgeQrhtltuzA3qYPTQiiz23g2re7Jr4rnVOCUDybA?fields=sheets.data.rowData.values.note&ranges=%27worksheet+2%27", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 07 Oct 2024 19:27:50 GMT" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Cache-Control": [ + "private" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-XSS-Protection": [ + "0" + ], + "Server": [ + "ESF" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "content-length": [ + "444" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"the first time\"\n }\n ]\n },\n {},\n {\n \"values\": [\n {},\n {\n \"note\": \"two sheets\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1EAqgeQrhtltuzA3qYPTQiiz23g2re7Jr4rnVOCUDybA?fields=sheets.data.rowData.values.note&ranges=%27worksheet+2%27%21A2%3AC3", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 07 Oct 2024 19:27:50 GMT" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "Cache-Control": [ + "private" + ], + "Transfer-Encoding": [ + "chunked" + ], + "X-XSS-Protection": [ + "0" + ], + "Server": [ + "ESF" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "content-length": [ + "294" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {},\n {\n \"values\": [\n {},\n {\n \"note\": \"two sheets\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "DELETE", + "uri": "https://www.googleapis.com/drive/v3/files/1EAqgeQrhtltuzA3qYPTQiiz23g2re7Jr4rnVOCUDybA?supportsAllDrives=True", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 204, + "message": "No Content" + }, + "headers": { + "Vary": [ + "Origin, X-Origin" + ], + "Content-Length": [ + "0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Mon, 07 Oct 2024 19:27:51 GMT" + ], + "Pragma": [ + "no-cache" + ], + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "Content-Type": [ + "text/html" + ], + "X-XSS-Protection": [ + "0" + ], + "Server": [ + "ESF" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ] + }, + "body": { + "string": "" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://www.googleapis.com/drive/v3/files?supportsAllDrives=True", + "body": "{\"name\": \"Test WorksheetTest test_get_notes_2nd_sheet\", \"mimeType\": \"application/vnd.google-apps.spreadsheet\"}", + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "110" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:50 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin, X-Origin" + ], + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "197" + ] + }, + "body": { + "string": "{\n \"kind\": \"drive#file\",\n \"id\": \"1ZMPsJJzU7mYbZlWDkedfckOibDOJpLP3W_v_YterZew\",\n \"name\": \"Test WorksheetTest test_get_notes_2nd_sheet\",\n \"mimeType\": \"application/vnd.google-apps.spreadsheet\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1ZMPsJJzU7mYbZlWDkedfckOibDOJpLP3W_v_YterZew?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "private" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:54 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "3341" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1ZMPsJJzU7mYbZlWDkedfckOibDOJpLP3W_v_YterZew\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes_2nd_sheet\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1ZMPsJJzU7mYbZlWDkedfckOibDOJpLP3W_v_YterZew/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1ZMPsJJzU7mYbZlWDkedfckOibDOJpLP3W_v_YterZew?includeGridData=false", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "private" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:55 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "3341" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1ZMPsJJzU7mYbZlWDkedfckOibDOJpLP3W_v_YterZew\",\n \"properties\": {\n \"title\": \"Test WorksheetTest test_get_notes_2nd_sheet\",\n \"locale\": \"en_US\",\n \"autoRecalc\": \"ON_CHANGE\",\n \"timeZone\": \"Etc/GMT\",\n \"defaultFormat\": {\n \"backgroundColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n },\n \"padding\": {\n \"top\": 2,\n \"right\": 3,\n \"bottom\": 2,\n \"left\": 3\n },\n \"verticalAlignment\": \"BOTTOM\",\n \"wrapStrategy\": \"OVERFLOW_CELL\",\n \"textFormat\": {\n \"foregroundColor\": {},\n \"fontFamily\": \"arial,sans,sans-serif\",\n \"fontSize\": 10,\n \"bold\": false,\n \"italic\": false,\n \"strikethrough\": false,\n \"underline\": false,\n \"foregroundColorStyle\": {\n \"rgbColor\": {}\n }\n },\n \"backgroundColorStyle\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n \"spreadsheetTheme\": {\n \"primaryFontFamily\": \"Arial\",\n \"themeColors\": [\n {\n \"colorType\": \"TEXT\",\n \"color\": {\n \"rgbColor\": {}\n }\n },\n {\n \"colorType\": \"BACKGROUND\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 1,\n \"blue\": 1\n }\n }\n },\n {\n \"colorType\": \"ACCENT1\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.25882354,\n \"green\": 0.52156866,\n \"blue\": 0.95686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT2\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.91764706,\n \"green\": 0.2627451,\n \"blue\": 0.20784314\n }\n }\n },\n {\n \"colorType\": \"ACCENT3\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.9843137,\n \"green\": 0.7372549,\n \"blue\": 0.015686275\n }\n }\n },\n {\n \"colorType\": \"ACCENT4\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.20392157,\n \"green\": 0.65882355,\n \"blue\": 0.3254902\n }\n }\n },\n {\n \"colorType\": \"ACCENT5\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 1,\n \"green\": 0.42745098,\n \"blue\": 0.003921569\n }\n }\n },\n {\n \"colorType\": \"ACCENT6\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.27450982,\n \"green\": 0.7411765,\n \"blue\": 0.7764706\n }\n }\n },\n {\n \"colorType\": \"LINK\",\n \"color\": {\n \"rgbColor\": {\n \"red\": 0.06666667,\n \"green\": 0.33333334,\n \"blue\": 0.8\n }\n }\n }\n ]\n }\n },\n \"sheets\": [\n {\n \"properties\": {\n \"sheetId\": 0,\n \"title\": \"Sheet1\",\n \"index\": 0,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 1000,\n \"columnCount\": 26\n }\n }\n }\n ],\n \"spreadsheetUrl\": \"https://docs.google.com/spreadsheets/d/1ZMPsJJzU7mYbZlWDkedfckOibDOJpLP3W_v_YterZew/edit\"\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1ZMPsJJzU7mYbZlWDkedfckOibDOJpLP3W_v_YterZew/values/%27Sheet1%27:clear", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "private" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:56 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "107" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1ZMPsJJzU7mYbZlWDkedfckOibDOJpLP3W_v_YterZew\",\n \"clearedRange\": \"Sheet1!A1:Z1000\"\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1ZMPsJJzU7mYbZlWDkedfckOibDOJpLP3W_v_YterZew:batchUpdate", + "body": "{\"requests\": [{\"addSheet\": {\"properties\": {\"title\": \"worksheet 2\", \"sheetType\": \"GRID\", \"gridProperties\": {\"rowCount\": 3, \"columnCount\": 3}}}}]}", + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "144" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "private" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:56 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "382" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1ZMPsJJzU7mYbZlWDkedfckOibDOJpLP3W_v_YterZew\",\n \"replies\": [\n {\n \"addSheet\": {\n \"properties\": {\n \"sheetId\": 1690535305,\n \"title\": \"worksheet 2\",\n \"index\": 1,\n \"sheetType\": \"GRID\",\n \"gridProperties\": {\n \"rowCount\": 3,\n \"columnCount\": 3\n }\n }\n }\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1ZMPsJJzU7mYbZlWDkedfckOibDOJpLP3W_v_YterZew?fields=sheets.data.rowData.values.note&ranges=%27worksheet+2%27", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "private" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:57 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "69" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {}\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "POST", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1ZMPsJJzU7mYbZlWDkedfckOibDOJpLP3W_v_YterZew:batchUpdate", + "body": "{\"requests\": [{\"updateCells\": {\"range\": {\"startRowIndex\": 0, \"endRowIndex\": 1, \"startColumnIndex\": 0, \"endColumnIndex\": 1, \"sheetId\": 1690535305}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"the first time\"}]}]}}, {\"updateCells\": {\"range\": {\"startRowIndex\": 2, \"endRowIndex\": 3, \"startColumnIndex\": 1, \"endColumnIndex\": 2, \"sheetId\": 1690535305}, \"fields\": \"note\", \"rows\": [{\"values\": [{\"note\": \"two sheets\"}]}]}}]}", + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "420" + ], + "Content-Type": [ + "application/json" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "private" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:58 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "105" + ] + }, + "body": { + "string": "{\n \"spreadsheetId\": \"1ZMPsJJzU7mYbZlWDkedfckOibDOJpLP3W_v_YterZew\",\n \"replies\": [\n {},\n {}\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1ZMPsJJzU7mYbZlWDkedfckOibDOJpLP3W_v_YterZew?fields=sheets.data.rowData.values.note&ranges=%27worksheet+2%27", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "private" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:59 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "444" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {\n \"values\": [\n {\n \"note\": \"the first time\"\n }\n ]\n },\n {},\n {\n \"values\": [\n {},\n {\n \"note\": \"two sheets\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "GET", + "uri": "https://sheets.googleapis.com/v4/spreadsheets/1ZMPsJJzU7mYbZlWDkedfckOibDOJpLP3W_v_YterZew?fields=sheets.data.rowData.values.note&ranges=%27worksheet+2%27%21A2%3AC3", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 200, + "message": "OK" + }, + "headers": { + "Cache-Control": [ + "private" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Transfer-Encoding": [ + "chunked" + ], + "x-l2-request-path": [ + "l2-managed-6" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:28:59 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin", + "X-Origin", + "Referer" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Type": [ + "application/json; charset=UTF-8" + ], + "content-length": [ + "294" + ] + }, + "body": { + "string": "{\n \"sheets\": [\n {\n \"data\": [\n {\n \"rowData\": [\n {},\n {\n \"values\": [\n {},\n {\n \"note\": \"two sheets\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n" + } + } + }, + { + "request": { + "method": "DELETE", + "uri": "https://www.googleapis.com/drive/v3/files/1ZMPsJJzU7mYbZlWDkedfckOibDOJpLP3W_v_YterZew?supportsAllDrives=True", + "body": null, + "headers": { + "User-Agent": [ + "python-requests/2.32.3" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "Accept": [ + "*/*" + ], + "Connection": [ + "keep-alive" + ], + "Content-Length": [ + "0" + ], + "authorization": [ + "" + ] + } + }, + "response": { + "status": { + "code": 204, + "message": "No Content" + }, + "headers": { + "Cache-Control": [ + "no-cache, no-store, max-age=0, must-revalidate" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Content-Length": [ + "0" + ], + "Alt-Svc": [ + "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + ], + "X-XSS-Protection": [ + "0" + ], + "Pragma": [ + "no-cache" + ], + "Server": [ + "ESF" + ], + "Date": [ + "Mon, 07 Oct 2024 19:29:00 GMT" + ], + "X-Frame-Options": [ + "SAMEORIGIN" + ], + "Vary": [ + "Origin, X-Origin" + ], + "Expires": [ + "Mon, 01 Jan 1990 00:00:00 GMT" + ], + "Content-Type": [ + "text/html" + ] + }, + "body": { + "string": "" + } + } + } + ] +}