Skip to content

Repository files navigation

AZStocker

GitHub go.mod Go version (subdirectory of monorepo) GitHub Workflow Status License Go Reference

AZStocker leverages data from AZ GFD's Stocking Schedule to provide on-demand information about fish stocking in Arizona.

Check it out at https://azstocker.com!

How To

Install using go install or cloning this repository:

go install github.com/calvinmclean/azstocker/cmd/azstocker@latest

Get API Key

First, a Google API key is necessary to access the stocking schedule Google Sheet.

Follow these instructions from Google to setup a developer account, then get an API key instead of the Oauth credentials file.

Set the API key as the API_KEY environment variable or supply as a CLI flag with --api-key

Run CLI

# get the last and next Winter stocking dates for the Lower Salt River and Rose Canyon Lake
azstocker get -p winter -w "lower salt river" -w "rose canyon lake" --next --last

Run Server

# run the server
azstocker server

# use curl to get the last and next stocking dates for all CFP waters
curl 'localhost:8080/cfp?next=true&last=true&showAll=true'

About

Easily get on-demand information about fish stocking in Arizona

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages