UNPKG

meta-cloud-api

Version:
2 lines 870 B
import {a as a$1}from'./chunk-BZ5QDXNR.js';import {b}from'./chunk-VW3LGHTJ.js';var s=class extends b{endpoint="phone_numbers";constructor(e,t){super(e,t);}async getPhoneNumberById(e){let t=e?a$1({fields:e}):"";return this.sendJson("GET",`${this.config.WA_PHONE_NUMBER_ID}${t}`,this.config.REQUEST_TIMEOUT,null)}async getPhoneNumbers(){return this.sendJson("GET",`${this.config.WA_BUSINESS_ACCOUNT_ID}/${this.endpoint}`,this.config.REQUEST_TIMEOUT,null)}async requestVerificationCode(e){return this.sendJson("POST",`${this.config.WA_PHONE_NUMBER_ID}/request_code`,this.config.REQUEST_TIMEOUT,JSON.stringify(e))}async verifyCode(e){return this.sendJson("POST",`${this.config.WA_PHONE_NUMBER_ID}/verify_code`,this.config.REQUEST_TIMEOUT,JSON.stringify(e))}};var a=s;export{s as a,a as b};//# sourceMappingURL=chunk-GIQLIMOD.js.map //# sourceMappingURL=chunk-GIQLIMOD.js.map