UNPKG

@bridgerakol/samsung-smart-api

Version:

Node Module For Connecting Samsung Smartthings API

24 lines (16 loc) 610 B
import Devices from './devices'; import Locations from './locations' import Rooms from './rooms' let BaseUrl = "https://api.smartthings.com/v1" export class SmartThings { protected BearerToken: string; public devices: Devices; public locations: Locations; public rooms: Rooms; constructor(BearerToken: string) { this.BearerToken = `Bearer ${BearerToken}`; this.devices = new Devices(this.BearerToken, BaseUrl); this.locations = new Locations(this.BearerToken, BaseUrl); this.rooms = new Rooms(this.BearerToken, BaseUrl) } }