You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
321 B

  1. Encoding.default_internal = 'UTF-8'
  2. require 'rubygems'
  3. require 'bundler/setup'
  4. require 'json'
  5. Bundler.require
  6. $config = IniFile.load('../.env')
  7. response = HTTParty.post "#{$config['global']['APP_URL']}/twitter/stream", {
  8. body: IO.read("tweet.json"),
  9. headers: {'Content-Type' => 'application/json'}
  10. }
  11. puts response