UNPKG

dnb-api

Version:
30 lines (26 loc) 442 B
/** * DNB TestCustomers API * * Does not require JWT authentication * * @param client to use */ class TestCustomers { constructor(client) { this.client = client this.basePath = '/testCustomers' } /** * Get test customers */ async getTestCustomers() { try { return await this.client.do .get(`${this.basePath}`) .then(obj => obj.json()) } catch (err) { throw err } } } module.exports = TestCustomers