Module: Connect::HTTPService::Request
- Includes:
- Connection
- Included in:
- BotApi, InformationApi
- Defined in:
- lib/connect/http_service/request.rb
Constant Summary
Constants included from Connection
Instance Method Summary collapse
Methods included from Connection
Instance Method Details
#get(path, client, params = {}) ⇒ Object
10 11 12 |
# File 'lib/connect/http_service/request.rb', line 10 def get(path, client, params = {}) respond_with(connection(client).get(path, params)) end |
#post(path, client, params = {}, files = {}) ⇒ Object
14 15 16 |
# File 'lib/connect/http_service/request.rb', line 14 def post(path, client, params = {}, files = {}) respond_with(connection(client).post(path, JSON.dump(params))) end |