Abc-Sdk
2.0.21
dotnet add package Abc-Sdk --version 2.0.21
NuGet\Install-Package Abc-Sdk -Version 2.0.21
<PackageReference Include="Abc-Sdk" Version="2.0.21" />
<PackageVersion Include="Abc-Sdk" Version="2.0.21" />
<PackageReference Include="Abc-Sdk" />
paket add Abc-Sdk --version 2.0.21
#r "nuget: Abc-Sdk, 2.0.21"
#:package Abc-Sdk@2.0.21
#addin nuget:?package=Abc-Sdk&version=2.0.21
#tool nuget:?package=Abc-Sdk&version=2.0.21
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);
Rich Links
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 | Versions 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. |
-
net10.0
- Abc-Sdk.Core (>= 2.0.21)
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 |
Alpha version with limited features available.