0.1.1 • Published 9 years ago

bitrefill v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

Bitrefill NodeJS client

A NodeJS client for the Bitrefill API. Bitrefill lets you pay phone bills in 127 countries.

Website

https://www.bitrefill.com/

Documentation

http://docs.bitrefill.apiary.io/#

Install

$ npm install bitrefill

Test

The tests are run using mocha, and expect active API keys to be present in a file named cfg.json. This cfg.json file should be one level above the test directory. Usage:

Currently all tests pass most of the time, but sometimes there are timeouts. Last results:

$ mocha -t 5000

  bitrefill
    ✓ get inventory (1690ms)
    ✓ look up a Digicel Panama number (1450ms)
    ✓ Get a quote for a Digicel Panama number (2305ms)
    ✓ look up a Digicel Panama order status (3840ms)


  4 passing (9s)

Configuration

To configure, pass options to the Bitrefill function formatted like shown in example_cfg.json. Note that it should not actually be json encoded. Example:

Bitrefill = require(bitrefill);
cfg = {"key":"", "secret":"", "url": "api.bitrefill.com/v1/"};
bitrefill = Bitrefill(cfg);
0.1.1

9 years ago

0.1.0

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago