UNPKG

outlook-events-client

Version:

TypeScript library to manage Outlook calendar events using the Microsoft Graph API.

16 lines 759 B
import { IClientCredential } from "../interfaces"; import { Client } from '@microsoft/microsoft-graph-client'; /** * Creates a Microsoft Graph client using the provided credentials. * @param {IClientCredential} credentials - The client credentials containing clientId, clientSecret, and tenantId. * @returns {Client} - An instance of the Microsoft Graph client. * @throws {Error} - Throws an error if the credentials are not provided or are invalid. * @example * const graphClient = createGraphClient({ * clientId: 'your-client-id', * clientSecret: 'your-client-secret', * tenantId: 'your-tenant-id' * }); */ export declare const createGraphClient: (credentials: IClientCredential) => Client; //# sourceMappingURL=create-graph-client.d.ts.map