Sep 20, 2024
Retrieve a rule
Retrieves a Recommend rule that you previously created in the Algolia dashboard.
Usage
Required ACL:
settings
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
using Algolia.Search.Clients;
using Algolia.Search.Http;
using Algolia.Search.Models.Recommend;
var client = new RecommendClient(
new RecommendConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY")
);
var response = await client.GetRecommendRuleAsync(
"ALGOLIA_INDEX_NAME",
Enum.Parse<RecommendModels>("RelatedProducts"),
"objectID"
);
Did you find this page helpful?