Changes

Jump to: navigation, search

C4LN 2012: Intro to the Twitter API

20 bytes added, 16:27, 24 May 2012
m
ws
twitter = TwitterConnection.new()
at (interval) {
msg = fetch_external_resource;
twitter = TwitterConnection.new()
mentions = twitter->mentions( since_id => last_mention )
at (interval) {
foreach mention in mentions {
}
}
sub reply(mention) {
msg = fetch_external_resource()
msg = '@' + mention.sending_user->screen_name + ' ' + msg
msg.truncate_to_140_chars
22
edits

Navigation menu