JDKTechnology.SDK 2.1.1

dotnet add package JDKTechnology.SDK --version 2.1.1
NuGet\Install-Package JDKTechnology.SDK -Version 2.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JDKTechnology.SDK" Version="2.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add JDKTechnology.SDK --version 2.1.1
#r "nuget: JDKTechnology.SDK, 2.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install JDKTechnology.SDK as a Cake Addin
#addin nuget:?package=JDKTechnology.SDK&version=2.1.1

// Install JDKTechnology.SDK as a Cake Tool
#tool nuget:?package=JDKTechnology.SDK&version=2.1.1

JDKTechnology.SDK

Getting Started

To get started add the nuget package via the dotnet cli command.

dotnet add package JDKTechnology.SDK

JDKClient

The JDKClient can be constructed by passing in the API Key. There are also overload methods that allow for a WebProxy if that is required in your environment.

var _jdkClient = new JDKClient("< API-KEY >");

Send a capture request

The sample below creates a jdkclient and sends a capture request.

var _jdkClient = new JDKClient("< API-KEY >");
var captureRequest = new JDKCreateCaptureRequest
{
    subAccountId = "abc1234",
    dialingCode = "+44",
    phoneNumber = "07000000000",
    registration = "REG01",
    first_name = "John",
    last_name = "Smith",
    type = JDKRequestType.Insurance,
    mappings = new List<JDKThirdPartyMapping>
    {
        {
            new JDKThirdPartyMapping
            {
                provider = JDKIntegrationProvider.GTMotive,
                referenceId = "12345"
            }
        }
    }
};

var createdRequest = await _jdkClient.CaptureRequest.Create(captureRequest);
Console.WriteLine(createdRequest.id);

Downloading Images

Images can be downloaded to an list byte array by using the .DownloadImages() method.

var _jdkClient = new JDKClient("< API-KEY >");
var captureRequest = await _jdkClient.CaptureRequest.Get("{id}");
var images = createdRequest.DownloadImages();

Retrieve capture request details

var _jdkClient = new JDKClient("< API-KEY >");
var captureRequest = await _jdkClient.CaptureRequest.Get("{id}");
Console.WriteLine(captureRequest.id);

Delete a request

Deleted requests are automatically purged after 30 days.

var _jdkClient = new JDKClient("< API-KEY >");
bool isSuccessful = await _jdkClient.CaptureRequest.Delete("{id}");

Webhooks

var _jdkClient = new JDKClient("< API-KEY >");
var parsedHook = await _jdkClient.Webhook.Parse(" { ... } ");

License

MIT

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.1.1 100 4/17/2024
2.0.10 82 4/17/2024
2.0.6 84 4/15/2024
2.0.5 63 4/9/2024
2.0.4 94 4/8/2024
2.0.2 81 4/8/2024
1.1.31 432 12/6/2022
1.1.30 283 12/5/2022
1.1.19 321 11/29/2022
1.1.18 460 1/28/2022
1.1.16 243 1/6/2022