github_simple

Version, currently 0.1.11 version
  • 0.1.1latestDec 5, 2015

github.com/pine/crystal-github-simple

:octocat: Simple GitHub API client for Crystal

2 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  github_simple:
    github: pine/crystal-github-simple
    version: ~> 0.1.1

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
MIT

Dependencies

Runtime Dependencies

  • rfc59880.1.1github: pine613/crystal-rfc5988

Development Dependencies

  • webmock0.3.0github: manastech/webmock.crdev

README

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