0.8.0 • Published 1 year ago

@sociably/whatsapp v0.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

WhatsApp Platform

Receive events and send messages on WhatsApp through Cloud API.

Install

npm install @sociably/core @sociably/http @sociably/whatsapp
# or with yarn
yarn add @sociably/core @sociably/http @sociably/whatsapp

Docs

Check the platform document and the package reference.

Setup

import Sociably from '@sociably/core';
import Http from '@sociably/http';
import WhatsApp from '@sociably/whatsapp';

const {
  WHATS_APP_ACCESS_TOKEN,
  WHATS_APP_ACCOUNT_ID,
  WHATS_APP_NUMBER_ID,
  WHATS_APP_PHONE_NUMBER,
  WHATS_APP_APP_SECRET,
  WHATS_APP_VERIFY_TOKEN,
} = process.env;

const app = Sociably.createApp({
  modules: [
    Http.initModule({ /* ... */ }),
  ],
  platforms: [
    WhatsApp.intiModule({
      entryPath: '/webhook/whatsapp',
      agentSettings: {
        accountId: WHATS_APP_ACCOUNT_ID,
        numberId: WHATS_APP_NUMBER_ID,
        phoneNumber: WHATS_APP_PHONE_NUMBER,
      },
      appSecret: WHATS_APP_APP_SECRET,
      accessToken: WHATS_APP_ACCESS_TOKEN,
      verifyToken: WHATS_APP_VERIFY_TOKEN,
    }),
  ],
});
0.9.0-alpha.45

1 year ago

0.9.0-alpha.10

2 years ago

0.9.0-alpha.40

2 years ago

0.9.0-alpha.42

2 years ago

0.9.0-alpha.37

2 years ago

0.9.0-alpha.38

2 years ago

0.9.0-alpha.33

2 years ago

0.9.0-alpha.34

2 years ago

0.9.0-alpha.35

2 years ago

0.9.0-alpha.36

2 years ago

0.9.0-alpha.0

2 years ago

0.9.0-alpha.30

2 years ago

0.9.0-alpha.1

2 years ago

0.9.0-alpha.31

2 years ago

0.9.0-alpha.32

2 years ago

0.9.0-alpha.3

2 years ago

0.9.0-alpha.4

2 years ago

0.9.0-alpha.26

2 years ago

0.9.0-alpha.27

2 years ago

0.9.0-alpha.28

2 years ago

0.9.0-alpha.29

2 years ago

0.9.0-alpha.22

2 years ago

0.9.0-alpha.23

2 years ago

0.9.0-alpha.20

2 years ago

0.9.0-alpha.21

2 years ago

0.9.0-alpha.18

2 years ago

0.9.0-alpha.11

2 years ago

0.9.0-alpha.12

2 years ago

0.9.0-alpha.13

2 years ago

0.9.0-alpha.14

2 years ago

0.9.0-alpha.19

2 years ago

0.8.0

2 years ago

0.8.0-alpha.15

2 years ago

0.8.0-alpha.39

2 years ago

0.8.0-alpha.28

2 years ago

0.8.0-alpha.44

2 years ago

0.8.0-alpha.33

2 years ago

0.8.0-alpha.22

2 years ago

0.8.0-alpha.32

2 years ago

0.8.0-alpha.21

2 years ago

0.8.0-alpha.46

2 years ago

0.8.0-alpha.45

2 years ago

0.8.0-alpha.34

2 years ago

0.8.0-alpha.12

2 years ago

0.8.0-alpha.8

2 years ago

0.8.0-alpha.7

3 years ago

0.8.0-alpha.1

3 years ago

0.8.0-alpha.0

3 years ago