Skip to content

tvapi/trakt_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Dependency Status Code Climate Coverage Status Gem Version

TraktApi

trakt_api is a simple ruby client for trakt.tv API.

Installation

With Bundler:

gem 'trakt_api'
$ bundle install

Otherwhise:

gem install trakt_api

How to use

You have two way for access to api:

  • I case (create client class, one entry point)

Language attribute is optional with default value 'en'

client = TraktApi::Client.new(api_key: '...')
client.search # => #<TraktApi::Search>
client.show # => #<TraktApi::Show>
  • II case (direct access to api class, many entry points)

Language attribute is required

ThetvdbApi::Search.new(api_key: '...').call({...})

Methods

Full documentation is available here: http://docs.trakt.apiary.io

Search methods

  • call
  • call_url

Show methods

  • find
  • find_url
  • seasons
  • seasons.all
  • seasons.all_url
  • seasons.find
  • seasons.find_url
  • seasons.episodes
  • seasons.episodes.find
  • seasons.episodes.find_url

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 trakt.tv API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages