FanartApi
Ruby client for fanart.tv API
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')
Usage
Movie API
client.movie.find(id: id, type: 'all', sort: '1', limit: '2')
client.movie.update(timestamp: 1...)
Music API
client.music.artist(id: id, type: 'all', sort: '1', limit: '2')
client.music.album(id: id, type: 'all', sort: '1', limit: '2')
client.music.label(id: id, type: 'all', sort: '1', limit: '2')
client.music.update(timestamp: 1...)
Tv API
client.tv.find(id: id, type: 'all', sort: '1', limit: '2')
client.tv.update(timestamp: 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




