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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
JDKTechnology.SDK
- Getting Started
- Capture Requests -- Send a capture request -- Retrieve capture request details -- Downloading Images -- Delete a request
- Webhooks
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
Product | Versions 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.
-
net7.0
- Newtonsoft.Json (>= 13.0.2)
- RestSharp (>= 108.0.3)
-
net8.0
- Newtonsoft.Json (>= 13.0.2)
- RestSharp (>= 108.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.