Skip to main content
The official .NET SDK repository includes runnable sample projects that mirror the flows documented in this guide.

GitHub repository

All examples live in the examples/ folder: github.com/VZaps/vzaps-sdk-dotnet Sample projects consume the published NuGet package (VZaps.SDK). The console sample runs numbered flows from 01 through 11. See examples/README.md in the repository for the full project list.

What’s included

ProjectTopic
VZaps.Examples.ConsoleNumbered flows 01 through 11
VZaps.Examples.WorkerRealtime WebSocket worker
VZaps.Examples.AspNetCoreASP.NET Core integration sample
Console flows:
ArgumentTopic
01Auth and instance listing
02Create instance
03Billing subscription
04Session and pairing
05Webhook configuration
06Realtime subscription
07Send text message
08Media and interactive messages
09Poll, reaction, and chat actions
10Queues
11TypeBot and Chatwoot
You do not need to clone the full SDK repository.
  1. Download only VZaps.Examples.Console using Download ZIP on GitHub, or run:
npx --yes degit VZaps/vzaps-sdk-dotnet/examples/VZaps.Examples.Console vzaps-dotnet-console
cd vzaps-dotnet-console
  1. Set credentials and run one flow:
export VZAPS_CLIENT_TOKEN=your-client-token
export VZAPS_CLIENT_SECRET=your-client-secret
export VZAPS_INSTANCE_ID=VZ...
export VZAPS_INSTANCE_TOKEN=your-instance-token
dotnet run -- 07

Option B — sparse checkout

git clone --depth 1 --filter=blob:none --sparse https://github.com/VZaps/vzaps-sdk-dotnet.git
cd vzaps-sdk-dotnet
git sparse-checkout set examples/VZaps.Examples.Console
cd examples/VZaps.Examples.Console
dotnet run -- 07

Option C — full repository clone

git clone https://github.com/VZaps/vzaps-sdk-dotnet.git
cd vzaps-sdk-dotnet/examples/VZaps.Examples.Console
dotnet run -- 07
When developing the SDK locally, replace the NuGet reference with a project reference to src/VZaps.SDK/VZaps.SDK.csproj.

Next steps