FanartApi
Ruby client for fanart.tv API
fanart.tv APIv2 - FanartApi gem v0.1.x (lastest v0.1.3) fanart.tv APIv3 - FanartApi gem v0.2.x (from v0.2.0)
Getting started
You can add it to your Gemfile with:
gem 'fanart_api'
How to use
There is one entry point, in initialize you can past hash with api_key value, or leave empty:
client = FanartApi::Client.new(api_key: 'API_KEY')
Optional you can add option proxy: false which will not send request to proxy.
client = FanartApi::Client.new(api_key: 'API_KEY', proxy: false)
Usage
Movie API
client.movie.find(id: id)
client.movie.latest(date: 1...)
Music API
client.music.artist(id: id)
client.music.album(id: id)
client.music.label(id: id)
client.music.latest(date: 1...)
Tv API
client.tv.find(id: id)
client.tv.latest(date: 1...)
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