Module: Epages::REST::Miscellaneous
Overview
implement the calls in developer.epages.com/apps/api-reference/resource-miscellaneous.html
Instance Method Summary collapse
-
#currencies ⇒ Object
implements the call developer.epages.com/apps/api-reference/get-shops-shopid-currencies.html.
-
#info(options = {}) ⇒ Object
implements the call developer.epages.com/apps/api-reference/get-shops-shopid.html.
-
#locales ⇒ Object
implements the call developer.epages.com/apps/api-reference/get-shops-shopid-locales.html.
-
#product_suggestions_for(query, options = {}) ⇒ Object
implements the call developer.epages.com/apps/api-reference/get-shops-shopid-search-product-suggest.html.
-
#watched_products(options = {}) ⇒ Object
implements the call developer.epages.com/apps/api-reference/get-shops-shopid-watched-products.
Methods included from Utils
build_shop_from, camelize_keys, camelize_words, options_to_multipart_request, options_to_patch_request, parse_attribute_as, parse_attribute_as_array_of, parse_attributes, symbolize_keys!, to_query_options, underscorize_keys
Instance Method Details
#currencies ⇒ Object
implements the call developer.epages.com/apps/api-reference/get-shops-shopid-currencies.html
17 18 19 |
# File 'lib/epages/rest/miscellaneous.rb', line 17 def currencies perform_get_request('/currencies', {}) end |
#info(options = {}) ⇒ Object
implements the call developer.epages.com/apps/api-reference/get-shops-shopid.html
11 12 13 14 |
# File 'lib/epages/rest/miscellaneous.rb', line 11 def info( = {}) response = perform_get_request('/', ) underscorize_keys(response) end |
#locales ⇒ Object
implements the call developer.epages.com/apps/api-reference/get-shops-shopid-locales.html
22 23 24 |
# File 'lib/epages/rest/miscellaneous.rb', line 22 def locales perform_get_request('/locales', {}) end |
#product_suggestions_for(query, options = {}) ⇒ Object
27 28 29 30 |
# File 'lib/epages/rest/miscellaneous.rb', line 27 def product_suggestions_for(query, = {}) response = perform_get_request('/search/product-suggest', .merge(query: query)) parse_suggestions_to_products(response) end |
#watched_products(options = {}) ⇒ Object
implements the call developer.epages.com/apps/api-reference/get-shops-shopid-watched-products
33 34 35 |
# File 'lib/epages/rest/miscellaneous.rb', line 33 def watched_products( = {}) perform_get_request('/watched-products', {}) end |