app/controllers/application_controller.rb
##
# Post request wrapper function
# returns a HTTPResponse object
#
Post request wrapper function
returns a HTTPResponse object
Post request wrapper function returns a HTTPResponse object
def post_request(uri, body, token)
    http = build_http(uri)
    request = Net::HTTP::Post.new(uri.request_uri, initheader = build_headers(token))
    request.body = body
    return http.request(request)		
  end
def post_request ( uri , body , token ) http = build_http ( uri ) request = Net :: HTTP :: Post . new ( uri . request_uri , initheader = build_headers ( token ) ) request . body = body return http . request ( request ) end
Post request wrapper function
returns a HTTPResponse object
Post request wrapper function returns a HTTPResponse object
uri
<not_specific>
body
<not_specific>
token
<not_specific>