Abc-Sdk 2.0.21

dotnet add package Abc-Sdk --version 2.0.21
                    
NuGet\Install-Package Abc-Sdk -Version 2.0.21
                    
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="Abc-Sdk" Version="2.0.21" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Abc-Sdk" Version="2.0.21" />
                    
Directory.Packages.props
<PackageReference Include="Abc-Sdk" />
                    
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 Abc-Sdk --version 2.0.21
                    
#r "nuget: Abc-Sdk, 2.0.21"
                    
#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 Abc-Sdk@2.0.21
                    
#: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=Abc-Sdk&version=2.0.21
                    
Install as a Cake Addin
#tool nuget:?package=Abc-Sdk&version=2.0.21
                    
Install as a Cake Tool

Apple Business Chat SDK

A .NET SDK for integrating with Apple Business Chat (Messages for Business). It enables Customer Service Platforms (CSPs) to communicate with customers on iPhone, iPad, Mac, and Apple Watch through iMessage — sending text, rich links, interactive messages, forms, Apple Pay requests, and more.

Installation

dotnet add package Abc-Sdk

For webhook support in ASP.NET Core:

dotnet add package Abc-Sdk.Controllers

Authentication

using Abc;

var credentials = Auth.CreateCredentials(
    cspId: "your-csp-id",
    secret: "your-base64-secret",
    businessChatId: "your-business-chat-id"
);

All Message.* methods accept an optional IAbcCredentials credentials parameter, making them thread-safe for concurrent multi-tenant use.

Usage

Sending Messages

await Message.SendMessage("Hello!", recipientId, credentials);

Typing Indicators

await Message.SendMessageTyping(typing: true, recipientId, credentials);

Quick Replies

var items = new List<QuickReplyItem>
{
    new QuickReplyItem { Title = "Yes" },
    new QuickReplyItem { Title = "No" }
};

await Message.SendMessageQuickReply("Do you agree?", items, recipientId, credentials);
byte[] imageData = File.ReadAllBytes("preview.jpg");
await Message.SendMessageRichLinkImage(
    linkUrl: "https://example.com/article",
    data: imageData,
    mimeType: "image/jpeg",
    title: "Read this article",
    recipientId: recipientId,
    credentials: credentials
);

File Attachments

Files are automatically encrypted (AES-CTR), uploaded, and sent as message attachments.

await Message.SendFile("/path/to/document.pdf", recipientId, credentials: credentials);

Interactive Messages

Use the dedicated factories to construct list pickers, time pickers, and forms:

var listPickerMessage = MessageListPickerFactory.CreateListPickerMessage(
    businessChatId, recipientId, sections, receivedMessage, imageData, title, subtitle);
await Message.SendMessage(listPickerMessage, credentials);

Apple Pay

var applePayMessage = MessagePaymentFactory.CreateApplePayMessage(
    businessChatId, recipientId, receivedMessage, paymentRequest, endpoints, imageData, title, subtitle);

await Message.SendMessageApplePay(
    message: applePayMessage,
    merchantCertificate: cert,
    merchantName: "My Store",
    merchantId: "merchant.com.example",
    domainName: "example.com",
    paymentGatewayUrl: "https://example.com/paymentGateway"
);

Receiving Webhooks

Use Abc.Controllers to validate and parse inbound messages from Apple (gzip-compressed, JWT-signed):

using Abc.Controllers.Helper;

if (!AuthHelper.IsAuthorizationValid(credentials, headerMessage))
    return Unauthorized();

License

See the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
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
2.0.21 34 5/4/2026
2.0.19 28 5/4/2026
2.0.18 124 4/9/2026
2.0.17 102 4/9/2026
2.0.16 94 4/9/2026
2.0.15 1,461 3/13/2025
2.0.14 387 3/3/2025
2.0.13 259 3/3/2025
2.0.12 286 3/3/2025
2.0.11 315 11/29/2024
2.0.10 276 11/29/2024
2.0.9 351 10/18/2024
2.0.8 295 10/8/2024
2.0.6 286 9/20/2024
2.0.5 297 9/19/2024
2.0.3 304 9/11/2024
2.0.2 270 9/9/2024
2.0.1 823 11/16/2022
2.0.0 483 11/16/2022
1.0.27 641 1/4/2022
Loading failed

Alpha version with limited features available.