Simple javascript based activity tracker for spluga
Activity tracker for the spluga ecosystem. More info about spluga can be found at spluga.io. Spluga is based on Omnia software platform.
import createTracker from "spluga-tracker-js";
const option = {...};
const tracker = await createTracker(option)
await tracker(quantity,unity);
- activityEndpoint: spluga endpoint to record activity (required)
- clientId: spluga clientId (required)
- clientSecret: spluga client secret (required)
- player: spluga player name (required)
- tokenEndpoint: spluga endpoint to autheticate api request (required)
- raiseError: [false] if false all error from the library are suppressed
- verbose: [false] enable stdout logging or not
- name: [Api Integrations] activity name
The library is designed to eventually fail silently, to avoid interference in the functionalities of the hosting software.
Feel free to fork and contribute. Made with love in mondora.