简体   繁体   English

仅使用 API 以编程方式访问 Google Data Studio 报告?

[英]Access Google Data Studio report programmatically using just the API?

I'm wondering if it is somehow possible to display a private report if we don't have access to the account or company's Data Studio environment?我想知道如果我们无权访问帐户或公司的 Data Studio 环境,是否有可能以某种方式显示私人报告? Using the Google API would be ideal.使用谷歌 API 将是理想的选择。

The reason why we need an API is because the reports need to be displayed on a distributed.network of displays where user interaction is not possible.我们需要 API 的原因是因为报告需要显示在分布式显示网络上,用户交互是不可能的。 They are all separated from each other and run on their own browser instance.它们都彼此分离,并在自己的浏览器实例上运行。 Setting the reports public to embed them is not an option due to sensitive data being exposed to the inte.net.将报告设置为公开以嵌入它们不是一种选择,因为敏感数据会暴露给 inte.net。 Embedding is fine but we need some way of accessing the customers data without user interaction, ie via access tokens or something.嵌入很好,但我们需要某种方式来访问客户数据而无需用户交互,即通过访问令牌或其他方式。 If the user authenticates to our app beforehand and that allows us to then use their access token inside of the embed iframe would be fine too.如果用户事先对我们的应用程序进行身份验证,那么我们就可以在嵌入的 iframe 中使用他们的访问令牌也可以。

As far as I can tell I cannot display private reports through the official google-data-studio API. I did find another stackoverflow link that mentions something about community connectors.据我所知,我无法通过官方 google-data-studio API 显示私人报告。我确实找到了另一个提到社区连接器的 stackoverflow 链接 Would this still be a solution to our problem if we don't own the reports itself?如果我们不拥有报告本身,这仍然是我们问题的解决方案吗? We are just displaying the reports but do not have access to their Google Cloud environment nor their data sources.我们只是显示报告,但无权访问他们的 Google Cloud 环境或数据源。

Any help is appreciated.任何帮助表示赞赏。

This is not supported by Google Data Studio. Google Data Studio 不支持此功能。

In short, if you can't make your report public, and you can't authenticate to view it, you're out of luck.简而言之,如果您不能公开您的报告,并且您不能通过身份验证来查看它,那么您就不走运了。

The link you provided is much more a hack than a feature.您提供的链接与其说是功能,不如说是黑客 It suggests you to make your data public with a custom authentication mechanism developed in a Community Connector that requires a token as parameter.它建议您使用在需要令牌作为参数的社区连接器中开发的自定义身份验证机制公开您的数据。

This way, your report will be available to anyone, however, since your report requires the token to work (a kind of password), it won't show any data to unauthorized users (those who don't provide a valid token).这样,任何人都可以访问您的报告,但是,由于您的报告需要令牌才能工作(一种密码),因此它不会向未经授权的用户(未提供有效令牌的用户)显示任何数据。

Although it is possible, I think it requires so much effort to make it work, and, of course, it requires that you change the connector of your report.虽然这是可能的,但我认为它需要付出很多努力才能使其发挥作用,当然,它还需要您更改报表的连接器。 So 'yes', you need to own the report to connect to your data through the suggested Community Connector.所以“是”,您需要拥有报告才能通过建议的社区连接器连接到您的数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google Data Studio 报告性能 - Google Data Studio report performance Google Data Studio 报告:获取页面 ID - Google data studio report: get pages ids Google Data Studio 报告使用 Cloud SQL MySQL 只允许一个表 - Google Data Studio report using Cloud SQL MySQL allows only one table 我可以使用数据工作室 API 从报告中提取数据吗? - Can I use the data studio API to pull data from a report? Data Studio 报告未正确下载 - Data Studio Report not Downloading Properly 在 Google Data Studio(Looker Studio) 中的现有报告中添加 BigQuery 查询结果 - Adding BigQuery query result in an already existing report in Google Data Studio(Looker Studio) 使用 Google Apps 脚本在 Google Data Studio 上自动刷新 - Auto Refresh on Google Data Studio using Google Apps Script 如何在用户不需要 Google 帐户的情况下安全地嵌入私人 Google Data Studio 报告 - How to securely embed a private Google Data studio report without a user needing a Google account 如何为 google data studio 添加安全组以访问我的 amayon RDS? - How do I add security group for google data studio to access my amayon RDS? 如何仅使用访问令牌对 gcloud 进行身份验证? - How to authenticate with gcloud using just access token?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM