Last active
January 27, 2017 04:57
-
-
Save vamsipavanmahesh/fe5f0c14161315ae00f3c2e9d3483204 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 ..?