Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

aidcone/oranjekruis-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔶 Oranje Kruis API

Note

This library is deprecated. Use GET https://portal.hetoranjekruis.nl/wp-json/orange-cross/v1/check-certificate/?cert_number=12345678&last_name=Smit instead.

This library uses Puppeteer to fetch Oranje Kruis certificates and diplomas.
Originally created by Ruben Uijtdewilligen for EHBO Vereniging Roosendaal.

Usage

There is just one function, getCerts, and it takes two arguments. The first is the certificate number and the second is the certificate holder's last name without prefix.

import { getCerts } from '../index.js';
getCerts('12345678', 'Smith').then((certs) => {
    // [
    //     {
    //         name: 'Eerste Hulp',
    //         type: 'Diploma',
    //         received: '11-11-2011',
    //         expires: '11-11-2022'
    //     }
    // ]
});