WuzApiClient.RabbitMq
1.0.0
dotnet add package WuzApiClient.RabbitMq --version 1.0.0
NuGet\Install-Package WuzApiClient.RabbitMq -Version 1.0.0
<PackageReference Include="WuzApiClient.RabbitMq" Version="1.0.0" />
<PackageVersion Include="WuzApiClient.RabbitMq" Version="1.0.0" />
<PackageReference Include="WuzApiClient.RabbitMq" />
paket add WuzApiClient.RabbitMq --version 1.0.0
#r "nuget: WuzApiClient.RabbitMq, 1.0.0"
#:package WuzApiClient.RabbitMq@1.0.0
#addin nuget:?package=WuzApiClient.RabbitMq&version=1.0.0
#tool nuget:?package=WuzApiClient.RabbitMq&version=1.0.0
WuzAPI Client
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.
2. Quick Links
- Getting Started: docs/intro/getting-started.md
- Event Handling Guide: docs/usage/event-handling.md
- Configuration Reference: docs/usage/configuration.md
- API Reference: docs/api/http-client-reference.md
- Integration Testing: scripts/README.md
- Event Dashboard: tools/WuzApiClient.EventDashboard/README.md - Real-time event visualization tool
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:
- WuzApiClient – HTTP client wrapping the asternic/wuzapi REST API for outbound WhatsApp operations (sending messages, managing contacts, etc.)
- 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 | Versions 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. |
-
.NETStandard 2.0
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.22)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- RabbitMQ.Client (>= 7.2.0)
- WuzApiClient.Common (>= 1.0.0)
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 |