Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

git-touch/github-contributions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED: GitHub GraphQL API already provides contributions data:

{
  viewer {
    contributionsCollection {
       # ..
    }
  }
}

github_contributions

build pub

A library to get GitHub users' contributions information, for Dart and Flutter developers

Usage

import 'package:github_contributions/github_contributions.dart';

main() async {
  var login = 'pd4d10'; // replace this with GitHub account you want

  // Get latest contributions
  var contributions = await getContributions(login);
  print(contributions[0].count);
  print(contributions[0].color);
  print(contributions[0].date);

  // Specify date
  var contributionsByDate = await getContributions(
    login,
    from: '2019-09-01',
    to: '2019-09-11',
  );
  print(contributionsByDate.length);
}

License

MIT

Releases

No releases published

Packages

No packages published

Languages