Update README.md to document token-based authentication.

This commit is contained in:
Uriel Corfa 2015-03-23 21:15:02 -07:00
Родитель d75c8c01c5
Коммит ce3da282f2
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -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.