Client for mPath Learning API


npm install mpath-client


mpath = require("mpath-client").init("")

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)