@great-detail/whatsapp
Advanced tools
Changelog
7.0.9
Changelog
7.0.8
Changelog
7.0.4
Changelog
7.0.3
Changelog
7.0.1
Changelog
7.0.0
685b4de: Refactor & Rewrite SDK.
Before:
import CloudAPI from "@great-detail/whatsapp";
const sdk = new CloudAPI();
const message = sdk
.message({ phoneNumberID: "123...809" })
.text({ body: "Hello" }, { toNumber: "1234567890" });
const sendReceipt = await message.send();
After:
import Client from "@great-detail/whatsapp";
const sdk = new Client();
const message = await sdk.message.createMessage({
phoneNumberID: "123...809",
to: "1234567890",
type: "text",
text: {
body: "Hello",
},
});