Integration

The Make Traffic integration library connects your application to the platform. It handles task fetching, processing, and event tracking on behalf of your users — you provide the user context, the library manages communication with the platform.

Packages

Package
Purpose

make-traffic-integration-core

Framework-agnostic core library. Works in any JavaScript environment.

make-traffic-integration-react-wrapper

React-specific wrapper with a ready-made provider and hooks.

Start with the core library regardless of your framework. If you use React, the wrapper removes boilerplate.

What you need

Before integrating, ensure you have:

  • An application created in the console.

  • Your App Key — found under Settings → Integration for your application.

  • The API URL for your environment — also available in the integration settings.

Quick overview

Integration follows three steps:

  1. Install the package — Installation

  2. Initialize a TaskManagerApp instance with your App Key and API URL.

  3. Call getTasks(userID) to retrieve available tasks for a user, then call goProcess and claimProcess to track task interactions.

The library emits events you can subscribe to for reacting to task state changes in your UI.


Continue with Installation.

Last updated