Description Usage Arguments Value References Examples
View source: R/product_recommendation.R
This prouct recommendation function is an extension driven by the science that powers the recommended products container on Walmart.com and provides the top 10 recommended products for a certain item.
1 | product_recommendation(apikey = NULL, itemId)
|
apikey |
Your API access key authorized by Walmart API (Required) |
itemId |
The item id associated with an item on Walmart.com. This can be generally seen in the last 8 digits of a URL string, but can also be acquired by using the product_lookup function (Required) |
Returns an RDS file named "product_recommendation_output.RDS".
https://developer.walmartlabs.com/docs/read/Product_Recommendation_API
1 2 | apikey = "YOUR API KEY"
product_recommendation(apikey, "36904791")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.