Sep 20, 2024
Recommend API client
The Recommend API client is part of the algolia
gem.
To install this gem, run:
Copy
1
gem install algolia
To use the Recommend client, add this import to your files:
Copy
1
require "algolia"
To create an instance of the client:
Copy
1
client = Algolia::RecommendClient.create("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
List of methods
Each method makes one request to the Recommend API.
Recommendations
client.get_recommendations | Retrieve recommendations |
Rules
client.get_recommend_rule | Retrieve a rule |
client.delete_recommend_rule | Delete a rule |
client.get_recommend_status | Check task status |
client.search_recommend_rules | Search for rules |
client.batch_recommend_rules | Create or update a batch of Recommend Rules |
Did you find this page helpful?