class

GitHub::Client

Inherits Reference < Object

Constructors

new(token : String = ENV["GITHUB_API_TOKEN"], base_uri : URI = URI.parse("https://api.github.com"))
Source
new(base_uri : URI = URI.parse("https://api.github.com"), &token : -> String)
Source

Instance methods

delete(path : String, body : String | Nil = nil, headers : ::HTTP::Headers | Nil = nil) : ::HTTP::Client::Response
Source
delete(path : String, body : String | Nil = nil, headers : ::HTTP::Headers | Nil = nil, *, as type : T.class) : T forall T
Source
fetch_rate_limits
Source
get(path : String, body : String | Nil = nil, headers : ::HTTP::Headers | Nil = nil) : ::HTTP::Client::Response
Source
get(path : String, body : String | Nil = nil, headers : ::HTTP::Headers | Nil = nil, *, as type : T.class) : T forall T
Source
get?(path : String, body : String | Nil = nil, *, as type : T.class) : T | Nil forall T
Source
graphql
Source
http_delete(path : String, headers : ::HTTP::Headers | Nil = nil, body : String | Nil = nil, &block : ::HTTP::Client::Response -> T) forall T
Source
http_get(path : String, headers : ::HTTP::Headers | Nil = nil, body : String | Nil = nil, &block : ::HTTP::Client::Response -> T) forall T
Source
http_patch(path : String, headers : ::HTTP::Headers | Nil = nil, body : String | Nil = nil, &block : ::HTTP::Client::Response -> T) forall T
Source
http_post(path : String, headers : ::HTTP::Headers | Nil = nil, body : String | Nil = nil, &block : ::HTTP::Client::Response -> T) forall T
Source
http_put(path : String, headers : ::HTTP::Headers | Nil = nil, body : String | Nil = nil, &block : ::HTTP::Client::Response -> T) forall T
Source
installations
Source
issues
Source
organizations
Source
patch(path : String, body : String | Nil = nil, headers : ::HTTP::Headers | Nil = nil) : ::HTTP::Client::Response
Source
patch(path : String, body : String | Nil = nil, headers : ::HTTP::Headers | Nil = nil, *, as type : T.class) : T forall T
Source
post(path : String, body : String | Nil = nil, headers : ::HTTP::Headers | Nil = nil) : ::HTTP::Client::Response
Source
post(path : String, body : String | Nil = nil, headers : ::HTTP::Headers | Nil = nil, *, as type : T.class) : T forall T
Source
put(path : String, body : String | Nil = nil, headers : ::HTTP::Headers | Nil = nil) : ::HTTP::Client::Response
Source
put(path : String, body : String | Nil = nil, headers : ::HTTP::Headers | Nil = nil, *, as type : T.class) : T forall T
Source
rate_limits
Source
repo(owner : String, name : String)
Source
repo(repository : Repository)
Source
repos
Source
token
Source
user
Source
user_installations
Source
user_orgs
Source

Nested types