Skip to content

A client for making requests to the danish CPR registry (STAMP only)

Notifications You must be signed in to change notification settings

aion-dk/cpr-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPR Client

A client for looking up people in the danish CPR registry. This cpr-client only supports requests allowed for private companies (STAMP). To use the CPR services, you must first get an agreement with cpr.dk.

Install

You can install cpr-client via rubygems:

$ gem install cpr-client

Or add this to your Gemfile

gem 'cpr-client'

Usage

# The client is connecting to the demo environment
client = CPRClient.new(username, password, true)
record = client.lookup('0707614285')

if record.nil?
  puts "The record was not found"
elsif record.protected?
  puts "The record has name and address protection"
else
  puts record[:adrnvn]
  puts record[:adrnvn, :t]
end

About

A client for making requests to the danish CPR registry (STAMP only)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages