Skip to content

Instantly share code, notes, and snippets.

@osa9
Created January 8, 2013 02:37
Show Gist options
  • Save osa9/4480594 to your computer and use it in GitHub Desktop.
Save osa9/4480594 to your computer and use it in GitHub Desktop.
in C program system("ruby twitter.rb hoge");
require 'twitter'
Twitter.configure do |config|
config.consumer_key = YOUR_CONSUMER_KEY
config.consumer_secret = YOUR_CONSUMER_SECRET
config.oauth_token = YOUR_OAUTH_TOKEN
config.oauth_token_secret = YOUR_OAUTH_TOKEN_SECRET
end
Twitter.update(ARGV[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment