API Data Studio 范围如何工作?

问题描述

我使用 Postman 来测试 Google Data Studio API。 我收到以下调用错误https://datastudio.googleapis.com/v1/assets:search?assetTypes=Report

{
   "error":{
      "code":403,"message":"Request had insufficient authentication scopes.","status":"PERMISSION_DENIED"
   }
}

存在的权利:

enter image description here

此处没有 Google Data Studio 的范围来执行其他测试: https://developers.google.com/oauthplayground/

解决方法

您需要 https://www.googleapis.com/auth/datastudio 范围才能使用数据洞察 API。您的 API 客户端也应获得授权(请参阅 instructions)。

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...