const axios = require('axios') const crypto = require('crypto-js') const secret = "U2FsdGVkX1+TPSV7/E3PENx8ObiaQ9mIov/NO0Ry1mt5O8Awl1Ix+kX68wcBDbBTODj4Ejy3KkeW3n8ZqYhlqA=="; console.log( crypto.AES.encrypt( "b5cab167-7977-4df1-8027-a63aa144f04e", "CoWIN@$#&*(!@%^&" ).toString() ); async function schedule(id, sesID, dose, time) { const res = await axios({ method: "POST", url: "https://cdn-api.co-vin.in/api/v2/registration/beneficiary/new", data: { secret: secret, }, headers: { accept: "application/json", "Accept-Language": "en_US", "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36", }, }); return res.data; } (async () => { const res = await schedule('1', '1', '1', '1') })()