UNPKG

nylas

Version:

A NodeJS wrapper for the Nylas REST API for email, contacts, and calendar.

28 lines (27 loc) 716 B
import { Resource } from './resource.js'; import { makePathParams } from '../utils.js'; export class Sessions extends Resource { /** * Create a Session * @return The created session */ create({ requestBody, overrides, }) { return super._create({ path: makePathParams('/v3/scheduling/sessions', {}), requestBody, overrides, }); } /** * Delete a Session * @return The deleted Session */ destroy({ sessionId, overrides, }) { return super._destroy({ path: makePathParams('/v3/scheduling/sessions/{sessionId}', { sessionId, }), overrides, }); } }