Coder Social home page Coder Social logo

cra.ge's Introduction

CRA.ge

cra.ge is a gem for working with Georgian Civil Registry Agency web-services.

Configure

First of all you need to configure the gem. You need a PEM certificate file for this:

CRA.config.pem_file = '/home/dimakura/certificates/my-company.pem'

Getting person information by private number

If you have person's private number (11 digits code), then you can get the last entry in CRA database, like this:

private_number = '02001000490'
person_info = CRA.serv.by_personal_id(private_number) # CRA::PassportInfo

Getting person infromation by id card

You can get person's last document by their id card information:

id_card_serial = 'გ'
id_card_number = '1355876'
person_info = CRA.serv.by_id_card(id_card_serial, id_card_number)

Getting full documentation for the person

If you have first/last names of the person and know their birthdate, then it's easy to get full list of documentation for this person:

fname = 'დიმიტრი'
lname = 'ყურაშვილი'
year, month, day = 1979, 4, 4
docs = CRA.serv.list_by_name_and_dob(lname, fname, year, month, day) # array of CRA::PassportInfo

cra.ge's People

Contributors

dimakura avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.