Giter VIP home page Giter VIP logo

letterboxd-api-example-ruby-client's Introduction

Letterboxd API client

This is a simple Ruby script that can access much of the Letterboxd v0 API.

Please don’t treat it as a reference implementation. It was adapted from a very early test harness and is in sore need of tidying up :-)

Although the Letterboxd API isn’t public yet (as at 2017-06-12), we have seeded some developers with API keys. If you’re one of the beta testers, please fill in your API_KEY and API_SECRET that were provided to you in examples.rb.

Hope this helps. Comments, pull requests, etc welcome.

Installation

If you already have Ruby, you should be good to go.

You may need to install Bundler, and there will certainly be many other yaks to shave. Once your Ruby system is moderately healthy:

git clone https://github.com/grantyb/letterboxd-api-example-ruby-client.git
cd letterboxd-api-example-ruby-client
bundle install
ruby examples.rb

This should result in this error:

/…/letterboxd-api-example-ruby-client/ruby-client/services/auth.rb:10:in 'login': Unable to log in (RuntimeError)
	from examples.rb:22:in '<main>'

If that’s what you see, then you’re nearly ready. Edit the examples.rb file to add your own API key where it has YOUR_KEY_HERE, your API secret where it has YOUR_SECRET_HERE, and also put your own username where it has YOUR_USERNAME_HERE and your password instead of YOUR_PASSWORD_HERE.

Try again:

ruby examples.rb

You should now see a fairly detailed JSON response.

More information

For more information, please get in touch with [email protected].

letterboxd-api-example-ruby-client's People

Contributors

grantyb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lugee

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.