@unsync/grdf-client
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

grdf-client

usage

the 2captcha_key is an api key from https://2captcha.com that is the default provider to solve captcha.

const client = new GrdfClient({
  'pdl': 'string',
  'password': 'string',
  'mail': 'string',
  '2captcha_key': 'string'
})

// all history
const allEnergyData = await client.getEnergyData(null)

// all history from a date
const partialEnergyData = await client.getEnergyData(dayjs('2024-01-01'))

Readme

Keywords

none

Package Sidebar

Install

npm i @unsync/grdf-client

Weekly Downloads

2

Version

1.1.6

License

MIT

Unpacked Size

10.3 kB

Total Files

13

Last publish

Collaborators

  • unsync