|
|
- 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
|