Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@adlanarifzr/whatsapp-sdk

Package Overview
Dependencies
Maintainers
0
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adlanarifzr/whatsapp-sdk

Whatsapp Cloud API unofficial SDK

  • 0.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-76.47%
Maintainers
0
Weekly downloads
 
Created
Source

Whatsapp Cloud API unofficial SDK

This repository contains the open source Node.js client for Whatsapp Cloud API. At the moment, it is focusing on handling /messages endpoint APIs and webhook. More will be updated.

Installation

npm install @adlanarifzr/whatsapp-sdk

Usage

import WhatsappSdk from '@adlanarifzr/whatsapp-sdk';

// Initialized class
const wa = new WhatsappSdk({
	phone_number_id: PHONE_NUMBER_ID,
	auth_token: AUTH_TOKEN,
});

// Send template message (also support other type of messages)
const result = await wa.sendTemplateMessage('+60123456789', {
	name: 'hello_world',
	language: {
		code: 'en_US',
	},
});

// Calculate the cost of the message based on conversation type
const cost = wa.getMessagePrice('+60123456789', 'utility');

Keywords

FAQs

Package last updated on 04 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc