KYCTurk 1.0.0

dotnet add package KYCTurk --version 1.0.0
                    
NuGet\Install-Package KYCTurk -Version 1.0.0
                    
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="KYCTurk" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KYCTurk" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="KYCTurk" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add KYCTurk --version 1.0.0
                    
#r "nuget: KYCTurk, 1.0.0"
                    
#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.
#:package KYCTurk@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=KYCTurk&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=KYCTurk&version=1.0.0
                    
Install as a Cake Tool

KYCTurk

KYCTurk, Nüfus ve Vatandaşlık İşleri Genel Müdürlüğü'nün (NVI) SOAP servisi üzerinden TC Kimlik numarası doğrulaması yapmanızı sağlayan bir .NET kütüphanesidir. Bu kütüphane sayesinde, kişilerin kimlik bilgilerini (TC Kimlik No, Ad, Soyad ve Doğum Yılı) kullanarak gerçek zamanlı doğrulama yapabilirsiniz.

Özellikler

  • TC Kimlik numarası format kontrolü
  • NVI SOAP servisi üzerinden gerçek zamanlı doğrulama
  • Detaylı hata yönetimi
  • Kolay entegrasyon

Kurulum

NuGet Paket Yöneticisi

dotnet add package KYCTurk

Visual Studio Paket Yöneticisi

Install-Package KYCTurk

Kullanım

Temel Kullanım

using KYCTurk;

// KYCTurk servisini başlat
var kycService = new KYCTurkService();

// Kimlik doğrulama işlemi
var sonuc = await kycService.VerifyIdentityAsync(
    tcKimlikNo: "12345678901",
    ad: "Ahmet",
    soyad: "Yılmaz",
    dogumYili: 1990
);

// Sonucu kontrol et
if (sonuc.GecerliMi)
{
    Console.WriteLine("Kimlik doğrulaması başarılı!");
}
else
{
    Console.WriteLine("Kimlik doğrulaması başarısız!");
}

KYCTurkRequest Kullanımı

using KYCTurk;
using KYCTurk.Models;

var kycService = new KYCTurkService();

var istek = new KYCTurkRequest
{
    TcKimlikNo = "12345678901",
    Ad = "Ahmet",
    Soyad = "Yılmaz",
    DogumYili = 1990
};

var sonuc = await kycService.VerifyIdentityAsync(istek);

Hata Yönetimi

try
{
    var sonuc = await kycService.VerifyIdentityAsync(
        tcKimlikNo: "12345678901",
        ad: "Ahmet",
        soyad: "Yılmaz",
        dogumYili: 1990
    );
}
catch (KYCTurkException ex)
{
    Console.WriteLine($"Doğrulama hatası: {ex.Message}");
}

Önemli Not

Bu kütüphane sadece TC Kimlik numarası doğrulaması yapar, kimlik bilgilerinin doğruluğunu kontrol etmez.

Lisans

Bu proje MIT lisansı altında lisanslanmıştır.

İletişim

Sorularınız veya önerileriniz için lütfen bir issue açın.

💰 Bağış

Bu projeyi beğendiyseniz ve geliştirilmesine katkıda bulunmak istiyorsanız, kripto para bağışı yapabilirsiniz:

Tüm Ağlar İçin Cüzdan Adresi:

0x21bc1e50042708a30275c151e43f7b1c1be99f2f

Desteklenen tokenlar: Tüm ERC-20/BEP-20 tokenları

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

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
1.0.0 154 6/14/2025

TC Kimlik doğrulama işlevselliği ile ilk sürüm.