I want to fetch the particular user's google page review and rating when he login to my app, I read the documentation of Google Bussiness API https://developers.google.com/my-business/content/prereqs and https://developers.google.com/my-business/content/review-data I have submitted my project for whitelisted, my main concern is that can i get the particular user's google page review and rating when he login to my app and how can I do this
1 Answers
first of all you need to white list your google my business api for whatever project you are working on in your project as its private api. Google my business api will work on the locations associated with your account so make sure you verified the LOCATIONS from any account you know. Follow steps mentioned in below documentation URL to set it up: https://developers.google.com/my-business/content/prereqs After the setup and etc you will automatically understand the account id and location id.
i am providing the api that will help you to get the fetch the review
1.get account details: https://mybusiness.googleapis.com/v4/accounts?access_token={access_token}
2.you will get the accoutID from step 1 ,and then get location Id https://mybusiness.googleapis.com/v4/accounts/{accountID}/locations?access_token={access_token}
3.you will get the accoutID,location_id from step 1 and step2 then finally you will get the review https://mybusiness.googleapis.com/v4/accounts/{accountID}/locations/{location_id}/reviews?access_token={access_token}