Initialize DanubeClient

The package exports a DanubeClient class. When instantiating it, you will have to provide your danube.ai API key. After that you are ready to go.

const { DanubeClient } = require('danube-sdk');

// Initialize DanubeClient with your API key.
const danubeClient = new DanubeClient(
  'my-api-key',
);

Optionally you can also specify an API url (location where the API is running) as a second parameter. This will default to https://api.danube.ai/.