gocowin

command module
v0.0.0-...-5c4baa6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

README

gocowin

Golang based API bindings for CoWIN project.

Automatically find COVID-19 vaccine slots in India!!

This project also includes a compiled binary that can be used on Windows, for checking slot availability of COVID-19 vaccines in India.

In addition, you can clone the source code & build your own binary on Windows or Linux platform using:

go build

CLI Examples

In order to fetch list of state codes, use:

./gocowin.exe --states

In order to fetch district codes of a state, use:

./gocowin.exe --stateId "12"

In order to check COVID-19 vaccine availability by districtId and date, use:

./gocowin.exe --districtId "188" --date "15-05-2021"

In order to check COVID-19 vaccine availability by pin and date, use:

./gocowin.exe --pin "110005" --date "21-05-2021"

API Examples

import (
	"fmt"
	"github.com/prashantcfc/gocowin/api"
)

func main() {
	res, err := api.GetSessionsbyDistrictIdAndDate("141", "15-05-2021")
	if err != nil {
		return
	}
	fmt.Println(res)
}

Contributions

Contributions to this project are welcome. Let's build a stronger community together!!

Support

Please raise github issues incase of any concerns. This is a 'side' project & developer might take time to revert back.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL