Client The main class for interacting with the MCSS API

const client = new Client("127.0.0.1", 8080, "API_KEY", true);

Constructors

  • Parameters

    • ip: string
    • port: null | string | number
    • apiKey: string
    • https: boolean = true

    Returns Client

Properties

apikeys: APIKeys
servers: Servers

The server class

users: Users

The users class

webhooks: Webhooks

The webhooks class

Methods

  • Get a server by id

    Parameters

    • filter: number = 0

      The filter to use

    • serverType: string

      The server type to use

    Returns Promise<AppResponse>

  • Sets the API key

    Parameters

    • apiKey: string

    Returns void

  • Sets the Http protocol

    Parameters

    • https: boolean

    Returns void

  • Sets the IP

    Parameters

    • ip: string

    Returns void

  • Sets the Port

    Parameters

    • port: string | number

    Returns void

  • Update the MCSS settings

    Parameters

    • deleteOldBackupsThreshold: number

      The number of backups to keep

    Returns Promise<AppResponse>