Skip to main content
class SwitchBotAPI
import { SwitchBotAPI } from "https://deno.land/x/switchbotapi@0.1/SwitchBotAPI.ts";

Constructors

new
SwitchBotAPI(apiKey: string)

Properties

private
apiKey: string

Methods

getDevices(): Promise<SwitchBotDevice[]>
getDeviceStatus(deviceId: string): Promise<SwitchBotDeviceStatus>
sendDeviceCommand(deviceId: string, command: SwitchBotDeviceCommand): Promise<void>