-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add api_calls testing resource, export JSON
- Loading branch information
Showing
3 changed files
with
5,158 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash -e | ||
|
||
set -x | ||
|
||
cd "$(dirname "$0")" | ||
|
||
# Get games by day (365 calls/year) | ||
curl https://api-web.nhle.com/v1/schedule/2023-09-23 | jq | tee nhl_api_schedule_daily_league.json | wc | ||
# output: 3891 6943 115479 | ||
|
||
# Get games by team by month (32 x 12 = 384 calls/year) | ||
curl -X GET "https://api-web.nhle.com/v1/club-schedule/DET/month/2023-12" | jq | tee nhl_api_schedule_monthly_team.json | wc | ||
# output: 1080 1924 28420 |
Oops, something went wrong.