Factory functions that create a Polar API client and expose services for interacting with the Polar backend.
// Source: https://github.com/polarsource/polar | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import { ClientBase, ClientOptions, resolveBaseUrl } from "../base";
import { createMetering, type MeteringOptions } from "../metering/client";
import { createBenefitGrantsService } from "./services/benefit_grants";
import { createBenefitsService } from "./services/benefits";
import { createCheckoutLinksService } from "./services/checkout_links";
import { createCheckoutsService } from "./services/checkouts";
import { createCustomFieldsService } from "./services/custom_fields";
import { createCustomerMetersService } from "./services/customer_meters";
import { createCustomerPortalService
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key