// Initialize the clientvar client = new RecommendClient( new RecommendConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY"));// Call the APIvar response = await client.GetRecommendRuleAsync( "<YOUR_INDEX_NAME>", Enum.Parse<RecommendModels>("RelatedProducts"), "objectID");// print the responseConsole.WriteLine(response);
See the full API reference
For more details about input parameters
and response fields.