- A Node.js Cowin Wrapper library to manage vaccination.
- Access to all endpoints
- Can use both Private/Public APIs
- With JSDoc
- Firstly clone the repo
git clone https://github.com/SwapnilSoni1999/cowin-wrapper.git
- Include the lib in your js file
const cowin = require('./cowin-wrapper')
(async () => {
const number = "Your 10 digit number"
const txnId = await cowin.sendOtp(number)
const otp = "Your otp"
const otp = await scanf('Enter OTP:')
const token = await cowin.verifyOtp(txnId, otp)
const benef = await cowin.getBeneficiaries(token)
console.log('Token', token)
console.log('Beneficiaries', benef)
process.exit()
})()
- Run the file
You can use test file to check if the api is working or not.
Swapnil Soni ©