【发布时间】:2018-08-23 02:29:08
【问题描述】:
我想以编程方式编辑 Google 云端硬盘上的共享电子表格。 我正在使用 C#
当用户单击按钮时,我的代码应使用公司开发帐户 + 密码来访问 google drive 上的电子表格并更新日期字段。这就是它需要做的所有事情。
在我看来,oAuth 要求用户自己通过 google 进行身份验证,或者至少这是我从 Google.Apis.Auth.OAuth2AuthorizeAsync() 得到的印象
//
// Summary:
// Asynchronously authorizes the specified user. Requires user interaction; see
// Google.Apis.Auth.OAuth2.GoogleWebAuthorizationBroker remarks for more details.
//
这不是我需要或想要的,但围绕它的文档似乎完全不透明......也许我在这里遗漏了一些东西? 有人知道另一种方法吗?
【问题讨论】:
-
我已经编辑了您的问题并修复了标签,因为编辑文件是使用工作表 api 而不是驱动器 api 完成的。
标签: c# google-api google-oauth google-sheets-api google-api-dotnet-client