Build Status Dependency Status Code Climate Coverage Status Gem Version

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

  1. Fork it
  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 new Pull Request