BYK/pyresto — pull request #26 by BYK (2012-08-07 15:34:08+00:00)
Title: Add auth support

Add simple auth support to pyresto and add github.Self to demonstrate this feature.

from pyresto.apis import github
from requests.auth import HTTPBasicAuth
github.GitHubModel._auth = HTTPBasicAuth('YourUserName', 'YourPassword')
me = github.Self.get()
me.name # Your Name, yay!