我可以使用 Google Fit API 通过 CLI 推送我自己的数据吗?

Can I use the Google Fit API to push my own data via a CLI?

我想将应用程序 (Oscar) 连接到 Google Fit 以记录我的 CPAP 结果。

Oscar 是一个应用程序,而不是移动或网络应用程序,因此我必须手动推送数据。这似乎不是一件困难的工作,但我想知道是否允许这样做。我看不到任何禁止桌面应用程序或 CLI 与 Google Fit 交互的内容,但我也看不到任何允许它进行交互的内容。该文档仅讨论网站和应用程序。

一般来说,命令行应用程序没有理由无法写入适合的数据:它最终只是数据。

但是,您尝试写入有关医疗设备的数据这一事实意味着您无法使用 Fit。来自 terms of use:

Google does not intend Google Fit to be a medical device. You may not use Google Fit in connection with any product or service that may qualify as a medical device pursuant to Section 201(h) of the Federal Food Drug & Cosmetic (FD&C) Act.