FanartApi
fanart_api is a simple ruby client for accessing TV shows information from the fanart.tv API.
Installation
With Bundler:
gem 'thetvdb_api'
$ bundle install
Otherwhise:
$ gem install thetvdb_api
How to use
You have two way for access to api:
client = FanartApi::Client.new(api_key: '...')
client = FanartApi::Client.new(api_key: '...', proxy_url: '...')
client.movie # => #<FanartApi::Movie>
client.music # => #<FanartApi::Music>
client.tv # => #<FanartApi::Tv>
- II case (direct access to api class, many entry points)
Language attribute is required
ThetvdbApi::Actor.new(api_key: '...')
ThetvdbApi::Banner.new(api_key: '...')
ThetvdbApi::Episode.new(api_key: '...')
ThetvdbApi::Actor.new(api_key: '...', proxy_url: '...')
ThetvdbApi::Banner.new(api_key: '...', proxy_url: '...')
ThetvdbApi::Episode.new(api_key: '...', proxy_url: '...')
Methods
For all methods you can pass hash attributes or multiple attributes specified in method comment.
Movie methods
For method attributes read https://github.com/tvapi/fanart_api/blob/master/lib/fanart_api/movie.rb
- find
- find_url
- latest
- latest_url
Music methods
For method attributes read https://github.com/tvapi/fanart_api/blob/master/lib/fanart_api/music.rb
- artist
- artist_url
- album
- album_url
- label
- label_url
- latest
- latest_url
Tv methods
For method attributes read https://github.com/tvapi/fanart_api/blob/master/lib/fanart_api/tv.rb
- find
- find_url
- latest
- latest_url
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