Skip to content

Commit

Permalink
Merge pull request #47 from YotpoLtd/YO-11017-add-product-matches-end…
Browse files Browse the repository at this point in the history
…point

feat(VmsSyndication): add get products matches call
  • Loading branch information
emaymon committed Jun 17, 2020
2 parents 33844d1 + 4a60565 commit da6e6fe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/yotpo/api/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
11 changes: 11 additions & 0 deletions lib/yotpo/api/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit da6e6fe

Please sign in to comment.