Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

OpenWA SDKs

Official client libraries for the OpenWA WhatsApp API Gateway.

Note: These SDKs are scaffolds and will be auto-generated from the OpenAPI spec in the future. They provide a working starting point for community contributions.

JavaScript / TypeScript

cd sdk/javascript
npm install
npm run build
import { OpenWAClient } from '@openwa/sdk';

const client = new OpenWAClient({
  baseUrl: 'http://localhost:2785',
  apiKey: 'your-api-key',
});

const result = await client.messages.sendText('session-1', {
  chatId: '628123456789@c.us',
  text: 'Hello from OpenWA SDK!',
});

Python

cd sdk/python
pip install -e .
from openwa import OpenWAClient

client = OpenWAClient(
    base_url="http://localhost:2785",
    api_key="your-api-key",
)

result = client.messages.send_text("session-1", {
    "chatId": "628123456789@c.us",
    "text": "Hello from OpenWA Python SDK!",
})