CloudContactAI.CCAI.NET
1.2.0
See the version list below for details.
dotnet add package CloudContactAI.CCAI.NET --version 1.2.0
NuGet\Install-Package CloudContactAI.CCAI.NET -Version 1.2.0
<PackageReference Include="CloudContactAI.CCAI.NET" Version="1.2.0" />
<PackageVersion Include="CloudContactAI.CCAI.NET" Version="1.2.0" />
<PackageReference Include="CloudContactAI.CCAI.NET" />
paket add CloudContactAI.CCAI.NET --version 1.2.0
#r "nuget: CloudContactAI.CCAI.NET, 1.2.0"
#:package CloudContactAI.CCAI.NET@1.2.0
#addin nuget:?package=CloudContactAI.CCAI.NET&version=1.2.0
#tool nuget:?package=CloudContactAI.CCAI.NET&version=1.2.0
C# client for CloudContactAI API with SMS, MMS, Email, and Webhook support. Includes comprehensive documentation, examples, and testing framework.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. |
-
net8.0
- Microsoft.Extensions.Http (>= 8.0.0)
- System.Net.Http.Json (>= 8.0.0)
- System.Text.Json (>= 8.0.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
# CloudContactAI.CCAI.NET v1.2.0 Release Notes
**Release Date**: August 14, 2025
**Package**: CloudContactAI.CCAI.NET v1.2.0
**Compatibility**: Fully backward compatible with v1.1.0 and v1.0.0
## 🎉 What's New in v1.2.0
### 📚 Enhanced Documentation & Package Experience
Complete overhaul of package documentation and developer experience:
- **📖 Embedded Release Notes**: Release notes are now properly embedded in NuGet package metadata
- **🔍 Improved Discoverability**: Enhanced package description and metadata for better search results
- **📋 Complete API Documentation**: Comprehensive XML documentation for all public APIs
- **🚀 Getting Started Guide**: Step-by-step integration guide included in package
### 🛠️ Package Improvements
#### NuGet Package Enhancements
- ✅ **Release Notes Integration**: Automatic embedding of release notes in package metadata
- ✅ **Documentation Files**: Release notes and documentation files included in package
- ✅ **Better Package Structure**: Organized file structure for improved developer experience
- ✅ **Metadata Optimization**: Enhanced package tags, description, and repository information
#### Developer Experience
- 📖 **IntelliSense Support**: Complete XML documentation for all methods and properties
- 🔧 **Better Error Messages**: Improved error handling with descriptive messages
- 📋 **Usage Examples**: Inline code examples in XML documentation
- 🧪 **Testing Framework**: Enhanced testing capabilities for package validation
## 🔧 Technical Improvements
### Package Metadata
```xml
<PackageId>CloudContactAI.CCAI.NET</PackageId>
<Version>1.2.0</Version>
<Authors>CloudContactAI LLC</Authors>
<Description>C# client for CloudContactAI API with SMS, MMS, Email, and Webhook support</Description>
<PackageReleaseNotes>Embedded from RELEASE-NOTES-v1.2.0.md</PackageReleaseNotes>
<PackageTags>sms;mms;email;api;client;cloud;contact;ai;cloudcontactai;webhook</PackageTags>
```
### Documentation Structure
```
CloudContactAI.CCAI.NET v1.2.0
├── Core Library
│ ├── XML Documentation (enhanced)
│ ├── IntelliSense Support
│ └── Error Messages (improved)
├── Package Files
│ ├── RELEASE-NOTES-v1.2.0.md (embedded)
│ ├── RELEASE-NOTES-v1.1.0.md (legacy)
│ └── Documentation files
├── Examples/ (from v1.1.0)
│ ├── SMS/MMS Examples
│ ├── Email Examples
│ └── Webhook Examples
└── Tests/ (enhanced)
└── Package validation suite
```
### Dependencies (Unchanged)
- **Target Framework**: .NET 8.0
- **Core Dependencies**:
- Microsoft.Extensions.Http 8.0.0
- System.Net.Http.Json 8.0.0
- System.Text.Json 8.0.5
## 🚀 Getting Started with v1.2.0
### Installation
```bash
# Install latest version
dotnet add package CloudContactAI.CCAI.NET
# Or specify version explicitly
dotnet add package CloudContactAI.CCAI.NET --version 1.2.0
```
### Quick Start Example
```csharp
using CCAI.NET;
using CCAI.NET.SMS;
// Initialize client
var config = new CCAIConfig
{
ClientId = "your-client-id",
ApiKey = "your-api-key",
BaseUrl = "https://api.cloudcontactai.com/" // optional
};
using var httpClient = new HttpClient();
var ccaiClient = new CCAIClient(config, httpClient);
var smsService = new SMSService(ccaiClient);
// Send single SMS
var response = await smsService.SendSingleAsync(
firstName: "John",
lastName: "Doe",
phone: "+1234567890",
message: "Hello ${FirstName}! Welcome to CCAI.NET v1.2.0",
title: "Welcome Message",
options: new SMSOptions { Timeout = 30, Retries = 3 },
cancellationToken: CancellationToken.None
);
Console.WriteLine($"SMS sent! ID: {response.Id}, Status: {response.Status}");
```
### Bulk SMS Example
```csharp
// Send to multiple recipients
var accounts = new List<Account>
{
new Account { FirstName = "John", LastName = "Doe", Phone = "+1234567890" },
new Account { FirstName = "Jane", LastName = "Smith", Phone = "+1987654321" }
};
var bulkResponse = await smsService.SendAsync(
accounts: accounts,
message: "Hello ${FirstName}! Bulk message from CCAI.NET v1.2.0",
title: "Bulk Campaign",
options: new SMSOptions { Timeout = 60, Retries = 2 },
cancellationToken: CancellationToken.None
);
Console.WriteLine($"Bulk SMS sent! Campaign ID: {bulkResponse.CampaignId}");
Console.WriteLine($"Messages sent: {bulkResponse.MessagesSent}");
```
## 📊 API Reference
### Core Classes
#### `CCAIConfig`
Configuration object for CloudContactAI client.
- `ClientId` (string): Your CloudContactAI client identifier
- `ApiKey` (string): Your CloudContactAI API key
- `BaseUrl` (string): API endpoint URL (optional, defaults to production)
#### `SMSService`
Service for sending SMS messages.
- `SendAsync()`: Send SMS to multiple recipients
- `SendSingleAsync()`: Send SMS to single recipient
- `Send()`: Synchronous bulk SMS sending
- `SendSingle()`: Synchronous single SMS sending
#### `SMSOptions`
Options for SMS sending behavior.
- `Timeout` (int?): Request timeout in seconds
- `Retries` (int?): Number of retry attempts
- `OnProgress` (Action): Progress callback for bulk operations
#### `SMSResponse`
Response object from SMS operations.
- `Id` (string): Unique message identifier
- `Status` (string): Delivery status
- `CampaignId` (string): Campaign identifier for bulk sends
- `MessagesSent` (int?): Number of messages sent
- `Timestamp` (string): Send timestamp
- `AdditionalData` (Dictionary): Additional response data
## 🔄 Migration Guide
### From v1.1.0 to v1.2.0
**No breaking changes!** Simply update your package reference:
```bash
dotnet remove package CloudContactAI.CCAI.NET
dotnet add package CloudContactAI.CCAI.NET --version 1.2.0
```
### From v1.0.0 to v1.2.0
**Fully backward compatible!** All existing code will continue to work without modifications.
## 📦 Package Validation
### ✅ Build Verification
```bash
cd src/CCAI.NET
dotnet build --configuration Release
dotnet pack --configuration Release
```
### ✅ Package Contents
- ✅ Core library assemblies
- ✅ XML documentation files
- ✅ Release notes (v1.2.0 and v1.1.0)
- ✅ Package metadata with embedded release notes
- ✅ Proper dependency declarations
## 🐛 Bug Fixes in v1.2.0
- Enhanced package metadata for better NuGet experience
- Improved XML documentation coverage
- Fixed package file inclusion for documentation
- Optimized build process for release packaging
## 📞 Support & Resources
- **Documentation**: Complete API reference in XML documentation
- **Examples**: Working examples in project repository
- **Package Manager**: Release notes visible in NuGet Package Manager
- **IntelliSense**: Full method and property documentation in IDE
## 🎯 What's Next
Future releases may include:
- Additional messaging channels (WhatsApp, Telegram)
- Enhanced webhook event types and filtering
- Advanced message scheduling and templating
- Improved retry logic and error handling
- Performance optimizations for high-volume sending
---
**Ready to deploy CloudContactAI.CCAI.NET v1.2.0 to NuGet! 🚀📦**
*This version includes comprehensive documentation, embedded release notes, and enhanced developer experience while maintaining full backward compatibility.*