Sentia-pnr
sentia-pnr is a simple client for cpr direkte developed by Sentia. Sentia-pnr can either be used as a node library, or a standalone proxy for cpr direkte.
disclaimer
Sentia accepts absolutely no responsibility for any use of this library.
node library
const pnr = const client =
see the test-data folder for examples of the data format.
standalone proxy
you can also run sentia-pnr as a standalone proxy for cpr direkte
to run the proxy simply run :
yarn
yarn start
you need to set the following env vars before running the server:
CPR_USER_ID
, CPR_USERNAME
, CPR_PASSWORD
, CPR_HOST
, PORT
in addition you can set AUTH_TOKEN
. this will make the proxy verify the requests authorization header against the AUTH_TOKEN before processing the request.
docker
you can also run the proxy as a docker image sentia/pnr-proxy
using the same env vars as described in the previous section.