oAuth 2.0游乐场

时间:2015-09-23 08:36:39

标签: json google-fit oauth2-playground

我正在尝试使用https://developers.google.com/oauthplayground/

来计算步数

我有令牌的Exchange授权代码和API请求 GET

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"
}

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

1 个答案:

答案 0 :(得分:1)