module SHOUTCLOUD

Constants

VERSION

Public Class Methods

UPCASE(input) click to toggle source
# File lib/SHOUTCLOUD.rb, line 8
def self.UPCASE(input)
  response = HTTParty.post 'http://API.SHOUTCLOUD.IO/V1/SHOUT',
                           body: JSON.generate({ "input" => input }),
                           headers: { "Content-Type" => "application/json" }
  response_hash = JSON.parse(response.body)

  raise WHOOPS if response.code != 200

  response_hash["OUTPUT"]
end