Skip to content

marthijn/Sidio.MailBluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sidio.MailBluster

Sidio.MailBluster is an unofficial C# SDK for the MailBluster API. Currently this package is not feature complete, and not released as a stable version. Please use at your own risk.

build NuGet Version

Installation

Add the package to your project.

Usage

Options

{
  "MailBluster:Url": "https://api.mailbluster.com/api/",
  "MailBluster:ApiKey": "your-api-key"
}

Dependency injection

services.AddMailBluster();

Using the client

public class MyClass
{
    private readonly IMailBlusterClient _client;

    public MyClass(IMailBlusterClient client)
    {
        _client = client;        
    }

     public async Task GetLeads()
     {
          var lead = await _client.GetLeadAsync("[email protected]");
    }
}

Logging

⚠️ Be aware when the log level Trace is used, sensitive data (e.g. email address, names) might be logged. It is recommended not to use trace logging in production environments.

Feature status

  • Manage leads
    • Create
    • Read
    • Update
    • Delete
  • Manage fields
    • Create
    • Read
    • Update
    • Delete
  • Manage products
    • Create
    • Read
    • Update
    • Delete
  • Manage orders
    • Create
    • Read
    • Update
    • Delete

Integration tests

Integration tests are available in the Sidio.MailBluster.Integration.Tests project. To run the tests, add the following configuration file local.settings.json:

{
  "MAILBLUSTER_API_KEY": "your-api-key"
}

API Documentation