Autogenerated C# SDK for the Salesforce Marketing Cloud Platform
git clone https://github.com/salesforce-marketingcloud/mcsdk-automation-csharp.gitAutogenerated C# SDK for the Salesforce Marketing Cloud Platform
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/salesforce-marketingcloud/mcsdk-automation-csharpCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Generate a C# SDK for the Salesforce Marketing Cloud Platform. The SDK should include methods for [ACTIONS] such as sending emails, managing contacts, and tracking campaign performance. Use the following API endpoints: [ENDPOINTS]. Ensure the SDK is well-documented and includes example usage for each method.
```csharp
using System;
using System.Net.Http;
using System.Threading.Tasks;
namespace SalesforceMarketingCloudSDK
{
public class MarketingCloudClient
{
private readonly HttpClient _httpClient;
private readonly string _apiKey;
public MarketingCloudClient(string apiKey)
{
_httpClient = new HttpClient();
_apiKey = apiKey;
}
public async Task SendEmailAsync(string emailAddress, string templateId, string subject)
{
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.marketingcloud.com/v1/email/send");
request.Headers.Add("Authorization", _apiKey);
request.Content = new StringContent(
$"{{\"emailAddress\": \"{emailAddress}\", \"templateId\": \"{templateId}\", \"subject\": \"{subject}\"}}",
System.Text.Encoding.UTF8,
"application/json");
var response = await _httpClient.SendAsync(request);
response.EnsureSuccessStatusCode();
}
}
}
```
### Example Usage
```csharp
var client = new MarketingCloudClient("your-api-key");
// Send an email
await client.SendEmailAsync("user@example.com", "template123", "Welcome to Our Service");
```Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan