@fabricorg/integrations-gmail
v0.1.20
Published
Gmail integration plugin for Fabric — type augmentation + runtime
Downloads
1,268
Readme
@fabricorg/integrations-gmail
Adds typed Gmail operations for messages and labels to fabric.integrations.gmail.
The package exports GmailIntegrationClient and the runtime plugin gmailPlugin.
npm install @fabricorg/sdk @fabricorg/integrations-gmailWith Gmail connected in Fabric, pass a Fabric API key to the SDK or set
FABRIC_API_KEY. Import this package to enable the SDK's vendor types.
import { createFabric } from "@fabricorg/sdk";
import "@fabricorg/integrations-gmail";
const fabric = createFabric({ org: "example-org" });
const result = await fabric.integrations.gmail.messages.list({ maxResults: 10 });When hosting gmailPlugin with the integration runtime, supply a Google OAuth access token
through the tenant's credential store. The plugin looks up access_token, token in that order.
MIT. See third-party notices for Apache-2.0 attribution.
