Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including tc-id-verification with all npm packages installed. Try it out:

var tcIdVerification = require("tc-id-verification")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

tc-id-verification v1.0.2

R.O.T. ID Verification with SOAP Client

R.O.T. ID Verification

The Republic of Turkey ID Verification with SOAP Client

Installation

npm install tc-id-verification --save

Quick Start

Create new instance as name TCID and use properties of instance.

const { TCID } = require("tc-id-verification")

const tcid = new TCID();

Arguments

const args = {
  TCKimlikNo: 11223344556, // R.O.T. ID Number
  Ad: "afulsamet", // First Name
  Soyad: "doe", // Last Name
  DogumYili: 1992 // Birth Day
}

First way(Async/Await)

(async () => {
    const verif = await tcid.verif(args)
    console.log(verif)
})()

Second way(Callback)

const verif = tcid.verif(args, (error, result) =>
    console.log(result)
)

Output will be

{
  "verify": false,
  "ops": {
    "TCKimlikNo": 11223344556,
    "Ad": "AFULSAMET",
    "Soyad": "DOE",
    "DogumYili": 1992
  }
}

Docs

  • TCID - Class

    • verify(args: IArgs, callback?: Callback) - Object
  • IArgs - Interface

    • TCKimlikNo - number
    • Ad - string
    • Soyad - string
    • DogumYili - number
  • Callback - void

    • error - Interface
      • err - Object
    • result - Interface
      • verify - boolean
      • ops - IArgs

Dependencies

License not have yet

Licence not have yet, because the project is not wide.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free