node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey ยป

mpath-client

MPath API - The Node.JS Client

Installation

npm install mpath-client

Usage

mpath = require("mpath-client").init("http://api.conductrics.net/")

Quick Start

To understand what all the options are, please see the Quick Start Guide.

The driver is a simple REST client.

Client Methods

  1. getDecisions(apikey, sessionCode, ownerCode, agentCode, pointCode, callback)
  2. sendReward(apikey, sessionCode, ownerCode, agentCode, goalCode, callback)
  3. expireSession(apikey, sessionCode, ownerCode, callback)
  4. createAgent(apikey, ownerCode, agentCode, agentJson, callback)
  5. createApiKey(email, ownerCode, callback)