Skip to content

Instantly share code, notes, and snippets.

@vamsipavanmahesh
Last active January 27, 2017 04:57
Show Gist options
  • Save vamsipavanmahesh/fe5f0c14161315ae00f3c2e9d3483204 to your computer and use it in GitHub Desktop.
Save vamsipavanmahesh/fe5f0c14161315ae00f3c2e9d3483204 to your computer and use it in GitHub Desktop.
#prerequisite: gem install twitter
require 'twitter'
client = Twitter::REST::Client.new do |config|
config.consumer_key = ""
config.consumer_secret = ""
config.access_token = ""
config.access_token_secret = ""
end
i= 0
loop do
response = client.update("complaint number xxxx-xxx-xx, change my billing cycle, @reputedBank, requests made- #{i}")
i = i + 1
puts "It sent #{i}th tweet"
sleep(100)
end
@vamsipavanmahesh
Copy link
Author

vamsipavanmahesh commented Jan 27, 2017

I am getting this ,
Application cannot perform write actions. Contact Twitter Platform Operations through https://support.twitter.com/forms/platform (Twitter::Error::Forbidden)

After the 21st tweet it sent. How to get around this ;). I want to send more tweets, any techniques you guys followed ..?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment