【问题标题】:Google Fit Rest API - cant see any useful dataGoogle Fit Rest API - 看不到任何有用的数据
【发布时间】:2015-02-06 04:25:48
【问题描述】:

您好,我只是想知道如何从以下获取真实数据。我将它放入 Oauth 2.0 playgournd:

https://www.googleapis.com/fitness/v1/users/me/dataSources/derive_step_cadence

我得到了这个:

HTTP/1.1 200 正常 内容长度:202 X-xss-保护:1;模式=块 内容位置:https://www.googleapis.com/fitness/v1/users/me/dataSources/derive_step_cadence

没有任何有用的数据。

我做错了吗?

谢谢 拉斯

【问题讨论】:

  • 你找到解决这个案子的办法了吗?我现在也有同样的情况

标签: google-fit


【解决方案1】:

确保您在端点末尾提供的时间戳采用 nanotime 格式。

https://www.googleapis.com/fitness/v1/users/me/dataSources/derive_step_cadence<-raw:com.google.step_count.cumulative:LGE:Nexus 5:bc5f1b97:Step Counter/datasets/000000-1720845034000000000

这个解决方案就像一个魅力

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多