microsoft365
Microsoft 365 is a product family of productivity software, collaboration and cloud-based services owned by Microsoft.
Usage
ts import { microsoft365 } from 'netzo/apis/microsoft365.ts'
const api = microsoft365({
baseURL,
clientId: Deno.env.get('MICROSOFT365_CLIENT_ID'),
clientSecret: Deno.env.get('MICROSOFT365_CLIENT_SECRET'),
accessTokenUrl: Deno.env.get('MICROSOFT365_ACCESS_TOKEN_URL'),
scope: ${baseURL}/.default
});
Configuration
The microsoft365 factory function expects an object with the following, and returns an object with an API client api.
Param | Type | Default | Description |
---|---|---|---|
baseURL | string | Deno.env.get('MICROSOFT365_CLIENT_ID') | the base URL to use for authentication |
clientId | string | Deno.env.get('MICROSOFT365_CLIENT_ID') | the client id to use for authentication |
clientSecret | string | Deno.env.get('MICROSOFT365_CLIENT_SECRET') | the client secret to use for authentication |
accessTokenUrl | string | Deno.env.get('MICROSOFT365_ACCESS_TOKEN_URL') or "https://login.microsoftonline.com/common/oauth2/v2.0/token" | the access token url to use for authentication (could be tenant-specific) |
scope | string | ${baseURL}/.default | the scope to use for authentication |
Refer to the API documentation to get the required information.