【发布时间】:2018-01-11 14:32:12
【问题描述】:
我试过这个教程https://developers.google.com/fit/rest/v1/get-started。
当我对 Gmail API 重复相同的过程时,它可以工作,但是当我尝试 fit API 时,我总是得到 500 backendError。
我尝试拨打https://www.googleapis.com/fitness/v1/users/me/dataSources。但我总是得到:
{ “错误”: { “代码”:500, "message": "后端错误", “错误”:[ { “域”:“全球”, "message": "后端错误", “原因”:“后端错误” } ] } }我想看看我在 Google Fit 中有哪些数据,因为结果与其他应用不一致。
【问题讨论】:
-
你读过
Note that the access token will expire after 60 minutes (3600 seconds).的注释了吗?你到底是怎么调用这个网址的? -
通过开发者控制台developers.google.com/oauthplayground。我认为有些东西坏了,因为我的 Google FIT 不再与网络同步。
-
访问令牌当时 100% 有效。我在 Gmail 和 Fit 之间来回切换,Gmail 总是正常回复,Fit 总是回复 500。
-
你能在你的谷歌账户上试试这个教程吗?
标签: google-fit