how to create your own cowin availability notification and checker #linuxtopic
Lokesh Carpenter
Server Reliability Engineer ( SRE ) with 13 Years of Experience | Linux | DevOps Tools | AWS | Ansible | GIT | SSL Certificate | Lift & Shift
In this tutorial we will learn, how to use REST API in Linux box, for this topic we have Cowin API and we will set alerts using this cowin API once available.
Prerequisite :
1 - Linux Box -
2 - Internet
2 - Mail configuration
3 - Cowin API
4 - Curl
Linux Box - I'm using a CentOS 7 for this tutorial and it is hosted in my laptop and connected to Internet for API Calling and sending a email.
We can also use cloud box like AWS / Azure / Google cloud. who can run 24/7 for notification.
cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
Cowin API
https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/findByPin
In the above api we provide below input
- pincode
- date
- age
curl "https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/findByPin?pincode=455115&date=29-05-2021"
Cloud Architect and DevOps at Publicis Sapient
3 年Tika le