The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Smalltalk Daily 04/14/10: Using Twitter from Smalltalk

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
Smalltalk Daily 04/14/10: Using Twitter from Smalltalk Posted: Apr 14, 2010 6:38 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: Smalltalk Daily 04/14/10: Using Twitter from Smalltalk
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Today's Smalltalk Daily looks at how to use Twitter from Smalltalk. If you're looking for a particular topic, you can find it with the Media Search application on our site. Here's the script I used in the screencast:


"create settings file"
settings := TwitterClient.Settings new.
settings username: 'TwitterScreenNameHere'.
settings password: 'TwitterPasswordHere'.
settings saveTo: 'twitter_settings.ini'.

"get an interface"
model := TwitterModel new.

"get friend updates"
latestUpdates := model getFriendsUpdates.

"get Follower updates"
latestFollowers := model getFollowersUpdates.

"get the current trends"
trends := model getCurrentTrends.
daily := model getDailyTrends.
weekly := model getWeeklyTrends.

"user query"
args := UserQueryArgs new.
args screen_name: 'jarober'.
model showUser: args.

"get direct messages"
args := StatusListArgs new.
args per_page: 100.
model getDirectMessagesFor: args.

"set status"
model setStatusTo: 'From VisualWorks during today''s screencast'.

To watch, click on the viewer below:

If you have trouble viewing that directly, you can click here to download the video directly

You can also watch it on YouTube:

Technorati Tags: , ,

Read: Smalltalk Daily 04/14/10: Using Twitter from Smalltalk

Topic: Smalltalk Daily 04/12/10: Creating a Menu Previous Topic   Next Topic Topic: Industry Misinterpretations 183: Concentrated Goodness, Part 2

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use