Skip to content

Instantly share code, notes, and snippets.

@itopoid
Created March 1, 2012 12:56
Show Gist options
  • Save itopoid/1949682 to your computer and use it in GitHub Desktop.
Save itopoid/1949682 to your computer and use it in GitHub Desktop.
favorite
# encoding: utf-8
require 'rubygems'
require 'twitter'
Twitter.configure do |config|
config.consumer_key = ""
config.consumer_secret = ""
config.oauth_token = ""
config.oauth_token_secret = ""
end
tweets = Twitter.user_timeline("hogehoge", :count => 50 , :include_rts => true)
tweets.each do |tweet|
client = Twitter::Client.new
client.favorite_destroy(tweet.id)
end
# favoriteの場合  client.favorite_create(tweet.id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment