'getting spreadsheet from google sheets only if that is not deleted
I want to get particular spreadsheet from it's sheet id with get method of Google sheets api. i am using below method to get a speadsheet.
sheets_file = service.spreadsheets().get(spreadsheetId=sheets_id).execute()
Here sheet_id is the id of sheet which i want to get. However, this is even returning the sheet if it's moved to bin. I don't want that. i only want to get sheet with specified sheet_id if it's not deleted (or if it's not moved to bin). Can anyone please tell me how to do that.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|