tom_github_api 1.4.0
tom_github_api: ^1.4.0 copied to clipboard
Typed Dart client for the GitHub API — issues, labels, comments, search, workflows, repositories, repository contents, the low-level git data API, and a GraphQL entry point for the surfaces REST does [...]
example/tom_github_api_example.dart
import 'package:tom_github_api/tom_github_api.dart';
void main() async {
final token = GitHubAuth.resolveTokenOrThrow();
final client = GitHubApiClient(token: token);
try {
final issues = await client.listIssues(
owner: 'al-the-bear',
repo: 'tom_issues',
);
for (final issue in issues) {
print('#${issue.number}: ${issue.title}');
}
} finally {
client.close();
}
}