conductrics-api
Client for the Conductrics API (www.conductrics.com)
Last updated 6 years ago by jldailey .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install conductrics-api 
SYNC missed versions from official npm registry.

Conductrics API

Installation

npm install conductrics-api

Usage

Conductrics = require("conductrics-api")

# Set an optional global API url
Conductrics.baseUrl = "https://api.conductrics.com"

agent = new Conductrics.Agent("my-agent-name")
  .apiKey("my-api-key")
  .ownerCode("my-owner-code")

# 1. Make decisions.
agent.decide sessionId, [ 'a', 'b', 'c'] , (err, decision) ->
  assert decision in [ 'a', 'b', 'c' ]

# 2. Send rewards.
agent.reward sessionId, 1.2, (err, result) ->
  assert result is 1.2

# 3. Profit (literally)

Please see the full documentation, for more information on everything you can do with the Conductrics API.

Current Tags

  • 0.1.3                                ...           latest (6 years ago)

3 Versions

  • 0.1.3                                ...           6 years ago
  • 0.1.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |