This extension automatically handles rate limit for you. If you request API too frequently and hit rate limit, this extension smartly wait and retry your API calls.
var rc = new RestClient(
Environment.GetEnvironmentVariable("RINGCENTRAL_CLIENT_ID"),
Environment.GetEnvironmentVariable("RINGCENTRAL_CLIENT_SECRET"),
Environment.GetEnvironmentVariable("RINGCENTRAL_SERVER_URL")
);
await rc.Authorize(
Environment.GetEnvironmentVariable("RINGCENTRAL_JWT_TOKEN"),
);
var rateLimitExtension = new RateLimitExtension();
await rc.InstallExtension(rateLimitExtension);
This extension is inspired by its TypeScript counterpart , check its documentation for more information.