Class: PurchaseKit::ApiClient

Inherits:
Object
  • Object
show all
Defined in:
lib/purchasekit/api_client.rb

Overview

HTTP client for the PurchaseKit SaaS API.

Used internally by Product and Purchase::Intent to communicate with the PurchaseKit backend.

Instance Method Summary collapse

Instance Method Details

#get(path) ⇒ Object



10
11
12
# File 'lib/purchasekit/api_client.rb', line 10

def get(path)
  request(:get, path)
end

#post(path, body = {}) ⇒ Object



14
15
16
# File 'lib/purchasekit/api_client.rb', line 14

def post(path, body = {})
  request(:post, path, body)
end