Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

wbiztool-client

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wbiztool-client

Node.js client for WbizTool WhatsApp API

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

WbizTool Client for Node.js

A Node.js client library for the WbizTool WhatsApp API.

Installation

npm install wbiztool-client

Usage

const { WbizToolClient } = require('wbiztool-client');

// Initialize the client
const client = new WbizToolClient({
  clientId: 'your_client_id',
  apiKey: 'your_api_key',
  whatsappClient: 'your_whatsapp_client_id'
});

// Send a text message
client.sendMessage({
  phone: '919876543210',
  countryCode: '91',
  message: 'Hello from WbizTool!'
})
.then(response => {
  console.log('Message sent!', response);
})
.catch(error => {
  console.error('Error sending message:', error);
});

// Send an image with message
client.sendMessageWithImage({
  phone: '919876543210',
  countryCode: '91',
  message: 'Check out this image!',
  imageUrl: 'https://example.com/image.jpg'
})
.then(response => {
  console.log('Image message sent!', response);
})
.catch(error => {
  console.error('Error sending image message:', error);
});

Environment Variables

You can also configure the client using environment variables:

// Load credentials from environment variables
// WBIZTOOL_CLIENT_ID, WBIZTOOL_API_KEY, WBIZTOOL_WHATSAPP_CLIENT
const client = new WbizToolClient();

Documentation

For complete documentation of the WbizTool API, visit: https://wbiztool.com/docs/

License

MIT

Keywords

whatsapp

FAQs

Package last updated on 26 Mar 2025

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