----------------------------------------------------------------------------- -- | -- License : BSD-3-Clause -- Maintainer : Oleg Grenrus -- -- The Github RateLimit API, as described at -- . module GitHub.Endpoints.RateLimit ( rateLimitR, rateLimit, rateLimit', module GitHub.Data, ) where import GitHub.Data import GitHub.Internal.Prelude import GitHub.Request import Prelude () -- | Get your current rate limit status (Note: Accessing this endpoint does not count against your rate limit.) -- With authentication. rateLimit' :: Maybe Auth -> IO (Either Error RateLimit) rateLimit' auth = executeRequestMaybe auth rateLimitR -- | Get your current rate limit status (Note: Accessing this endpoint does not count against your rate limit.) -- Without authentication. rateLimit :: IO (Either Error RateLimit) rateLimit = rateLimit' Nothing -- | Get your current rate limit status. -- rateLimitR :: Request k RateLimit rateLimitR = query ["rate_limit"] []