Skip to content

flutter-fix-something/github.dart

 
 

Repository files navigation

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

Links

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/server.dart';

and then use it:

Example

import 'package:github/browser.dart';

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

  /* 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

About

GitHub Client Library for Dart

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 95.0%
  • HTML 2.9%
  • CSS 1.2%
  • Other 0.9%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy