Invalid value at 'requests[0].delete_dimension.range.sheet_id' (TYPE_INT32)

前端 未结 1 1326
盖世英雄少女心
盖世英雄少女心 2021-01-21 06:21

I am using Google spreadsheets API v4. I want to delete some rows via python script. i tried their example code and i got the following error

Invalid valu

1条回答
  •  孤城傲影
    2021-01-21 06:40

    In your script, sheetId is used for "sheetId": sheetId, and spreadsheetId=sheetId.

    1. sheetId at "sheetId": sheetId, is gid of URL. Please check here. https://developers.google.com/sheets/api/guides/concepts#sheet_id

    2. sheetId at spreadsheetId=sheetId is Spreadsheet ID. Please check here. https://developers.google.com/sheets/api/guides/concepts#spreadsheet_id

    Each sheetId is different. So please modify them.

    0 讨论(0)
提交回复
热议问题