crystal-qiita v0.4.0
crystal-qiita
A Crystal wrapper for the Qiita API.
Installation
Add this line to your application's shard.yml
:
dependencies:
qiita:
github: pine/crystal-qiita
version: ~> 0.3.0
Usage
See example example/search_items.cr and Official API reference.
require "qiita"
res = Qiita.search_items({ query: "Crystal" })
res.each{|item| puts item.title }
How to run example
First, you should install Crystal compiler, using a tool such as crenv.
$ git clone https://github.com/pine/crystal-qiita.git
$ cd ./crystal-qiita
$ crystal deps
$ crystal run ./example/search_items.cr
Keyword> Crystal
All Crystal 20 items found.
1: OpenShift 㧠Crystal ăĺăăćšćł
Author: pine
URL : http://qiita.com/pine/items/6be6a266871f6b34c3f8
2: ćĺăŽçŻĺ˛ăťćĺĺăŽçŻĺ˛
Author: kubo39
URL : http://qiita.com/kubo39/items/6cf405b1386601f83f1f
3: Crystal - Bool
Author: tbpgr
URL : http://qiita.com/tbpgr/items/8c54baacf5bd7a0ddbb2
...
Contributing
- Fork it ( https://github.com/pine/crystal-qiita/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
License
MIT License
Repository
crystal-qiita
Owner
Statistic
- 0
- 0
- 0
- 0
- 1
- over 8 years ago
- September 13, 2015
License
MIT License
Links
Synced at
Sat, 23 Nov 2024 02:39:38 GMT
Languages