google_my_business library

Flutter package to work with Google My Business API. Simplifies communication & interaction with GMB API endpoints.

Classes

Account
An account is a container for your location. If you are the only user who manages locations for your business, you can use your personal Google Account. To share management of locations with multiple users, create a business account at https://support.google.com/business/answer/6085339?ref_topic=6085325.
AccountAdmins
Lists the admins for the specified account.
Accounts
Paginated list of accounts https://mybusinessaccountmanagement.googleapis.com/v1/accounts
AccountsManager
Responsible for retrieving and managing accounts for the given user.
Admin
An administrator of an Account or a location.
AdWordsLocationExtensions
Additional information that is surfaced in AdWords.
BusinessHours
Represents the time periods that this location is open for business. Holds a collection of TimePeriod instances.
Category
Represents the locations category describing what this business is (not what it does). For a list of valid category IDs, and the mappings to their human-readable names, see https://developers.google.com/my-business/reference/rest/v4/categories/list
Date
Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar.
Error
Represents general response error
GoogleMyBusiness
Main entry point. Use this class to get current user or sign in / out with Google Sign In.
Item
A single list item. Each variation of an item in the price list should have its own Item with its own price data.
Label
Label to be used when displaying the price list, section, or item.
LatLng
An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf(WGS84 standard). Values must be within normalized ranges.
Location
Represents the location of the business
LocationAdmins
Lists all of the admins for the specified location.
LocationKey
Alternate/surrogate key references for a location.
LocationsManager
Responsible for retrieving and managing locations for the given account (id).
LocationState
Contains a set of booleans that reflect the https://support.google.com/business/answer/3480862(state of a Location).
Metadata
Additional non-user-editable information about the location.
Money
Represents an amount of money with its currency type.
MoreHours
The time periods during which a location is open for certain types of business.
MoreHoursType
More hours types that a business can offers, in addition to its regular hours.
OpenInfo
Information related to the opening state of the business.
OrganizationInfo
Additional information stored for an organization.
PlaceInfo
Defines an area that's represented by a place ID.
Places
Defines the union of areas represented by a set of places.
PointRadius
A radius around a particular point (latitude/longitude).
PostalAddress
Represents the address of the location
PriceList
A list of item price information. Price lists are structured as one or more price lists, each containing one or more sections with one or more items. For example, food price lists may represent breakfast/lunch/dinner menus, with sections for burgers/steak/seafood.
Profile
All information pertaining to the location's profile.
RelationshipData
Information of all parent and children locations related to this one.
Review
Output only. Represents a review for a location.
Reviewer
Represents the author of the review.
ReviewReply
Represents the location owner/manager's reply to a review.
Reviews
Paginated list of reviews https://developers.google.com/my-business/reference/rest/v4/accounts.locations.reviews/list
ReviewsManager
Responsible for retrieving and managing reviews for the given location (name).
Section
A section of the price list containing one or more items.
ServiceAreaBusiness
Service area businesses provide their service at the customer's location (for example, a locksmith or plumber).
ServiceType
A message describing a service type that the business offers
SpecialHourPeriod
Represents a single time period when a location's operational hours differ from its normal business hours. A special hour period must represent a range of less than 24 hours. The openTime and startDate must predate the closeTime and endDate. The closeTime and endDate can extend to 11:59 a.m. on the day after the specified startDate.
SpecialHours
Represents a set of time periods when a location's operational hours differ from its normal business hours.
TimePeriod
Represents a span of time that the business is open, starting on the specified open day/time and closing on the specified close day/time. The closing time must occur after the opening time, for example later in the same day, or on a subsequent day.

Enums

AccountRole
Indicates the access level that the authenticated user has for this account. For more information, see the help center article at https://support.google.com/business/answer/3403100
AccountType
Indicates what kind of account this is: either a personal/user account or a business account.
AdminRole
Indicates the access level that an admin has. For more information, see https://support.google.com/business/answer/3403100
BusinessType
Indicates whether this business only offers services onsite at a customer location (for example, a tow truck), or at both an address and onsite (for example, a pizza store with a dining area, that also delivers to customers).
DayOfWeek
Represents a day of the week.
OpenForBusiness
Indicates the status of a location.
PermissionLevel
Indicates the access level that the authenticated user has for this account.
StarRating
The star rating out of five, where five is the highest rated.
VerificationState
Indicates the verification state of the account.
VettedState
Indicates the vetted state of an account.