Newgarden-Solutions / google_my_business

Flutter package for Google My Business API
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

Scope of this package #37

Open aytunch opened 2 years ago

aytunch commented 2 years ago

Hi, Thanks for this package, I have a couple of questions:

Do we need to be a manager of the restaurant in order to fetch the restaurant general info (phone number, location, name, menu, etc), reviews and rating?

How can we get the ratings of the restaurant with the current API?

OlegNovosad commented 2 years ago

Hello @aytunch . Thanks for your interest in the package. The API provides a way to select an account to view all localities in it. The account itself has to be a manager or delegated manager of the locality (restaurant in your case).

Regarding ratings / reviews - yes the API does support reviews retrieval. You can find the source code of it here: https://github.com/Newgarden-Solutions/google_my_business/blob/master/lib/src/managers/reviews_manager.dart . It would be helpful if someone can add documentation of the usage for those here: https://github.com/Newgarden-Solutions/google_my_business/blob/master/README.md