UNPKG

node-calendly

Version:
25 lines 940 B
"use strict"; /****************************************** * Author : Dr. Sebastian Herden * Created On : Tue Sep 20 2022 * File : index.ts *******************************************/ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const dotenv_1 = require("dotenv"); const Calendly_1 = __importDefault(require("./Calendly")); (0, dotenv_1.config)(); const CALENDLY_ACCESS_TOKEN = process.env.CALENDLY_ACCESS_TOKEN || ''; const calendly = new Calendly_1.default(CALENDLY_ACCESS_TOKEN); calendly.getMe().then((me) => { const uuid = Calendly_1.default.getUuidFromUri(me); if (uuid) { console.log('UUID:', uuid); calendly.users.getUser({ uuid }).then((user) => { console.log('user:', user); }); } }); //# sourceMappingURL=index.js.map