API clients
Runs a query on a single composition and returns matching results.
search
// Initialize the client var client = new CompositionClient( new CompositionConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY") ); // Call the API var response = await client.SearchAsync<Hit>( "foo", new RequestBody { Params = new Params { Query = "batman", SortBy = "Price (asc)" }, } ); // print the response Console.WriteLine(response);
Was this page helpful?