Skip to content

npm package. Get Russian check info from qr code string

Notifications You must be signed in to change notification settings

SetSplin/qr-check-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qr-check-info

Get Russian check info using string from qr code

NPM Version

Install

Via npm

npm i -S qr-check-info

Via yarn

yarn add qr-check-info

Usage

To get info you need to register in mobile app.

import CheckInfoGetter from 'qr-check-info';

const qr_string =
  't=<number>&s=<number>&fn=<number>&i=<number>&fp=<number>&n=<number>'; // string from qr code

const checkInfo = new CheckInfoGetter({
  username: '+79999999999', // phone that you used to register
  password: '000000', // password that you received in sms
  delay: 500, // delay between queries (to get info getter makes two queries)
  // is necessary so as not to get an error from the server
})

checkInfo.get(qr_string).then(
  info => {
    info.items.forEach(el => console.log(el));
  }
);

License

MIT

About

npm package. Get Russian check info from qr code string

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published