UNPKG

meta-cloud-api

Version:
2 lines 951 B
import {a as a$1}from'./chunk-CRZ7EUYR.js';import {a}from'./chunk-RIL6QABY.js';var t=class extends a{constructor(s,e){super(s,e);}async getWabaAccount(s){let e=a$1(s)?.replace(/,/g,"%2C");return this.sendJson("GET",`${this.config.WA_BUSINESS_ACCOUNT_ID}${e}`,this.config.REQUEST_TIMEOUT,null)}async getAllWabaSubscriptions(){return this.sendJson("GET",`${this.config.WA_BUSINESS_ACCOUNT_ID}/subscribed_apps`,this.config.REQUEST_TIMEOUT,null)}async updateWabaSubscription({override_callback_uri:s,verify_token:e}){let a={override_callback_uri:s,verify_token:e};return this.sendJson("POST",`${this.config.WA_BUSINESS_ACCOUNT_ID}/subscribed_apps`,this.config.REQUEST_TIMEOUT,JSON.stringify(a))}async unsubscribeFromWaba(){return this.sendJson("DELETE",`${this.config.WA_BUSINESS_ACCOUNT_ID}/subscribed_apps`,this.config.REQUEST_TIMEOUT,null)}};var b=t;export{t as a,b};//# sourceMappingURL=chunk-L4ESAO2S.js.map //# sourceMappingURL=chunk-L4ESAO2S.js.map