Skip to content

v7.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 20 Nov 17:40
· 71 commits to main since this release
9a0f0e1

Major Changes

  • 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",
      },
    });