Project

whatcd

0.01
No commit activity in last 3 years
No release in over 3 years
An API wrapper for What.cd's JSON API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

What is it?

whatcd is an API wrapper for What.cd's JSON API.

Usage

Authentication can be done with a username and password or with cookies:

require "whatcd"

client = WhatCD::Client.new "username", "password"

# or
client = WhatCD::Client.new
client.set_cookie "cookie value"

client.fetch :user, :id => 28747
# => { "username" => "empeedrie", ... }

Documentation: http://rdoc.info/github/britishtea/whatcd. What.CD API documentation: https://github.com/WhatCD/Gazelle/wiki/JSON-API-Documentation.

Installation

gem install whatcd

Changelog

  • 0.3.0: Make host configurable.
  • 0.2.0: Full rewrite that works with Cloudflare.
  • 0.1.5: Access API over SSL only.
  • 0.1.4: Fix a bug that occured when requesting resources without parameters.
  • 0.1.3: Fix a bug that extends the validity of cookies.
  • 0.1.2: General maintenance.
  • 0.1.1: Introduce support for rippy.
  • 0.1.0: Initial version.

License - MIT License

See the LICENSE file.