webeau / fanart_api

Ruby client for fanart.tv API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Dependency Status Code Climate Coverage Status Gem Version

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

  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

About

Ruby client for fanart.tv API

License:MIT License