source: de.wigbels.ruby/rmallyourtweets/rmallyourtweets.rb@ fc1853a

Last change on this file since fc1853a was fc1853a, checked in by njw <njw@…>, 16 years ago

added remove all your tweets

  • Property mode set to 100644
File size: 353 bytes
Line 
1#!/usr/bin/env ruby
2
3require 'rubygems'
4require 'activesupport'
5require 'twitter'
6
7
8# foo
9httpauth = Twitter::HTTPAuth.new('YOUR_USER', 'YOUR_PASSWORD')
10twitter = Twitter::Base.new(httpauth)
11
12# bar
13twitter.user_timeline("since:2004-01-14").each do |s|
14 twitter.status_destroy(s.id)
15 puts "Deleted tweet: [#{s.id}] \"#{s.text}\" (#{s.created_at})"
16end
Note: See TracBrowser for help on using the repository browser.