UNPKG

homebridge-fenix-tft-wifi

Version:

Homebridge plugin which adds a Fenix TFT WiFi thermostat as HomeKit device.

24 lines 895 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const axios_1 = __importDefault(require("axios")); class FenixApi { constructor(tokenManager) { this.tokenManager = tokenManager; this.ApiUrl = 'https://vs2-fe-apim-prod.azure-api.net'; this.axiosClient = axios_1.default.create({ headers: { 'Content-type': 'application/json', }, }); } readMyInformation() { return this.axiosClient.get(this.ApiUrl + '/businessmodule/v1/installations/admins/' + this.tokenManager.sub, { headers: { Authorization: 'Bearer ' + this.tokenManager.accessToken }, }); } } exports.default = FenixApi; //# sourceMappingURL=FenixApi.js.map