Method: Yotpo::Product#get_product_bottom_line

Defined in:
lib/yotpo/api/product.rb

#get_product_bottom_line(params) ⇒ Object

Retrieves the bottom line of a product

Parameters:

  • params (Hash)

Options Hash (params):

  • :app_key (String)

    the accounts app key that was given to it upon registration

  • :product_id (String)

    the id of the product



24
25
26
27
28
# File 'lib/yotpo/api/product.rb', line 24

def get_product_bottom_line(params)
  app_key = params[:app_key]
  sku = params[:product_id]
  get("/products/#{app_key}/#{sku}/bottomline")
end