Skip to content

Instantly share code, notes, and snippets.

@ymrl
Created April 21, 2011 17:58
Show Gist options
  • Save ymrl/935108 to your computer and use it in GitHub Desktop.
Save ymrl/935108 to your computer and use it in GitHub Desktop.
#coding:UTF-8
require 'twitter'
require 'kconv'
input = ARGF.gets.toutf8
Twitter.configure do |config|
config.consumer_key = '**************'
config.consumer_secret = '******************************'
config.oauth_token = '******************************'
config.oauth_token_secret = '****************************'
end
client = Twitter::Client.new
client.update input
puts input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment