
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
whatsapp-typescript-axios
Advanced tools
An OpenAPI generator tool for the WhatsApp Cloud API, designed to simplify API client generation and streamline integration workflows.
A strongly-typed HTTP client for the WhatsApp Cloud API, generated from OpenAPI specification. This package provides an Axios-based client with complete TypeScript type definitions for the WhatsApp Business Platform API.
npm install whatsapp-typescript-axios
This HTTP client is generated from an OpenAPI specification based on:
import { Configuration, MessagesApi } from 'whatsapp-typescript-axios';
// Basic configuration with access token
const config = new Configuration({
accessToken: 'your-access-token'
});
// Advanced configuration options
const advancedConfig = new Configuration({
accessToken: 'your-access-token',
basePath: 'https://graph.facebook.com/v17.0', // Optional: override base path
baseOptions: { // Optional: axios config
timeout: 5000,
headers: { 'Custom-Header': 'value' }
}
});
// Initialize API with phone number ID
const messagesApi = new MessagesApi(config, undefined, 'your-phone-number-id');
// Or initialize without phone number ID
const defaultMessagesApi = new MessagesApi(config);
The Configuration
constructor accepts these parameters:
accessToken
: Your WhatsApp API access token (required)basePath
: Override the default API base URL (optional)baseOptions
: Additional Axios configuration options (optional)apiKey
, username
, password
, etc.Note: Phone number ID can be provided either during API client initialization or with each API call.
This project is licensed under the MIT License - see the LICENSE file for details.
See CHANGELOG.md for release details.
FAQs
An OpenAPI generator tool for the WhatsApp Cloud API, designed to simplify API client generation and streamline integration workflows.
The npm package whatsapp-typescript-axios receives a total of 97 weekly downloads. As such, whatsapp-typescript-axios popularity was classified as not popular.
We found that whatsapp-typescript-axios demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.