OAuth-free, UI-free API client for the Google Business Profile family of
APIs. Sits alongside artisanpack-ui/google (which supplies the OAuth
manager) as a shared HTTP layer that other ArtisanPack UI packages and
downstream host applications can consume.
What's in this package
- A
TokenProvidercontract — a one-method interface the client uses to obtain a fresh access token on every request. No OAuth lives here; the host binds whatever provider fits. - Four API families, six resource clients — Account Management,
Business Information, Performance, and the Legacy v4 host (which
serves
ReviewsClient,LocalPostsClient, andMediaClient) — all built on a sharedBaseClientthat handles auth, retries, and error mapping. - First-class
Http::fake()support — every client resolves the same factory theHttpfacade resolves, so tests can stub responses without any bespoke test doubles. - A single
Scopesconstant for the one OAuth scope the entire Business Profile surface requires, so the OAuth manager and the API client agree on what to request.
Documentation
- Getting started — install the package, bind a
TokenProvider, and make your first call. - Guide — worked examples for the token contract, testing
with
Http::fake(), and the GBP API access-approval prerequisite. - Reference — the four API families this package wraps, base URLs, and the methods exposed by each client.

