Hess Energy Login
A module to login to the Hess Energy website using request. Upon successful login, a request cookie jar object is returned which can be used in subsequent requests
Installation
npm install -S git+ssh://git@bitbucket.org:competitiveenergy/hess-login.git
Usage
Call with an object that has username and password fields set. If the login is successful the second parameter of the callback will be the path to the authenticated cookie file on disk that can be used in subsequent requests
var hesLogin = // currentLogin is a customer login for the https://www.hessenergy.com/dashboard/unauthenticated.aspx websitevar currentLogin = username: 'fooUsername@gmail.com' password: 'barPassword'
Tests
# install the development dependencies npm install# run the tests npm test