I’m looping through punch of users and getting their user_timeline. The code was working fine till two days ago but just started getting Twitter::Error::Unauthorized: Not authorized error all of the sudden.
Here is the code
client = initialize_twitter
@tweets = client.user_timeline(username,{:count => 200})
def self.initialize_twitter
Twitter::REST::Client.new do |config|
config.consumer_key = "xxxx"
config.consumer_secret = "xxxx"
config.access_token = "xxxx"
config.access_token_secret = "xxxx"
end
end