A gem for getting data from speakerdeck.com
Add this line to your application's Gemfile:
gem 'speakerdeck_api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install speakerdeck_api
First require the gem:
require 'speakerdeck_api'
At the moment, you can get the number of talks, name and website of a speaker via the SpeakerdeckApi::Speaker class.
speaker = SpeakerdeckApi::Speaker.get 'speakerdeck.com_username'
This return an object with the number of talks, name, and website attributes:
speaker.number_of_talks
=> 8
speaker.name
=> 'Fake Guy'
speaker.website
=> 'http://fakeg.uy/'
You will get a SpeakerNotFound exception in case the provided speaker name does not correspond to a speackerdeck.com user.
- Retrive more information about the speaker
- Add SpeakerdeckApi::Talk class to retrieve talk details
- Add VCR for testing
- Fork it ( https://github.com/FerPerales/speakerdeck_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