UNPKG

umbraco-management-api-client

Version:

TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)

16 lines (15 loc) 520 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const SegmentApi_1 = require("../apis/SegmentApi"); const testConfig_1 = require("./testConfig"); (async () => { const config = await (0, testConfig_1.getConfig)(); const api = new SegmentApi_1.SegmentApi(config); try { const result = await api.getSegment({}); console.log('SegmentApi.getSegment result:', result); } catch (error) { console.error('SegmentApi.getSegment error:', error); } })();