SlideshareApi
Ruby wrapper for the Slideshare API.
Warning: SlideshareApi is currently under heavy development.
Installation
Add this line to your application's Gemfile:
gem 'slideshare_api'
Or install it yourself as:
$ gem install slideshare_api
Usage
Get your API Key and Shared Secret from Slideshare here.
api_key = 'your api key'
shared_secret = 'shared secret'
client = SlideshareApi::Client.new api_key, shared_secret
Get a slideshow:
# from url...
= 'http://fr.slideshare.net/awesome/slideshow'
= client.(slideshow_url: ) #=> returns a SlideshareApi::Model::Slideshow
# from id...
= '1234'
= client.(slideshow_id: ) #=> returns a SlideshareApi::Model::Slideshow
# with optional data...
= client.(slideshow_id: , detailed: true) #=> returns a SlideshareApi::Model::Slideshow
Get slideshows:
# by tag...
tag = 'ruby'
= client.(tag: tag) #=> returns an array of SlideshareApi::Model::Slideshow
# by group...
group = 'group'
= client.(group: group) #=> returns an array of SlideshareApi::Model::Slideshow
# by user...
user = 'username'
= client.(user: user) #=> returns an array of SlideshareApi::Model::Slideshow
# with optional data...
= client.(user: user, detailed: true) #=> returns an array of SlideshareApi::Model::Slideshow
Contributing
Feel free to contribute!
- Fork it ( https://github.com/jvenezia/slideshare_api/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
Released under the MIT License, which can be found in LICENSE.txt
.