https://github.com/pine/crystal-github-simple
:octocat: Simple GitHub API client for Crystal
https://github.com/pine/crystal-github-simple
Last synced: 7 months ago
JSON representation
:octocat: Simple GitHub API client for Crystal
- Host: GitHub
- URL: https://github.com/pine/crystal-github-simple
- Owner: pine
- License: mit
- Created: 2015-10-22T15:11:53.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-05T21:34:23.000Z (over 10 years ago)
- Last Synced: 2025-06-19T22:39:16.250Z (10 months ago)
- Language: Crystal
- Homepage:
- Size: 20.5 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crystal-github-simple [](https://travis-ci.org/pine613/crystal-github-simple) [](http://docrystal.org/github.com/pine613/crystal-github-simple)
A [Crystal](http://crystal-lang.org/) wrapper for the [GitHub](https://github.com/) API.
## Installation
Add this line to your application's `shard.yml`:
```yaml
dependencies:
github_simple:
github: pine613/crystal-github-simple
branch: master
```
## Usage
See example `example/commits.cr`.
```crystal
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