New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

conductrics-api

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conductrics-api

Client for the Conductrics API (www.conductrics.com)

latest
Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 28 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts