TagoIO SDK for JavaScript and TypeScript
    Preparing search index...

    Class TagoCores

    Index

    Constructors

    Methods

    • Permanently removes a TagoCore instance and its configurations.

      Parameters

      • tagocoreID: string

      Returns Promise<string>

      const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
      const result = await resources.tagocores.delete("core-id-123");
      console.log(result);
    • Retrieves detailed information about a device connected to a Standalone TagoCore instance.

      Parameters

      • tagoCoreID: string
      • deviceID: string

      Returns Promise<DeviceInfo>

      const resources = new Resources({ token: "YOUR-PROFILE-TOKEN" });
      const deviceInfo = await resources.tagocores.standaloneDeviceInfo("core-id-123", "device-id-456");
      console.log(deviceInfo);
    • Retrieves a list of all devices connected to a Standalone TagoCore instance.

      Type Parameters

      Parameters

      • tagoCoreID: string
      • OptionalqueryObj: T

      Returns Promise<
          DeviceListItem<
              | "id"
              | "name"
              | (
                  T["fields"] extends readonly (string | number | symbol)[]
                      ? any[any][number]
                      : never
              ),
          >[],
      >

      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);
    • Generates a new authentication token for a TagoCore instance.

      Parameters

      • tagoCoreID: string

      Returns Promise<string>

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