add example usage
This commit is contained in:
parent
3eb0271f39
commit
05353ccec4
14
README.md
14
README.md
|
@ -33,6 +33,20 @@ games. Supply the game's PK (which can be retrieved with `mlblive schedule`) to
|
|||
receive updates as they happen, without needing to blindly query the `game`
|
||||
endpoint.
|
||||
|
||||
### Example
|
||||
Use `mlblive schedule` to get the game PK(s) for today's Reds game:
|
||||
```
|
||||
mlblive schedule -t cin
|
||||
```
|
||||
Optionally, use `jq` to filter this output to *just* the game PK(s):
|
||||
```
|
||||
mlblive schedule -t cin | jq '.dates[].games[].gamePk'
|
||||
```
|
||||
Then, pass a PK to get live updates:
|
||||
```
|
||||
mlblive subscribe -g <gamePk>
|
||||
```
|
||||
|
||||
## Disclaimer
|
||||
This program and its author are not affiliated with MLB. Content supplied by
|
||||
MLB's Stats API is copyright 2024 MLB Advanced Media, L.P., and use of any
|
||||
|
|
Loading…
Reference in New Issue