open-source-ios-apps/.github/osia_tweet_clean.rb

20 lines
526 B
Ruby
Raw Normal View History

2016-08-15 22:35:44 +03:00
require 'delete_my_tweets'
c = {
"consumer_key" => "X7TNI7gi1Bo3l3hRwShZr6Q5l",
"consumer_secret" => "clafmSRaf7AnnusNMaZEhMajEESfhw3XTGBfTwlfgBcjwRSHcn",
"access_token" => ENV['TWITTER_ACCESS_TOKEN'],
"access_token_secret" => ENV['TWITTER_ACCESS_TOKEN_SECRET'],
"filter" => {
"exclude" => [
"Add",
"add"
]
}
}
2016-08-15 22:45:51 +03:00
DeleteMyTweets.twitter_delete(c) do |o|
2016-08-15 22:35:44 +03:00
puts o
end
puts 'all done 🐤'