UNPKG

nextcloud-node-client

Version:

Nextcloud client API for node.js TypeScript applications

28 lines (27 loc) 656 B
import { IProxy } from "./httpClient"; export interface IBasicAuth { "username": string; "password": string; } /** * The options of a server constructor */ export interface IServerOptions { /** * the url of the nextcloud server like https://nextcloud.mydomain.com */ "url": string; /** * basic authentication informatin to access the nextcloud server */ "basicAuth": IBasicAuth; "proxy"?: IProxy; "logRequestResponse"?: boolean; } export default class Server { url: string; basicAuth: IBasicAuth; proxy?: IProxy; logRequestResponse: boolean; constructor(options: IServerOptions); }