Reading other user's Google Fit data via REST API

邮差的信 提交于 2019-12-23 04:56:44

问题


We have a user who gave consent for our Cloud Project to read their Fit data through the Android app. We now want user's coach to access their Fit data through a web UI associated with our Cloud Project. Is this possible, and if so, what is the right way to do it?

Can cross-client identity be used? https://developers.google.com/identity/protocols/CrossClientAuth

I was trying to replace "me" with "user@gmail.com" in the REST endpoint but it doesn't work: https://www.googleapis.com/fitness/v1/users/me/... -> https://www.googleapis.com/fitness/v1/users/user@gmail.com/...

Thanks!


回答1:


There is a mechanism for Android apps to obtain offline access for web back-ends highlighted in the CrossClientAuth guide from your question. With offline access, you can theoretically serve or store that data in any way that the user has consented to. Any access controls of that data to another person is something that you'd have to handle on your own.



来源:https://stackoverflow.com/questions/35489763/reading-other-users-google-fit-data-via-rest-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!