Skip to content

Instantly share code, notes, and snippets.

@yoko
Created July 10, 2010 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save yoko/470838 to your computer and use it in GitHub Desktop.
Save yoko/470838 to your computer and use it in GitHub Desktop.
#!ruby
require 'rubygems'
require 'twitter'
require 'pit'
exit unless ARGV[0]
config = Pit.get('twitter', :require => {
'username' => 'username',
'password' => 'password',
});
httpauth = Twitter::HTTPAuth.new(config['username'], config['password'])
client = Twitter::Base.new(httpauth)
data = client.update(ARGV[0])
puts "http://twitter.com/#{config['username']}/status/#{data.id}"
sleep 5
client.status_destroy(data.id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment