dotta.Net
1.0.1
dotnet add package dotta.Net --version 1.0.1
NuGet\Install-Package dotta.Net -Version 1.0.1
<PackageReference Include="dotta.Net" Version="1.0.1" />
paket add dotta.Net --version 1.0.1
#r "nuget: dotta.Net, 1.0.1"
// Install dotta.Net as a Cake Addin #addin nuget:?package=dotta.Net&version=1.0.1 // Install dotta.Net as a Cake Tool #tool nuget:?package=dotta.Net&version=1.0.1
Introduction
dotta.Net
is a lightweight and intuitive package designed to streamline the integration process of dotta API and empower businesses to harness the power of dotta biometric service effortlessly.
dotta offers a wealth of functionality for performing real-time identity verification in the most convenient and efficient approach, but getting started and putting all the codes together can sometimes be complex and time-consuming. With dotta.Net
, we've simplified the integration process, allowing you to focus on building amazing applications without getting bogged down in implementation details.
Getting Started
- Install the
dotta.Net
package from NuGet.
dotnet add package dotta.Net
- Register
dotta.Net
as a service in yourProgram.cs
file.dotta.Net
is dependent on HttpClient to work, thus it should be registered after registering HttpClient.
// Register HttpClient to enable dotta.Net make http network requests
builder.Services.AddHttpClient();
builder.Services.AddDotta(new DottaServiceOptions
{
ApiKey = "",
BaseUrlProduction = "",
BaseUrlSandbox = "",
Environment = DottaEnvironment.Sandbox
});
You can also instantiate dotta directly in an implementation logic.
var _dotta = new Dotta(new DottaOptions
{
ApiKey = "ABCDE",
BaseUrlProduction = "",
BaseUrlSandbox = "",
Environment = DottaEnvironment.Sandbox,
HttpClient = // pass an instance of httpClient
});
- Inject
dotta.Net
service into any controller or service in your application
private readonly Dotta _dotta;
public ApiController(Dotta dotta)
{
_dotta = dotta;
}
- You can now access any member of the
dotta.Net
service
var response = await _dotta.FaceAttributes(photo);
Dotta Service Options | Option | Description | | ---------- | --------------- | | ApiKey | Base64 encode string of your dotta public and private API keys concatenated in this format PUBLICKEY:PRIVATEKEY | | PublicKey | Your dotta public API key | | PrivateKey | Your dotta private API key | | Environment | Enum to specify which dotta environment you want to use | | BaseUrlProduction | API base url for dotta's production environment. | | BaseUrlSandbox | API base url for dotta's sandbox or test environment. |
Pass the your public and private key if you don't know how to get a base64 string encoding of your keys. Otherwise, just pass the ApiKey. When you pass the ApiKey, you won't need to pass the public and private keys.
Other links
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.AspNetCore.Http.Features (>= 5.0.17)
- Microsoft.Extensions.DependencyInjection (>= 8.0.0)
- Microsoft.Extensions.Http (>= 8.0.0)
- System.Text.Json (>= 8.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.