diff --git a/lib/yotpo/api/account.rb b/lib/yotpo/api/account.rb index cfcb434..9ad942c 100644 --- a/lib/yotpo/api/account.rb +++ b/lib/yotpo/api/account.rb @@ -26,8 +26,7 @@ def update_account(params) app_key = params[:app_key] put("/apps/#{app_key}", request) end - - # + # Check if the minisite subdomain at yotpo.me is vacant # # @param params [Hash] diff --git a/lib/yotpo/api/product.rb b/lib/yotpo/api/product.rb index e004649..aa894e8 100644 --- a/lib/yotpo/api/product.rb +++ b/lib/yotpo/api/product.rb @@ -48,5 +48,16 @@ def products_name_by_sku(params) app_key = params[:app_key] post("v1/apps/#{app_key}/products_name_by_sku/", request) end + + def get_product_matches(params) + request = { + utoken: params[:utoken], + source_app_key: params[:source_app_key], + destination_app_key: params[:destination_app_key], + domain_keys: params[:domain_keys] + } + app_key = params[:app_key] + post("apps/#{app_key}/products_apps_matches/get_matches/", request) + end end end \ No newline at end of file