github 6.0.0-dev.1.0 copy "github: ^6.0.0-dev.1.0" to clipboard
github: ^6.0.0-dev.1.0 copied to clipboard

outdated

A high-level GitHub API Client Library that uses Github's v3 API

GitHub for Dart #

Pub

This is a library for interacting with GitHub in Dart. It works on all platforms including web, server, and Flutter. Please submit issues and pull requests, help out, or just give encouragement.

Notice: We are looking for contributors. If you're interested or have questions, join the chat at https://gitter.im/SpinlockLabs/community

Features #

  • Works on the Server, Browser, and Flutter
  • Really Fast
  • Plugable API
  • Supports Authentication
  • Builtin OAuth2 Flow
  • Hook Server Helper

Getting Started #

First, add the following to your pubspec.yaml:

dependencies:
  github: ^5.0.0

Then import the library

For the browser use:

import 'package:github/browser.dart';

and for the server or Flutter use:

import 'package:github/github.dart';

and then use it:

Example

import 'package:github/browser.dart';

void main() async {
  /* Create a GitHub Client */
  var github = GitHub();

  /* or Create a GitHub Client using an auth token */
  var github = createGitHubClient(auth: new Authentication.withToken("YourTokenHere"));  

  Repository repo = await github.repositories.getRepository(new RepositorySlug("user_or_org", "repo_name"));
  /* Do Something with repo */
}

Contacting Us #

Join our Gitter chat at https://gitter.im/SpinlockLabs/community

144
likes
0
pub points
96%
popularity

Publisher

verified publisherspinlock.sh

A high-level GitHub API Client Library that uses Github's v3 API

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, http_parser, json_annotation, meta

More

Packages that depend on github