bevoegdheden

package module
v0.0.0-...-886c44e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 16 Imported by: 1

README

KVK Bevoegdheden (Golang lib)

GO library that fetches an extract from the KVK Dataservice and

  • extracts all fields from it, that are relevant for a KVK 'Bevoegdheid' or 'Machtiging' and,
  • adds interpretatie section, that reflects someone's 'bevoegdheid' derived from those fields.

For more information refer to the 'bevoegdheden' manual

Access to KVK Dataservice

To get access to the KVK Dataservice, you need a certificate (OV or EV). Assuming you have got that certificate in p12 format: Extract private key PKCS1 format from p12 file

openssl pkcs12 -in yourP12File.pfx -nocerts -out private_key_PKCS1.pem

Extract certificate from p12 file

openssl pkcs12 -in yourP12File.pfx -clcerts -nokeys -out certificate.pem

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInschrijvingNotFound = errors.New("inschrijving niet gevonden op basis van het KVK nummer")
View Source
var ErrInvalidInput = errors.New("KVK nummer of persoonsgegevens kloppen niet")

Functions

func GetBevoegdheid

func GetBevoegdheid(kvkNummer string, identityNP models.IdentityNP, cert string, key string, useCache bool, env string) (*models.BevoegdheidResponse, error)

func GetInschrijving

func GetInschrijving(kvkNummer, cert, key string, useCache bool, env string) (*models.OphalenInschrijvingResponse, error)

func SearchCompanies

func SearchCompanies(searchTerm string, apiKey string, useCache bool) ([]byte, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL