TmdbRexx
This is TmdbRexx a simple wrapper around the TMDB API v3 written in ruby.
Installation
Add this line to your application's Gemfile:
gem 'tmdb_rexx'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tmdb_rexx
Documentation
http://rdoc.info/github/jasontruluck/tmdb_rexx/master/index
Configuration
Configuration allows for specifying TMDB api information
api_key
- required The api key generated by the TMDB api
base_url
- The base url used for querying against the TMDB api. Defaults to https://api.themoviedb.org
version
- The API version to use. Defaults to 3
include_adult
- If you would like to include adult films and tv [Boolean]. Defaults to false
language
- The language you would like to have information returned in. Defaults to en
Within an initializer config/initializer/tmdb_rexx.rb
TmdbRexx.configure do |c|
c.api_key = "some_api_key" # Required for functionality
c.include_adult = true # this includes adult films and tv
c.language = "fr" # this changes the language to French where supported
end
Development
After checking out the repo, run bundle install
to install dependencies. Then, run rake
for a baseline test run.
Contributing
Make sure to write test!
- Fork it ( https://github.com/[my-github-username]/tmdb_rexx/fork )
- 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 a new Pull Request