问题描述
我使用 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"
}
}
此处没有 Google Data Studio 的范围来执行其他测试: https://developers.google.com/oauthplayground/
解决方法
您需要 https://www.googleapis.com/auth/datastudio
范围才能使用数据洞察 API。您的 API 客户端也应获得授权(请参阅 instructions)。