Forgejo::API
Inherits Reference < Object
Constructors
new(base_url : String, token : String, logging : Bool = true)
SourceInstance methods
base_url
Sourceclient
Sourceget_file(owner : String, repo_name : String, file_path : String, ref : String = "main") : String
Get a file from a repository Returns raw file content.
logging
Sourcelogging=(logging : Bool)
Sourcemake_request(url, params = {} of String => String)
Sourcerepo(owner : String, repo_name : String)
Sourcerepo_languages(owner : String, repo : String) : Hash(String, Int64)
Get languages and number of bytes of code written
=> {"Crystal" => 109927, "HTML" => 36888}
repo_releases(owner : String, repo : String)
Sourcerepos_search(query : String, topic : Bool = false, sort : String = "created", order : String = "asc", page : Int32 = 1, limit : Int32 = 100)
Sourcetoken
Sourceuser(username : String)
Source