使用Google Fit API开始...我可以访问来管理来自多个用户的数据吗?(Begining with Google Fit API… Could I access to manage data

系统教程 行业动态 更新时间:2024-06-14 16:53:13
使用Google Fit API开始...我可以访问来管理来自多个用户的数据吗?(Begining with Google Fit API… Could I access to manage data from several users?)

我试图在网站上搜索这个,但我还没有找到它。 我是google fit API的新手,我有一个问题:

我将开发一个网络平台来管理多个用户的活动级别,我想从Google Fit获取这些数据。 我可以做吗? (或者因为OAuth2协议和身份验证令牌,这是不可能的?)。 我在尝试理解OAuth2机制时遇到了问题,我不知道是否可以访问知道每个用户令牌的信息(或者随着时间的推移而改变?)。

同样,使用Fitbit API,你知道它是否可行或者它是否以相同的方式工作? (我知道你需要使用oAuth2协议,但是在GET的url中 - 例如 - 你可以包含特定用户的ID)。

总而言之,我不知道这些情况是否可行:

网络平台

web master ------ GET ----->用户1的活动日志/用户2的活动日志/ ...

我感谢任何有关这方面的信息。

I have tried to search this in the website, but I have not got found it. I am new with google fit API, and I have a question:

I am going to develop a web platform to manage activity levels of several users, and I want to get these data from Google Fit. Can I do it? (or because of OAuth2 protocol and authentication tokens it is not possible?). I have issues trying to understand OAuth2 mechanism and I do not know if I can access the information knowing the token of each user (or it changes over time ¿?).

Similarly, using Fitbit API, do you know if it is possible or it works in the same way? (I know you need to use oAuth2 protocol, but in url for GET - for example - you can include the ID of a specific user).

To sum up, I do not know if these scenarios are possible:

Web Platform

web master ------GET-----> activity log of user 1 / activity log of user 2 / ...

I appreciate any information about that.

最满意答案

是的,没有理由你不能这样做。 每个用户都必须通过OAuth2流程,然后您需要为每个用户记录令牌,并在将来访问数据时使用相应的令牌。 显然,您需要向用户明确说明您将如何使用数据,尤其是与共享数据相关的数据。 您需要检查特定的FIT条款和条件,以确保您不希望做任何明确排除的事情。 您需要注意,用户可以随时撤消您的访问权限,因此您需要能够处理此问题。

Yes there is no reason why you can not do this. Each user will have to go though the OAuth2 flow and you will then need to record the tokens for each user and just use the appropriate one in the future when accessing there data. Clearly you need to be clear with the user as to how your going to use the data, especially in relation to sharing it. You need to check the specific FIT terms and conditions to be sure your not looking to do anything that is explicitly excluded. You need to be aware that the user may revoke your access at any time so you need to be able to handle this.

更多推荐

本文发布于:2023-04-06 01:40:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/479ea70d927ef9d0c3b134f3b02a8fc4.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多个   数据   用户   API   Google

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!