https://github.com/peterhellberg/filmtipset
API client for the Filmtipset API (requires access key)
https://github.com/peterhellberg/filmtipset
Last synced: 7 months ago
JSON representation
API client for the Filmtipset API (requires access key)
- Host: GitHub
- URL: https://github.com/peterhellberg/filmtipset
- Owner: peterhellberg
- License: mit
- Created: 2013-08-23T01:48:09.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-08-23T02:12:19.000Z (over 12 years ago)
- Last Synced: 2025-02-14T11:41:39.786Z (12 months ago)
- Language: Ruby
- Size: 117 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Filmtipset
API client for the Filmtipset API (requires access key)
## Installation
Add this line to your application's Gemfile:
gem 'filmtipset'
And then execute:
$ bundle
Or install it yourself as:
$ gem install filmtipset
## Setup
```ruby
Filmtipset.access_key = 'your_access_key'
```
## Usage
```ruby
# Get 'The Matrix' by id
Filmtipset.movie id: 143
# Get 'Brad Pitt' by id
Filmtipset.person id: 123
# Get 'Pulp Fiction' by IMDB id
Filmtipset.imdb id: '0110912'
# Get a list the movies you’ve seen
Filmtipset.list userkey: , id: 'seen'
# Get recommendations for 'Kortfilm'
Filmtipset.recommendations userkey: , id: 2
```
## 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