Skip to main content

tom_github_api 1.5.0 copy "tom_github_api: ^1.5.0" to clipboard
tom_github_api: ^1.5.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();
  }
}
0
likes
150
points
521
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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 not reach.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

crypto, http

More

Packages that depend on tom_github_api