Skip to content

Instantly share code, notes, and snippets.

@carimura
Created April 19, 2012 08:39
Show Gist options
  • Select an option

  • Save carimura/2419720 to your computer and use it in GitHub Desktop.

Select an option

Save carimura/2419720 to your computer and use it in GitHub Desktop.
tweets = Twitter.search("IronMQ")
ironmq = IronMQ::Client.new(
"token"=>ENV["IRON_MQ_TOKEN"],
"project_id"=>ENV["IRON_MQ_PROJECT_ID"],
"queue_name"=>"tweets"
)
tweets.map do |tweet|
ironmq.messages.post("#{tweet.id}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment