Module: Restiny::Api::Base

Included in:
Authentication, Manifest, Membership, Profile, Search, Stats
Defined in:
lib/restiny/api/base.rb

Instance Method Summary collapse

Instance Method Details

#api_get(endpoint:, params: {}) ⇒ Object



18
19
20
# File 'lib/restiny/api/base.rb', line 18

def api_get(endpoint:, params: {})
  api_connection.get(endpoint, params, token_header).body
end

#api_post(endpoint:, params: {}) ⇒ Object



22
23
24
# File 'lib/restiny/api/base.rb', line 22

def api_post(endpoint:, params: {})
  api_connection.post(endpoint, params, token_header).body
end