module Request
Public Instance Methods
post(method, body)
click to toggle source
# File lib/request.rb, line 4 def post(method, body) data = HTTParty.post("https://api.telegra.ph/#{method}", body: body).parsed_response return data['result'] if data['result'] data end