How do API Data Studio scopes works?

851 Views Asked by At

I am using Postman in order to test the Google Data Studio APIs. I get the following error for the call: https://datastudio.googleapis.com/v1/assets:search?assetTypes=Report

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

The rights are present: enter image description here

And no scope of Google Data Studio is present here to carry out other tests: https://developers.google.com/oauthplayground/

2

There are 2 best solutions below

0
On

You need https://www.googleapis.com/auth/datastudio scope to use the Data Studio API. You API client should also be authorized (see instructions).

0
On

The API is not supported by Google at all. You can't use Oauth dialog.