meta-cloud-api
Version:
TypeScript wrapper for Meta's Cloud API
2 lines • 879 B
JavaScript
import {a as a$2}from'./chunk-MJEG3K4V.js';import {a as a$1}from'./chunk-RIL6QABY.js';var s=class extends a$1{endpoint="phone_numbers";constructor(e,t){super(e,t);}async getPhoneNumberById(e){let t=e?a$2({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-FSKBLPGE.js.map
//# sourceMappingURL=chunk-FSKBLPGE.js.map