UNPKG

contensis-management-api

Version:

Client for managing content using the Contensis Management API

24 lines (16 loc) 585 B
import { Config } from '../models'; import { EntryOperationsForServer } from '../entries/entry-operations-for-server'; import { Client } from './client'; import fetch from 'node-fetch'; /** * A Node.js client that can be used to perform server side actions like updating files. */ export class NodejsClient extends Client { static create(config: Config = null): NodejsClient { return new NodejsClient(config); } constructor(config: Config = null) { super(config, fetch); this.entries = new EntryOperationsForServer(this.httpClient, this); } }