Sha256: da103495b92cb434bb6737540f5ed7f89f8d5903e570d1088ea7e9ce7426d1d5
Contents?: true
Size: 1.63 KB
Versions: 1
Compression:
Stored size: 1.63 KB
Contents
# SlideshareApi [](https://travis-ci.org/jvenezia/slideshare_api) [](http://badge.fury.io/rb/slideshare_api) Slideshare ruby wrapper for the Slideshare API. **Warning**: SlideshareApi is currently under heavy development. ## Installation Add this line to your application's Gemfile: ```ruby gem 'slideshare_api' ``` Or install it yourself as: $ gem install slideshare_api ## Usage Get your **API Key** and **Shared Secret** from Slideshare [here](http://fr.slideshare.net/developers/applyforapi). ```ruby api_key = 'your api key' shared_secret = 'shared secret' client = SlideshareApi::Client.new api_key, shared_secret ``` Get a slideshow: ```ruby # from url... slideshow_url = 'http://fr.slideshare.net/awesome_slideshow' slideshow = client.slideshow(slideshow_url: slideshow_url) #=> returns a SlideshareApi::Model::Slideshow # from id... slideshow_id = '1234' slideshow = client.slideshow(slideshow_id: slideshow_id) #=> returns a SlideshareApi::Model::Slideshow # with optional informations... slideshow = client.slideshow(slideshow_id: slideshow_id, detailed: true) #=> returns a SlideshareApi::Model::Slideshow ``` ## Contributing Feel free to contribute! 1. Fork it ( https://github.com/jvenezia/slideshare_api/fork ) 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 a new Pull Request ## License Released under the MIT License, which can be found in `LICENSE.txt`.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slideshare_api-0.0.2 | README.md |