Skip to content

Commit b5d5635

Browse files
committed
Merge pull request #1 from internap/readme-usage
Include example in README
2 parents f6cf0b4 + cbf1e57 commit b5d5635

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
Ubersmith API Client for Python.
1+
# Ubersmith API Client for Python
22

33
.. image:: https://travis-ci.org/internap/python-ubersmithclient.svg?branch=master
44
:target: https://travis-ci.org/internap/python-ubersmithclient
55

66
.. image:: https://img.shields.io/pypi/v/ubersmith_client.svg?style=flat
7-
:target: https://pypi.python.org/pypi/ubersmith_client
7+
:target: https://pypi.python.org/pypi/ubersmith_client
8+
9+
# Usage
10+
11+
>>> import ubersmith_client
12+
>>> api = ubersmith_client.api.init('http://ubersmith.com/api/2.0/', 'username', 'password')
13+
>>> api.client.count()
14+
u'264'
15+
>>> api.client.latest_client()
16+
1265

0 commit comments

Comments
 (0)