pub async fn send_api_request(
client: &Client,
request: Request,
rate_limit_headers: &RestApiRateLimitHeaders,
) -> Result<Response, RestClientError>
Expand description
A convenience function to send HTTP requests and respect a REST API rate limits.
This method respects both primary and secondary rate limits. In the event where the secondary rate limits is reached, this function will wait for a time interval specified the server and retry afterward.