From e6f275dee35aa4471ceb36d320c1d1a52825cc54 Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Sun, 5 Jul 2009 23:14:15 -0500 Subject: [PATCH] Added simple example. --- example.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 example.py diff --git a/example.py b/example.py new file mode 100644 index 0000000..2d5adfc --- /dev/null +++ b/example.py @@ -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 -- 2.25.1