Sep 20, 2024
Recommend API client
The Recommend API client is part of the AlgoliaSearch package.
To install this package, run:
Copy
1
dotnet add package Algolia.Search
To use the Recommend client, import these namespaces:
Copy
1
2
3
using Algolia.Search.Clients;
using Algolia.Search.Http;
using Algolia.Search.Models.Recommend;
To create an instance of the client:
Copy
1
2
3
var client = new RecommendClient(
new RecommendConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
);
List of methods
Each method makes one request to the Recommend API.
Recommendations
| client.GetRecommendations | Retrieve recommendations |
Rules
| client.GetRecommendRule | Retrieve a rule |
| client.DeleteRecommendRule | Delete a rule |
| client.GetRecommendStatus | Check task status |
| client.SearchRecommendRules | Search for rules |
| client.BatchRecommendRules | Create or update a batch of Recommend Rules |
Did you find this page helpful?