Hierarchy

Constructors

Methods

  • Parameters

    • tagocoreID: string

    Returns Promise<string>

    Description

    Permanently removes a TagoCore instance and its configurations.

    See

    https://help.tago.io/portal/en/kb/articles/tagocore TagoCore

    Example

    const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
    const result = await resources.tagocores.delete("core-id-123");
    console.log(result);
  • Parameters

    Returns Promise<string>

    Description

    Updates configuration and settings for a TagoCore instance.

    See

    https://help.tago.io/portal/en/kb/articles/tagocore TagoCore

    Example

    const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
    const result = await resources.tagocores.edit("core-id-123", { name: "Production Core" });
    console.log(result);
  • Parameters

    • tagoCoreID: string
    • deviceID: string

    Returns Promise<DeviceInfo>

    Description

    Retrieves detailed information about a device connected to a Standalone TagoCore instance.

    See

    https://help.tago.io/portal/en/kb/articles/tagocore TagoCore

    Example

    const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
    const deviceInfo = await resources.tagocores.standaloneDeviceInfo("core-id-123", "device-id-456");
    console.log(deviceInfo);
  • Type Parameters

    Parameters

    • tagoCoreID: string
    • Optional queryObj: T

    Returns Promise<DeviceListItem<"id" | "name" | T["fields"][number]>[]>

    Description

    Retrieves a list of all devices connected to a Standalone TagoCore instance.

    See

    https://help.tago.io/portal/en/kb/articles/tagocore TagoCore

    Example

    const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
    const devices = await resources.tagocores.standaloneDeviceList("core-id-123", {
    page: 1,
    fields: ["id", "name", "last_input"],
    amount: 20
    });
    console.log(devices);
  • Parameters

    • tagoCoreID: string

    Returns Promise<string>

    Description

    Generates a new authentication token for a TagoCore instance.

    See

    https://help.tago.io/portal/en/kb/articles/tagocore TagoCore

    Example

    const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
    const token = await resources.tagocores.tokenGenerate("core-id-123");
    console.log(token);