Skip to content

Commit

Permalink
Updated docs to add json() example
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Crom authored and Benjamin Crom committed Jan 10, 2018
1 parent bc2b4c2 commit f0e7165
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Fetch an object which contains metadata and events for a single MLB game.
```python
import baseball
game_id, game = baseball.get_game_from_url('2017-11-1', 'HOU', 'LAD', 1)
game_dict = game._asdict()
game_json_str = game.json()
```
Write scorecard as SVG image:
```python
Expand Down

0 comments on commit f0e7165

Please sign in to comment.