0

我在谷歌控制台中创建了应用程序。使用具有所需范围的 OAuth2.0 连接此应用程序:

范围=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffitness.activity.read%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Ffitness.activity.write%20https://www.googleapis。 com/auth/fitness.location.read%20https://www.googleapis.com/auth/fitness.location.write%20https://www.googleapis.com/auth/fitness.heart_rate.write%20https:// www.googleapis.com/auth/fitness.heart_rate.read

使用我创建的 REST APIdataSources并使用此端点

补丁 https://fitness.googleapis.com/fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}

dataPoints使用位置数据成功创建。

我在手机中查看了我的 Google Fit 应用程序,除了位置数据外,所有内容都显示出来了。我通过连接的应用程序创建的 Google Fit 应用程序中的地图上没有位置点。

似乎禁止查看其他应用创建的位置数据,但是否可以共享此类数据,以便我可以在我的 Google Fit 帐户中查看?

4

0 回答 0