I'm trying to use this API to get all Google business reviews
https://mybusiness.googleapis.com/v4/accounts/{accountId}/locations/{locationId}/reviews
But here I need accountId and locationId. I want to make use of api to get both these values.
I was able to find accountid using the API but can't figure out how to get locationId.
This was suggested by few posts but this is not working.
mybusiness.googleapis.com/v4/accounts{accountId}/locations
Could someone help me get locationId using api?
According to the official doc, you can retrieve the list of accounts by doing the following http request:
This should give you all the accounts related to your parent account.
Similarly, you can get all the locations from a given account (doc here) in this way:
The request you posted is deprecated (see here) as Google is moving from the v4.9 version to more granularly services (info here).