hess-load-account-homepage

1.0.0 • Public • Published

Hess Load Account Homepage

Navigate to the account homepage on the the Hess Energy website https://hessenergy.com.

Installation

npm install -S hess-load-account-homepage

Usage

Login with a given username and password. THen call the load account homepage module. If the account homepage is loaded correctly, the module will return a cheerio object of the account homepage html

var performLogin = require('hess-login')
var loadAccountHomepage = require('hess-load-account-homepage')
var username = 'fooUsername'
var password = 'fooPassword'
var currentLogin = {
  username: username,
  password: password
}
performLogin(currentLogin, function (err, reply) {
  if (err) {
    inspect(err, 'error performing login')
    return
  }
  loadAccountHomepage(jar, function (err, $) {
    if (err) {
      inspect(err, 'error loading account homepage')
      return
    }
    // $ is a cheerio object of the loaded account homepage.
    inspect('account homepage loaded correctly')
  })
})

Tests

# install development dependencies
npm install
# run tests
npm test

Readme

Keywords

none

Package Sidebar

Install

npm i hess-load-account-homepage

Weekly Downloads

1

Version

1.0.0

License

BSD

Last publish

Collaborators

  • clewfirst