Official SDKs

SDKs & Libraries

Native libraries for your favorite programming language

🐍

Python

v1.2.3

1.2k
pip install whatsapp-simple
Example
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}")
🟢

Node.js

v1.2.3

2.1k
npm install whatsapp-simple
Example
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

v1.2.3

890
composer require whatsapp-simple/sdk
Example
<?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;
🐹

Go

v1.2.3

567
go get github.com/whatsapi-simple/go-sdk
Example
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)
}

Java

v1.2.3

432
<dependency> <groupId>com.whatsapi-simple</groupId> <artifactId>whatsapp-sdk</artifactId> <version>1.2.3</version> </dependency>
Example
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());
    }
}

Community SDKs

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!