1.0.0 • Published 3 years ago

edoctor-talon-checker v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

eDoctor talon checker

npm.io

Tool for check talon (a doctor's appointment card) availability,on Belarus online registry eDoctor hospital info system

Install

npm i edoctor-talon-checker

Usage

import { checkTalon } from 'edoctor-talon-checker'

setInterval(async () => {
  const { count } = await checkTalon({
    // url
    url: 'http://178.124.171.86:8081/4DACTION/TalonyWeb_TalonyList',

    // form data
    form_data: { Check25: 'on' },
  })

  console.log(`talons available: ${count}`)
}, 1000 * 5000)

Example apps:

How to get url and FormData

for example:

  1. Go to site and open dev tools in Network tab, select doctor on site and send data, see headers

npm.io

TODO

  • method to auto get and parse params

License

MIT reslear