Happy !

arturozambrano / TwitterRoassalPlayGround

Project infos

License MIT
Tags
Creation date 2014-01-09
Website

Monticello registration

About TwitterRoassalPlayGround

Working on Pharo5 (checked on 2017 03 17)

Twitter Connection package

With Twitter-Connection you can possible

  • Download tweets using Streaming and REST API
  • Download user's information
  • Ask twitter for the relationship between 2 users.
  • Get the profile picture of the users

Installation

Gofer it
url: 'http://smalltalkhub.com/mc/arturozambrano/TwitterRoassalPlayGround/main';
package: 'ConfigurationOfTwitterConnection';
load.
(Smalltalk at: #ConfigurationOfTwitterConnection) project latestVersion load.

Login

Please see the on time manual login for Twitter here: Login

Downloading Tweets

 retriever:= StreamingRetriever login: TwitterLogin restoreExistingAccessToken. 
 retriever  tweetsForHashtag: '#topic' notify: collection callback: #add:.
 retriever stop. 


 (RESTRetriever login: TwitterLogin restoreExistingAccessToken ) 
             tweetsForHashtag: '#hashtag' notify:   object callback: #append:.
  RESTRetriever stopAll. "useful if you have many retrievers"