Skip to main content

lib/api/rate_limit/rate_limit.ex

# Generated by `mix github.gen` from docs/github-api/api.github.com.json.
# Do not edit by hand; re-run the task instead.

defmodule Noizu.Github.Api.RateLimit do
  @moduledoc """
  GitHub `rate-limit` API.
  """
  import Noizu.Github

  @doc """
  Get rate limit status for the authenticated user

  @see https://docs.github.com/rest/rate-limit/rate-limit#get-rate-limit-status-for-the-authenticated-user
  """
  def get(options \\ nil) do
    url = github_base() <> "/rate_limit"
    body = %{}
    api_call(:get, url, body, Noizu.Github.RateLimitOverview, options)
  end
end