UNPKG

@shinkashi/insight-sdk

Version:

Solution Insight SDK for JavaScript

15 lines (14 loc) 389 B
export class InsightACMPEnvService { constructor(cmp) { this.cmp = cmp; } ; async get() { //Get Env info from acmp api const response = await this.cmp.ax.get("/functions/acmp/env"); if (response.status !== 200) { throw new Error(`API Error ${response.status}: ${response.data}`); } return response.data; } }