cpr-client
所属分类:WEB开发
开发工具:Ruby
文件大小:8KB
下载次数:0
上传日期:2022-10-18 19:27:46
上 传 者:
sh-1993
说明: 向丹麦CPR注册中心提出请求的客户端(仅限STAMP)
(A client for making requests to the danish CPR registry (STAMP only))
文件列表:
Gemfile (500, 2019-05-21)
Gemfile.lock (393, 2019-05-21)
Rakefile (194, 2019-05-21)
cpr-client.gemspec (703, 2019-05-21)
lib (0, 2019-05-21)
lib\cpr_client.rb (516, 2019-05-21)
lib\cpr_client (0, 2019-05-21)
lib\cpr_client\client.rb (4203, 2019-05-21)
lib\cpr_client\errors.rb (943, 2019-05-21)
lib\cpr_client\record.rb (2028, 2019-05-21)
lib\cpr_client\version.rb (40, 2019-05-21)
test (0, 2019-05-21)
test\client_test.rb (2789, 2019-05-21)
test\record_test.rb (2781, 2019-05-21)
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](https://cpr.dk/).
Install
-------
You can install cpr-client via rubygems:
$ gem install cpr-client
Or add this to your Gemfile
gem 'cpr-client'
Usage
-----
```ruby
# 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
```
近期下载者:
相关文件:
收藏者: