Get email once have vaccine slots in center of your choice of your area
link to download console app. for same as below
https://github.com/sunitkanyan/CowinAvailalitySlotEmailCSharp
CowinAvailalitySlotEmailCSharp
can enhance it as per your requirement -
this code can run as scheduled job and can suite you email on availablity of slot as per hospital name nearby you just need to set pincode.
Provide list of center with slots
you can set it as scheduled job
set hit every 5 mins and it will sent you email once slots in your pin .
Change pin in line
var client = new RestClient(string.Format("https://cdn-api.co-vin.in/api/v2/appointment/sessions/calendarByPin?pincode=122001&date={0}-{1}-2021",day, month)); |
|
|
Change email setting email address and pwd .. and enable less secure app setting for this google account
smtp.Credentials = new NetworkCredential("testemail@gmail.com", "ac12345677");
To email address mail.To.Add("testemail123@gmail.com");
Drop email to use as