Class: Bigcartel::API
- Inherits:
-
Object
- Object
- Bigcartel::API
- Defined in:
- lib/bigcartel/api.rb
Class Method Summary collapse
Class Method Details
.get(path, params = {}) ⇒ Object
7 8 9 |
# File 'lib/bigcartel/api.rb', line 7 def get(path, params = {}) normalize_response RestClient.get(api_url(path), headers.merge(params)) end |
.patch(path, options = {}) ⇒ Object
11 12 13 |
# File 'lib/bigcartel/api.rb', line 11 def patch(path, = {}) normalize_response RestClient.patch(api_url(path), .to_json, headers.merge(content_type: 'application/vnd.api+json', accept: 'application/vnd.api+json')) end |