OAuth-free, UI-free API client for the Bing Places for Business management
API. Part of the ArtisanPack UI Local SEO stack. Mirrors the shape of
artisanpack-ui/google-business-profile (typed client, DTOs,
TokenProvider contract, shared Http factory for Http::fake()).
Downstream hosts bind the local TokenProvider to whichever source of
Microsoft OAuth tokens they use — in Keystone CMS, that's the manager
exposed by artisanpack-ui/microsoft-oauth.
Restricted-access reality
Access to the Bing Places management API is granted by Microsoft through
its agency / partner program, not through self-service signup. Until
access is granted for a given Bing Places account, live API calls will
fail with 403 — a Trusted-Partner check on the API surface itself,
independent of whether the OAuth token is otherwise valid. This package
is designed to be developed and released against Http::fake() fixtures
so the code path is ready the day access lands.
The recommended first-party alternative for most listings is Bing Places' own "Sync from Google Business Profile" import. See the GBP-sync path guide for when to reach for it.
What's in this package
- A
TokenProvidercontract —ArtisanPackUI\BingPlaces\Contracts\TokenProvider, a one-method interface (accessToken(): string) that every client calls before each outgoing request. No OAuth lives here; the host binds whichever provider fits. See the token provider guide for stub, cached, and MicrosoftOAuth-backed binding patterns. - Typed API clients —
BusinessesClientandReviewsClientunderArtisanPackUI\BingPlaces\BusinessesandArtisanPackUI\BingPlaces\Reviews, each inheriting a sharedBaseClient(auth, retries, JSON encoding, error mapping) and decoding responses into typed DTOs under aDataTransferObjects/namespace. Both point athttps://bingplaces.microsoft.com/api/v2today; when Microsoft grants the partner program a different production host, changing thebaseUrl()method is a one-line update. See the API surface map for methods and DTOs. - First-class
Http::fake()support — the client resolves the same factory theHttpfacade resolves, so tests can stub responses without any bespoke test doubles. Fixtures ship alongside the client so the package can be developed and exercised end-to-end while management-API access is still pending. - A
bing-placescontainer binding and facade — auto-registered via Laravel's package discovery. Feature methods (client factories, scope helpers) are added as the integration is fleshed out.
Documentation
- Getting started — install the package, bind a
TokenProvider, and understand the restricted-access implication before your first call. - Guide — worked notes on the token contract, the
restricted-access reality, the GBP-sync path, and testing with
Http::fake(). - Reference — API surface map.

