谷歌分析报告API权限
我正在使用 google 分析报告 api 和 MERN 堆栈制作这个自定义仪表板,它允许用户创建帐户或登录,并根据他们选择的过滤器选择他们想要查看的任何分析。但我遇到了一个问题,用户必须手动将我的 API 电子邮件添加到他们的帐户访问管理列表中,以便我可以从他们的 google 分析帐户中获取数据。
我的问题是如何在无需用户许可的情况下使用报告 API?
我看过一个教程,其中用户使用他们的谷歌帐户登录,但我想实现我自己的用户身份验证。
I'm making this custom dashboard using google analytics reporting api and MERN stack which allow users to create an account or login and choose whatever analytics they want to see depending on the filters they pick. But I'm having a problem where users have to add my API email manually to their account access management list so I can fetch Data from their google analytics accounts.
My Question is how can I use the reporting API without users having to give me permission?
I've seen a tutorial where users login with their google accounts but I want to implement my own User authentication.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要了解的第一件事是公共用户数据和私人用户数据之间的差异。
公共数据是公开的数据。任何人都可以访问它。例如上传到 YouTube 的公共视频就是公共数据。
另一方面,私有数据是用户拥有的数据。为了访问私人用户数据,您需要获得该数据的所有者或有权访问该数据的人的同意。
答案是你不能。未经用户同意,您无法访问该用户的私人谷歌分析数据。用户需要授权您的应用程序并同意您的应用程序访问他们的数据。
您可以拥有自己的登录服务器并授权用户。但除此之外,您仍然必须请求他们同意访问他们的私人谷歌分析数据。
The first thing you need to understand is the diffrence bettween public and private user data.
Public data is data that is well public. Anyone can access it. Public videos upload to youtube for example is public data.
Private data on the other hand is data that is owned by user. In order to access private user data you need the consent of the owner of that data or someone that has access to it.
The answer is that you cant. You can not access a users private google analytics data without the consent of that user. The user will need to authorize your application and consent to your application accessing their data.
You can do that you can have your own login server and authorize users. But you are still going to have to request their consent to access their private Google analytics data on top of that.