Update README.md to document token-based authentication.
This commit is contained in:
Родитель
d75c8c01c5
Коммит
ce3da282f2
|
@ -29,13 +29,18 @@ can read the docs and immediately know how to do the examples via
|
|||
## Example App
|
||||
|
||||
1. First, instantiate a `Github` object, passing it your username and
|
||||
password if an authenticated session is desired.
|
||||
password or a token if an authenticated session is desired.
|
||||
|
||||
```python
|
||||
>>> from agithub import Github
|
||||
>>> g = Github('user', 'pass')
|
||||
```
|
||||
|
||||
```python
|
||||
>>> from agithub import Github
|
||||
>>> g = Github(token='token')
|
||||
```
|
||||
|
||||
2. When you make a request, the status and response body are passed back
|
||||
as a tuple.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче