Buckets:
tahamajs/Other_Lessons / AP /TA_1 /AP-ECE-UT.github.io /node_modules /@algolia /recommend /README.md
Algolia Recommend
The perfect starting point to integrate Algolia Recommend within your JavaScript project
Documentation • UI library • Community Forum • Stack Overflow • Report a bug • Support
✨ Features
- Thin & minimal low-level HTTP client to interact with Algolia's Recommend API
- Works both on the browser and node.js
- UMD compatible, you can use it with any module loader
- Built with TypeScript
💡 Getting Started
First, install Algolia Recommend API Client via the npm package manager:
npm install @algolia/recommend
Then, let's retrieve recommendations:
const algoliarecommend = require('@algolia/recommend');
const client = algoliarecommend('YourApplicationID', 'YourAdminAPIKey');
client
.getFrequentlyBoughtTogether([
{
indexName: 'your_index_name',
objectID: 'your_object_id',
},
])
.then(({ results }) => {
console.log(results);
})
.catch(err => {
console.log(err);
});
client
.getRelatedProducts([
{
indexName: 'your_index_name',
objectID: 'your_object_id',
},
])
.then(({ results }) => {
console.log(results);
})
.catch(err => {
console.log(err);
});
For full documentation, visit the online documentation.
📄 License
Algolia Recommend API Client is an open-sourced software licensed under the MIT license.
Xet Storage Details
- Size:
- 2.48 kB
- Xet hash:
- 44a3b641932ab49fe65c7f343166c4d5e4c19b0963e6a050485fd7fa14f7486b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.