GitHub::REST
This module enables GitHub.cr to interact with the GitHub API through HTTP requests
Constants
API_BASE = "api.github.com"
GLOBAL_MUTEX = Mutex.new
HTTP_CLIENT = HTTP::Client.new(API_BASE, tls: true)
Class methods
raw_request(method : String, path : String, headers : HTTP::Headers, body : String | Nil)
This function is responsible for requesting the API
request(method : String, path : String, headers : HTTP::Headers, body : String | Nil)
SourceNested types
- GitHub::REST::Artifacts
- GitHub::REST::Blobs
- GitHub::REST::Commits
- GitHub::REST::Events
- GitHub::REST::Gists
- GitHub::REST::GitHubApps
- GitHub::REST::Installations
- GitHub::REST::Interactions
- GitHub::REST::Issues
- GitHub::REST::OAuthApps
- GitHub::REST::References
- GitHub::REST::Secrets
- GitHub::REST::SelfHostedWorkflowRunners
- GitHub::REST::Tags
- GitHub::REST::Trees
- GitHub::REST::WorkflowJobs
- GitHub::REST::WorkflowRuns
- GitHub::REST::Workflows