Skip to content

Commit 853340d

Browse files
committed
Add branch to example
1 parent f40cbfb commit 853340d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ You will need a GitHub OAuth token with full repository access.
2222
The easiest way to create one of these is using [https://github.com/settings/tokens](https://github.com/settings/tokens)
2323

2424
```python
25-
from github_contents import GitubContents
25+
from github_contents import GithubContents
2626

2727
# For repo simonw/disaster-data:
2828
github = GithubContents(
2929
"simonw",
3030
"disaster-data",
31-
GITHUB_OAUTH_TOKEN
31+
token=GITHUB_OAUTH_TOKEN,
32+
branch="main"
3233
)
3334
```
3435
To read a file:

0 commit comments

Comments
 (0)