crystal-github-simple

:octocat: Simple GitHub API client for Crystal

crystal-github-simple Build Status docrystal.org

A Crystal wrapper for the GitHub API.

Installation

Add this line to your application's shard.yml:

dependencies:
  github_simple:
    github: pine613/crystal-github-simple
    branch: master

Usage

See example example/commits.cr.

require "github_simple"

include GitHub::Simple

client = Client.new
client.auto_paginate = true
client.access_token  = "GITHUB_ACCESS_TOKEN"

p client.repos("owner", "repo").commits
p client.repos("owner", "repo").commit("sha")

Contributing

  1. Fork it ( https://github.com/pine613/crystal-github-simple/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

MIT License

Repository

crystal-github-simple

Owner
Statistic
  • 2
  • 1
  • 1
  • 0
  • 1
  • about 9 years ago
  • October 22, 2015
License

MIT License

Links
Synced at

Sun, 22 Dec 2024 16:31:25 GMT

Languages