Class: DaashubAPI::Request

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/daashub_api/request.rb

Class Method Summary collapse

Class Method Details

.perform_get(endpoint, access_token, options = {}) ⇒ Object



12
13
14
# File 'lib/daashub_api/request.rb', line 12

def perform_get(endpoint, access_token, options = {})
  perform(access_token) { get(endpoint, options) }
end

.perform_post(endpoint, access_token, options = {}) ⇒ Object



16
17
18
# File 'lib/daashub_api/request.rb', line 16

def perform_post(endpoint, access_token, options = {})
  perform(access_token) { post(endpoint, options) }
end