Gyazo
Gyazo API wrapper for Ruby
Installation
% gem install gyazo
Usage
Register new application and get ACCESS TOKEN, then
Upload
require 'gyazo'
gyazo = Gyazo::Client.new 'your-access-token'
res = gyazo.upload 'my_image.png'
puts res['permalink_url'] # => "http://gyazo.com/a1b2cdef345"
List
gyazo.list.each do |image|
image['image_id']
end
Delete
gyazo.delete image_id
Test
setup
% gem install bundler
% bundle install
% export GYAZO_TOKEN=a1b2cdef3456 ## set your API Token
run test
% bundle exec rake test
Contributing
- 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