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

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