WuzApiClient.RabbitMq 1.0.0

dotnet add package WuzApiClient.RabbitMq --version 1.0.0
                    
NuGet\Install-Package WuzApiClient.RabbitMq -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WuzApiClient.RabbitMq" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WuzApiClient.RabbitMq" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="WuzApiClient.RabbitMq" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WuzApiClient.RabbitMq --version 1.0.0
                    
#r "nuget: WuzApiClient.RabbitMq, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package WuzApiClient.RabbitMq@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WuzApiClient.RabbitMq&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=WuzApiClient.RabbitMq&version=1.0.0
                    
Install as a Cake Tool

WuzAPI Client

CI & Publish NuGet License

A .NET client library for WhatsApp operations via the WuzAPI gateway, featuring strongly-typed event handling.

1. What is this?

WuzAPI Client is a .NET Standard 2.0 library that provides a type-safe interface to the asternic/wuzapi WhatsApp gateway. It enables .NET applications to send WhatsApp messages, manage contacts, groups, and process incoming WhatsApp events through RabbitMQ with the Result pattern for error handling.

The library uses Microsoft.Extensions.* for dependency injection, configuration, and hosted services.

3. Getting Started (Quick Start)

Prerequisites

  • .NET Standard 2.0 compatible runtime (.NET Core 2.0+, .NET Framework 4.6.1+, .NET 5+)
  • Running asternic/wuzapi gateway instance
  • RabbitMQ instance (for event handling)

Installation

dotnet add package WuzApiClient
dotnet add package WuzApiClient.RabbitMq  # For event handling

Basic Usage

using WuzApiClient.Core.Interfaces;
using WuzApiClient.Configuration;
using WuzApiClient.Models.Common;

// Register factories in DI container (server settings only)
services.AddWuzApi(options =>
{
    options.BaseUrl = "http://your-wuzapi-gateway:8080/";
});

// Use factories to create clients with dynamic tokens
public sealed class WhatsAppService
{
    private readonly IWaClientFactory clientFactory;

    public WhatsAppService(IWaClientFactory clientFactory)
    {
        this.clientFactory = clientFactory;
    }

    public async Task SendMessageAsync(string userToken)
    {
        // Create client with user-specific token
        var client = this.clientFactory.CreateClient(userToken);

        var result = await client.SendTextMessageAsync(
            Phone.Create("5511999999999"),
            "Hello from WuzAPI!"
        );

        if (result.IsSuccess)
        {
            Console.WriteLine($"Message sent: {result.Value.MessageId}");
        }
        else
        {
            Console.WriteLine($"Error: {result.Error.Message}");
        }
    }
}

See Getting Started for a full guide.

4. High-Level Architecture

The library consists of two main components:

  1. WuzApiClient – HTTP client wrapping the asternic/wuzapi REST API for outbound WhatsApp operations (sending messages, managing contacts, etc.)
  2. WuzApiClient.RabbitMq – Event consumer that processes incoming WhatsApp events from a RabbitMQ queue

For more details, see the Overview.

5. Documentation

Full documentation is available in the docs/ folder. See docs_map.md for the full index.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 113 4/8/2026
1.0.0-preview.19 90 3/12/2026
1.0.0-preview.18 274 12/15/2025
1.0.0-preview.17 436 12/9/2025
1.0.0-preview.16 414 12/9/2025
1.0.0-preview.15 88 12/6/2025
1.0.0-preview.14 92 12/6/2025
1.0.0-preview.13 114 12/6/2025
1.0.0-preview.12 113 12/6/2025
1.0.0-preview.11 168 12/5/2025
1.0.0-preview.10 171 12/5/2025
1.0.0-preview.8 161 12/5/2025
1.0.0-preview.6 165 12/4/2025
1.0.0-preview.5 175 12/3/2025
1.0.0-preview.4 634 12/2/2025
1.0.0-preview.3 537 12/1/2025
1.0.0-preview.2 390 11/30/2025
1.0.0-preview.1 103 11/29/2025