[Pharo-project] JSON - Accessing Pharo on Twitter from within Pharo

Torsten Bergmann astares at gmx.de
Tue Nov 2 21:17:25 CET 2010


First load:

-------------------------------------------------------------------------
Gofer new
    renggli: 'omnibrowser';
    package: 'JSON';     
    load.
-------------------------------------------------------------------------

then evaluate:

-------------------------------------------------------------------------
|hashToFollow json root subs|
hashToFollow := 'pharo'.
json := Json readFrom: ('http://search.twitter.com/search.json?rpp=50&result_type=recent&lang=all&q=', hashToFollow) asUrl retrieveContents
				contentStream.
subs := json results collect: [:each | 
	HelpTopic title: (each at: 'created_at' ifAbsent: '')
	                 contents: (each at: 'text' ifAbsent: '')
].
root := HelpTopic named: 'Pharo on Twitter'.
root subtopics: subs.
HelpBrowser openOn: root
-------------------------------------------------------------------------

gives mixed results (not all related to pharo project)

If I try hashToFollow := 'pharoproject' it returns nothing
while the twitter channel is accessible at http://twitter.com/pharoproject?

Anyone know the correct hashToFollow for Pharo project only contents?

Thx
T.



-- 
Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief!  
Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail




More information about the Pharo-project mailing list