8000 GitHub - hozmur/mernis: KPS (Kimlik Paylaşım Sistemi) için SOAP client'ı.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hozmur/mernis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MERNİS (KPS)

SOAP client for KPS (The Identity Information Sharing System) services provided by Ministry of the Interior, Turkey

Gem Version Code Climate

Setup

$ gem install 'mernis'

Usage Examples

require 'mernis'

# Most basic usage:
mernis = Mernis.sorgula("12345", "John", "Doe", "1990")

# With parameter names (required only):
mernis = Mernis.sorgula(id_number="12345", first_name="John", last_name="Doe", birth_year="1990")

# With parameter names (required + extras):
mernis = Mernis.sorgula(id_number="12345", first_name="John", last_name="Doe", birth_year="1990", version = 2, log = false)

# With all parameters:
mernis = Mernis.sorgula(id_number="12345", first_name="John", last_name="Doe", birth_year="1990", version = 2, open_timeout = 60, read_timeout = 60, log = false, wsdl = "https://somecustomwsdl.com" )

Parameters

mernis = Mernis.sorgula(
      id_number="12345", # identity number
      first_name="John", # first name
      last_name="Doe",   # last name
      birth_year="1990", # year of birth
      version = 2,       # soap version. should be 1 or 2.
      open_timeout = 60, # timeout duration until SOAP server opens the connection. in seconds.
      read_timeout = 60, # timeout duration until SOAP server returns response. in seconds.
      log = false,       # logging
      wsdl = "https://somecustomwsdl.com" # wsdl uri
    )

Response

Returns true if the identity number can be validated and false if not. Both returning values are string!

Contributing

  1. fork the repo ( https://github.com/msdundar/mernis/fork )
  2. Create a branch (git checkout -b cool-feature)
  3. Commit the changes (git commit -am 'My cool features')
  4. Push the branch (git push origin cool-feature)
  5. Make a pull request

Questions

msdundars@gmail.com

About

KPS (Kimlik Paylaşım Sistemi) için SOAP client'ı.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0