Native libraries for your favorite programming language
from whatsapp_simple import Client
client = Client(api_key="your_api_key")
# Send a message
response = client.send_message(
to="+1234567890",
text="Hello from Python! 🐍"
)
# Check status
print(f"Message ID: {response.message_id}")
print(f"Status: {response.status}")const WhatsApp = require('whatsapp-simple');
const client = new WhatsApp('your_api_key');
// Send a message
const response = await client.sendMessage({
to: '+1234567890',
text: 'Hello from Node.js! 🚀'
});
// Check status
console.log('Message ID:', response.messageId);
console.log('Status:', response.status);<?php
require 'vendor/autoload.php';
use WhatsAppSimple\Client;
$client = new Client('your_api_key');
// Send a message
$response = $client->sendMessage([
'to' => '+1234567890',
'text' => 'Hello from PHP! 🐘'
]);
// Check status
echo "Message ID: " . $response->messageId . PHP_EOL;
echo "Status: " . $response->status . PHP_EOL;package main
import (
"fmt"
"github.com/whatsapi-simple/go-sdk"
)
func main() {
client := whatsapp.NewClient("your_api_key")
// Send a message
response, err := client.SendMessage(
"+1234567890",
"Hello from Go! 🚀",
)
if err != nil {
panic(err)
}
// Check status
fmt.Printf("Message ID: %s\n", response.MessageID)
fmt.Printf("Status: %s\n", response.Status)
}v1.2.3
<dependency>
<groupId>com.whatsapi-simple</groupId>
<artifactId>whatsapp-sdk</artifactId>
<version>1.2.3</version>
</dependency>import com.whatsapi.simple.Client;
import com.whatsapi.simple.Message;
import com.whatsapi.simple.Response;
public class Example {
public static void main(String[] args) {
Client client = new Client("your_api_key");
// Send a message
Message message = new Message()
.setTo("+1234567890")
.setText("Hello from Java! ☕");
Response response = client.sendMessage(message);
// Check status
System.out.println("Message ID: " + response.getMessageId());
System.out.println("Status: " + response.getStatus());
}
}These SDKs are maintained by our amazing community. We encourage you to contribute!
Want to contribute? Check our SDK development guide and submit your library!