Created
August 13, 2010 13:18
-
-
Save jocap/522857 to your computer and use it in GitHub Desktop.
Get the Jaiku timeline with user's API key using the old JSON API: http://api.jaiku.com/key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib, json | |
url = "http://%s.jaiku.com/contacts/feed/json" % username | |
params = {'user': username, 'personal_key': api_key} | |
result = urllib.urlopen(url, urllib.urlencode(params)).read() | |
data = json.loads(result) | |
title = data['title'] # Jaiku | Overview | |
# print timeline | |
for presence in data['stream']: | |
print presence['title'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment