// Initialize the clientvar client = new RecommendClient( new RecommendConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY"));// Call the APIvar response = await client.GetRecommendationsAsync( new GetRecommendationsParams { Requests = new List<RecommendationsRequest> { new RecommendationsRequest( new RelatedQuery { IndexName = "<YOUR_INDEX_NAME>", ObjectID = "objectID", Model = Enum.Parse<RelatedModel>("RelatedProducts"), Threshold = 42.1, } ), }, });// print the responseConsole.WriteLine(response);
See the full API reference
For more details about input parameters
and response fields.