Recover review list from Google My Business API

166 views Asked by At

I'm trying to recover list of review from google to displayed them on a customer's website. I discovered this API and i thought I could use it but I'm having some issue doing so.

Customer asked access to this API and then gave me oauth2 credentials.

Before calling this API from code I wanted to try it from Insomnia, I used OAuth2 method as specified in doc, there are my parameters :

Insomnia parameters

Without redirect url I have is error : error

But with I have a popup to login to google account, I don't understand why as I have provided client id and secret, shouldn't be enough for authentification ?

I don't know if I'm missing something or have configuration issue somewhere ?

1

There are 1 answers

0
vpgcloud On

Client id and secret relate to your general access to the GMB API and the GCP project.

The pop-up authentication is for GBP API data access scope - so you need to use a Google account that actually owns GBP locations that have the reviews you want to retrieve.