add getRetryAfter() method to support the new API ratelimiting