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({..})
  • II case (direct access to api class, many entry points)

Language attribute is required

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

Usage

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

Search API

client.search({...})

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