Skip to main content
Perform a request from the given parameters and send it through the requester, making use of the underlying retry strategy.

Examples

EndpointResponse response =
  client.CustomRequest<EndpointResponse, EndpointRequest>(
    new EndpointRequest {
      // parameters
    },
    "/1/custom/endpoint",
    System.Net.Http.HttpMethod.Get,
    Algolia.Search.Models.Enums.CallType.Read
  );

Parameters

callType
enum<string>
required
Type of HTTP method to use. One of:
  • read: for GET requests
  • write: for POST, PUT, DELETE requests
This determines the duration of timeouts.
method
enum<string>
required
HTTP method to send with the query. One of: GET, POST, PUT, DELETE.
path
string
required
The path of the API endpoint to call, as exposed in the documentation.
requestOptions
object
A mapping of request options to send along with the request.
I