3.1.1 • Published 8 years ago

@leisurelink/fees-client v3.1.1

Weekly downloads
1
License
-
Repository
github
Last release
8 years ago

Fees Client Overview

The purpose of this client is to provide a layer of abstraction on top of the Fees API.

Usage

import FeeClient from @leisurelink/fees-client;
let client = FeeClient(keyId, key, baseUrl);

Methods

Constructing

  • let client = FeeClient(host, keyId, key, logger)
  • baseUrl: fee api base URL, usually https://portal[-dev].leisurelink.com
  • keyId: trusted endpoint key id, ex: "my-api/self"
  • key: trusted endpoint key as a Buffer
  • logger:

    function print(it) { if (typeof (it) === 'string') { util.log(it); } else { util.log(util.inspect(it, false, 9)); } }

    var logger = { info: print, warning: print, error: print, debug: print };

removeFeeRelationsBySource

  • client.removeFeeRelationsBySource, params)
  • lang: the lang - typically en-US
  • feeId: the id of the fee
  • returns: `success: "OK"
  • May fail with 404 error if fee does not exist
3.1.1

8 years ago

3.1.0

8 years ago

3.0.0

8 years ago

2.0.0

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.5.1

8 years ago