Avola Decision client to execute and synchronize your decisions
Last updated 2 years ago by davn .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @avoladecision/avola-client 
SYNC missed versions from official npm registry.

npm logo Build Status

avola-client :package:

Avola Decision client package to execute and synchronize your decisions with an ease. This package is for any developer looking for an easy solution to connect Avola Decision with their software. Also check out our other packages and definitely read our api documentation if something is not clear.



npm install @avoladecision/avola-client --save

todo: yarn add avola-client bower install avola-client --save



var Avola = require('@avoladecision/avola-client');

// Create client with base url of the Avola Decision api and your apikey
var avolaclient = new avola.AvolaClient('https://free.api.avo.la', 'replacewithclientid', 
                                               'replacewithclientsecret', 'optionaltokenhost');

client.getSettings().then((settings) => {
  console.log("settings", settings);
  var mysettings = settings;


import { AvolaClient } from '@avoladecision/avola-client';

let avolaclient = new Avolaclient('https://free.api.avo.la', 'replacewithclientid',
                                              'replacewithclientsecret', 'optionaltokenhost');

avolaclient.getSettings().then((settings) => {
  console.log("settings", settings);
  let mysettings = settings;
Output should be the settings of the Api

Available methods

name description In Free?
getSettings() Will return the settings of the API. This describes certain endpoints and info. :white_check_mark:
getDecisionServices(decisionServiceId?: number) Will return you the list and details of all decision services and their version without parameters. With decisionServiceId: will return you the versions and details of a specific decision service.
getDecisionServiceVersions(decisionServiceId: number, version: number) Will return you the details of a specific decision service version.
executeDecisionServiceVersion(executionRequest: Execution.ApiExecutionRequest) Execute a descision service version, this returns all conclusions, from all decisions in the decision service.
executeDecisionFree(freerequest: Execution.FreeExecutionRequest) Execute a decision. This function is only available if you are a Free user and doesn't support the full power of versioned execution. :white_check_mark:

Contribute :star: :star: :star:

Want to contribute to this package?

  1. Clone the repo

  2. Install dependencies

npm install
  1. Edit files in lib/

  2. Build

npm run build
  1. Create a pull request

Test & Build

npm run test

To build and run the tests

npm run buildtest

Current Tags

  • 1.0.3                                ...           latest (2 years ago)

1 Versions

  • 1.0.3                                ...           2 years ago
Maintainers (1)
Today 0
This Week 1
This Month 3
Last Day 1
Last Week 1
Last Month 1
Dependencies (4)
Dev Dependencies (5)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |