node-fpl-api
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

FPL API

This is a really simple typescript/node module for retreiving a days power consumption and cost from FPL.

Thanks to https://github.com/Klathmon/python-fpl-api for the original reverse engineering work.

Warning: This uses undocumented APIs and could break at any moment.

Usage

import FPLAPI from "node-fpl-api";

const main = async () => {
    const api = new FPLAPI("user@name.com", "password");
    const account = await api.login();

    const consumption = await api.getDailyConsumption(account!, "20191110", "20191111");

    console.log(JSON.stringify(consumption));
}

main();

Readme

Keywords

none

Package Sidebar

Install

npm i node-fpl-api

Weekly Downloads

9

Version

0.2.0

License

MIT

Unpacked Size

13.3 kB

Total Files

11

Last publish

Collaborators

  • keslerm