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.
cd sdk/javascript
npm install
npm run buildimport { 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!',
});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!",
})