coderpros / kickbox-core

A Kickbox.io API wrapper .Net 6 (c#)

Home Page:https://coderpro.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contributors Forks Stargazers Issues MIT License LinkedIn Twitter GitHub

KickBox-Core

A KickBox.io API wrapper for .Net Core version 5.0 written in C#.

How to use

  • Create a free account at Kickbox.io.
  • Sign up for an API Key.
  • Add your own Kickbox API key when you instantiate the KickBox object.

I've included a test client application in this project, but here is is an elaboration on how to use each of the methods.

This is available as a NuGet package here: Nuget.org

Verify a single email address

var kickbox = new KickBoxApi("*** ADD API KEY HERE ***", "https://api.kickbox.com/v2");

var verificationResponse1 = await kickbox.VerifyEmail(new MailAddress("info@coderpro.net"))
                                    .ConfigureAwait(true);

Verify multiple email addresses in a batch.

var verificationResponse2 = await kickbox.VerifyBatch(
                                            mailAddresses: new[]
                                            {
                                              new MailAddress("brandon.osborne@gamil.com"),
                                              new MailAddress("info@coderpro.net")
                                            },
                                            fileName: "test file",
                                            batchVerificationCallback: null)
                                            .ConfigureAwait(false);

Check status of a bulk verification job

var verificationResponse3 = await kickbox.CheckStatus(1234567)
                                    .ConfigureAwait(true);

About

A Kickbox.io API wrapper .Net 6 (c#)

https://coderpro.net

License:GNU General Public License v3.0


Languages

Language:C# 100.0%