Skip to content

Commit

Permalink
add example back to README
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtowns committed Mar 20, 2015
1 parent b356a90 commit 4a4a3c3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,13 @@ BeanBag
=======

BeanBag is a simple module that lets you access REST APIs in an easy
way. See `http://beanbag.readthedocs.org/` for more information.
way. For example:

>>> import beanbag
>>> github = beanbag.BeanBag("https://api.github.com")
>>> watchers = github.repos.ajtowns.beanbag.watchers()
>>> for w in watchers:
... print(w["login"])

See `http://beanbag.readthedocs.org/` for more information.

0 comments on commit 4a4a3c3

Please sign in to comment.