An open API service indexing awesome lists of open source software.

https://github.com/linyows/mruby-github


https://github.com/linyows/mruby-github

Last synced: 28 days ago
JSON representation

Awesome Lists containing this project

README

        

mruby-github
============

The Github API Client for mruby.

[![Build Status](https://travis-ci.org/linyows/mruby-github.svg?branch=master)][travis]
[travis]: http://travis-ci.org/linyows/mruby-github

Mrbgems Installation
--------------------

- add conf.gem line to `build_config.rb`

```ruby
MRuby::Build.new do |conf|

# ... (snip) ...

conf.gem :github => 'linyows/mruby-github'
end
```

Example
-------

```ruby
> client = Github::Client.new
> teams = client.org_teams('foo-org')
> team = teams.find { |t| t['name'] == 'bar-team' }
> client.team_member?(team['id'], 'baz-user')
=> true
```

Authors
-------

- [linyows][linyows]
[linyows]: https://github.com/linyows

License
-------

The MIT License (MIT)