简体   繁体   English

如何使用 google 的电子表格 API 来检索创建电子表格的日期和时间?

[英]How can I use google's spreadsheet API to retrieve the date and time a spread sheet is created?

How can I retrieve the time a spreadsheet was created?如何检索电子表格的创建时间? Using the Google Api Client.使用 Google Api 客户端。 The spreadsheet properties of service.spreadsheets().get(spreadsheetId=sheet_id).execute() does not seem to contain it. service.spreadsheets().get(spreadsheetId=sheet_id).execute()的电子表格属性似乎不包含它。

Google sheets api cannot retrieve metadata information about a file. Google 表格 API 无法检索有关文件的元数据信息。 Use Files:get of Google drive api instead:使用Files:get of Google drive api 代替:

service().files().get(fileId="sheet_id",fields="createdTime").execute()

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否可以通过 api 删除创建的电子表格,我的意思是如果我们可以创建电子表格,应该有一个删除它的选项 - Is it possible to delete created spread sheet via api, i mean if we can create an spread sheet there should be an option to delete it 如何在google sheet api中使用范围? - How to use range in google sheet api? 有什么方法可以使用python通过api删除完整的电子表格 - Is there any way i can delete complete spread sheet via api using python 如何通过Python使用SHEET API v4删除Google电子表格中的行? - How to delete rows in google spreadsheet using SHEET API v4 by Python? 如何根据示例数据框created_time列的日期和时间条件获取记录 - How can I get the records based on condition on date and time of created_time column of sample dataframe 使用API​​使用Python3创建的Google电子表格无法打开(权限) - Created google spreadsheet with Python3 using the API does not open (permissions) 如何格式化不是日期时间格式的日期时间字符串,以便可以将它与 pd.to_datetime() 一起使用? - How can I format date time string which is not date time format so that I can use it with pd.to_datetime()? 如何使用熊猫传播带有日期对的时间值 - How to spread Time value with Date pair using Pandas 如何减少在 flask 中创建的 API 的响应时间。 创建 API 的任何其他方式也可以 - How can i reduce the response time for an API created in flask. any other way to create an API is also fine 如何从S3预签名网址获取到期日期和时间 - How can i get get expiry date and time from S3 pre-signed url
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM