Installation

Install the core package

npm install make-traffic-integration-core

If you are using React, also install the wrapper:

npm install make-traffic-integration-react-wrapper

Initialize the library

Create a single TaskManagerApp instance at the top level of your application. This instance should be shared — do not create multiple instances.

import { TaskManagerApp } from 'make-traffic-integration-core';

const taskManager = new TaskManagerApp({
  apiUrl: 'YOUR_API_URL',
  appKey: 'YOUR_APP_KEY',
});

await taskManager.init();

Replace YOUR_API_URL and YOUR_APP_KEY with the values from Settings → Integration in the console.

circle-info

Call taskManager.init() once during your application startup, before making any other library calls. It establishes the session with the platform.

Verify the connection

After initialization, call getTasks with a user identifier to confirm the library is connected:

If you see the tasks you configured in the console returned here, the integration is working correctly.


Next: Core SDK reference

Last updated