GitHubApiClient class
A client for interacting with the GitHub REST API.
This class provides methods to fetch repository contents and download files from GitHub repositories using the GitHub REST API v3.
Constructors
- GitHubApiClient.new({Client? httpClient, String? token})
- Creates a new GitHubApiClient instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void - Closes the underlying HTTP client and releases any resources.
-
downloadFile(
String url) → Future< Uint8List> - Downloads a file from the specified URL as a list of bytes.
-
getContents(
String path) → Future< List< GitHubContent> > - Fetches contents from the GitHub API at the specified path.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited