Sha256: a35aed6284526d1da94f5d652cfd2b9f4113f51750600b7ad0b5e129fced5300
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
Gyazo ===== [Gyazo API](https://gyazo.com/api/docs) wrapper for Ruby - http://github.com/masui/gyazo-ruby - https://rubygems.org/gems/gyazo Installation ------------ % gem install gyazo Usage ----- Register new application and get [ACCESS TOKEN](https://gyazo.com/oauth/applications), then ### Upload ```ruby require 'gyazo' gyazo = Gyazo::Client.new 'your-access-token' res = gyazo.upload 'my_image.png' puts res['permalink_url'] # => "http://gyazo.com/a1b2cdef345" ``` ### List ```ruby gyazo.list.each do |image| image['image_id'] end ``` ### Delete ```ruby 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 ------------ 1. Fork it 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 new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gyazo-2.0.0 | README.md |