Skip to content
This repository has been archived by the owner on Oct 11, 2021. It is now read-only.

Is there a game of baseball that is scheduled to occur today in which a participant is the squad known as the San Francisco Giants?

License

Notifications You must be signed in to change notification settings

markpasc/isthereagiantsgame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Is there a Giants game?

A single serving web site for whether there's a game of San Francisco Giants baseball on a day.

See it at isthereagiantsga.me.

Other days

You can ask about some other days besides today by including that day in the URL. For example, go to http://isthereagiantsga.me/tomorrow to see if there's a game tomorrow. Days you can use are:

  • today
  • tomorrow
  • a day of the week such as tuesday; the current day of the week refers to that day next week
  • a numeric date in YYYYMMDD format

API

Is there a Giants game? provides an API at:

http://isthereagiantsga.me/api/<day>

For day specify the day you're inquiring about, as on the regular website. (Unlike the web site, you must specify today to find out if there's a game today.)

The status code of the response shows whether there's a game that day:

  • 200 OK: there is a game that day
  • 204 No Content: there is a game, but it's an away game
  • 404 Not Found: there is not a game that day

About

Is there a game of baseball that is scheduled to occur today in which a participant is the squad known as the San Francisco Giants?

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages