Getting a 401 Unauthorized Error when trying to access reports from the Google Alert Center API

442 Views Asked by At

I just had a query regarding a 401 Unauthorized error I seem to have run into while developing a script to pull reports from the Google Alert Center API. I am using the quickstart with a service account and the applicable scope. I have also followed the guide and the credentials.json for the requisite service account seems to be correct as well.

This service account has already been granted Domain Wide Delegation and permission to access the SCOPES. I have also configured the service account to be trusted in the API controls dashboard. Here is the complete error message.

Just to be extra sure, I have also added permission for a user '[email protected]' to use the service account as a resource.

Specifications: Windows 10, Java 16, Eclipse IDE, Maven 3.6.3

Could anyone help me figure out what is wrong ?

0

There are 0 best solutions below