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
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:
Install the package — Installation
Initialize a
TaskManagerAppinstance with your App Key and API URL.Call
getTasks(userID)to retrieve available tasks for a user, then callgoProcessandclaimProcessto 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