Added simple example.
authorJosh Roesslein <jroesslein@gmail.com>
Mon, 6 Jul 2009 04:14:15 +0000 (23:14 -0500)
committerJosh Roesslein <jroesslein@gmail.com>
Mon, 6 Jul 2009 04:14:15 +0000 (23:14 -0500)
example.py [new file with mode: 0644]

diff --git a/example.py b/example.py
new file mode 100644 (file)
index 0000000..2d5adfc
--- /dev/null
@@ -0,0 +1,11 @@
+from api import API
+
+# Create API object
+api = API()
+
+# Fetch public timeline
+p_timeline = api.public_timeline()
+
+# Print texts of statuses
+for status in p_timeline:
+  print status.text