docparse-fetch-bills-node

fetch bills from the docparse scraper api server

npm install docparse-fetch-bills-node
56 downloads in the last month

Docparse Fetch Bills

get all existing bill numbers for a given supplier code from the database

Installation

npm install -S docparse-fetch-bills-node

Usage

var fetchBills = require('docparse-fetch-bills-node')
var fetchData = {
  db: db, // a cradle db connection
  supplierCode: 'NGE' // Ngrid Electric Supplier Code
}
fetchBills(fetchData, function (err, reply) {
  if (err) {
    console.dir(err)
    return
  }
  console.dir(reply)
})

The reply will be an array of bill numbers. This array might be empty if there are no bills in the database for the input supplier code

npm loves you