@pi-team-mn/frontoffice-client
v2.1.0
Published
Client library for FrontOffice
Downloads
6
Keywords
Readme
FrontOffice Client
A client library to talk to frontoffice
Example
import { envkey } from '@pi-team-mn/envkey/lib/envkey';
import { Configuration, ConfigurationParameters, PersoonsgegevensApiFp } from '@pi-team-mn/frontoffice-client';
function buildPersoonsGegevensApi() {
// get params
const baseurl = envkey('FO_URL');
const username = 'MDTPI';
const password = envkey('FO_PASSWORD');
// Build configuration instance
const configParams: ConfigurationParameters = {
username,
basePath: baseurl,
password
};
const config = new Configuration(configParams);
// return
return PersoonsgegevensApiFp(config);
}