Ruby wrapper for Qiita API v1.
Add this line to your application's Gemfile:
gem 'qiita'
And then execute:
$ bundle
Or install it yourself as:
$ gem install qiita
Qiita.user_items 'yaotti'
Qiita.tag_items 'ruby'
item_uuid = '1234567890abcdefg'
Qiita.item item_uuid
qiita = Qiita.new url_name: 'yaotti', password: 'mysecret' # => contains token
# or
qiita = Qiita.new token: 'myauthtoken'
qiita.user_items
# post
item = qiita.post_item title: 'Hello', body: 'markdown text', tags: [{ name: 'ruby', versions: %w[1.9.2 1.9.3] }], private: false
# update
qiita.update_item item.uuid, title: 'modified'
# delete
qiita.delete_item item.uuid
- Fork it
- 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 new Pull Request