Project

trakt_api

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby client for trakt.tv API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0.7
>= 0
~> 3.1.0

Runtime

~> 0.1.0
 Project Readme

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