【问题标题】:oAuth 2.0 PlaygroundoAuth 2.0 游乐场
【发布时间】:2015-12-20 11:35:47
【问题描述】:

我正在尝试使用 https://developers.google.com/oauthplayground/ 获取步数

我有令牌的 Exchange 授权码和 API 请求 获取

https://www.googleapis.com/fitness/v1/users/me/dataSources/derived:com.google.step_count.delta:com.google.android.gms:estimated_steps

在我的移动 googleFit APP 中显示它已连接到我的项目。

我得到的 Json 响应:

Content-type: application/json; charset=UTF-8
{
  "dataType": {
    "field": [
      {
        "name": "steps", 
        "format": "integer"
      }
    ], 
    "name": "com.google.step_count.delta"
  }, 
  "application": {
    "packageName": "com.google.android.gms"
  }, 
  "dataStreamId": "derived:com.google.step_count.delta:com.google.android.gms:estimated_steps", 
  "type": "derived", 
  "dataStreamName": "estimated_steps"
}

但我没有得到步数计数值。

【问题讨论】:

    标签: json google-fit oauth2-playground


    【解决方案1】:

    这里是您可以检查以将 google fit 集成到您的应用的链接

    1) How to get step count from Google Fit REST API like Google Fit app?

    2) https://plus.google.com/+DavidSchmidt/posts/TJjRTefojC6

    【讨论】:

      猜你喜欢
      • 2021-04-06
      • 2017-12-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-14
      • 2013-04-29
      • 2020-01-05
      • 2021-01-02
      相关资源
      最近更新 更多